azure-docs-sdk-java/docs-ref-autogen/com.azure.communication.sms...

245 строки
32 KiB
YAML
Исходник Обычный вид История

### YamlMime:JavaType
uid: "com.azure.communication.sms.SmsClientBuilder"
fullName: "com.azure.communication.sms.SmsClientBuilder"
name: "SmsClientBuilder"
nameWithType: "SmsClientBuilder"
summary: "Sms<wbr>Client<wbr>Builder that creates Sms<wbr>Async<wbr>Client and Sms<wbr>Client."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **SmsClientBuilder**</br> implements <xref href=\"com.azure.core.client.traits.AzureKeyCredentialTrait?alt=com.azure.core.client.traits.AzureKeyCredentialTrait&text=AzureKeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.ConnectionStringTrait?alt=com.azure.core.client.traits.ConnectionStringTrait&text=ConnectionStringTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.communication.sms.SmsClientBuilder.SmsClientBuilder()"
fullName: "com.azure.communication.sms.SmsClientBuilder.SmsClientBuilder()"
name: "SmsClientBuilder()"
nameWithType: "SmsClientBuilder.SmsClientBuilder()"
syntax: "public SmsClientBuilder()"
methods:
- uid: "com.azure.communication.sms.SmsClientBuilder.addPolicy(com.azure.core.http.policy.HttpPipelinePolicy)"
fullName: "com.azure.communication.sms.SmsClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
name: "addPolicy(HttpPipelinePolicy customPolicy)"
nameWithType: "SmsClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
summary: "Adds a <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref> to apply on each request sent."
parameters:
- description: "A <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref>."
name: "customPolicy"
type: "<xref href=\"com.azure.core.http.policy.HttpPipelinePolicy?alt=com.azure.core.http.policy.HttpPipelinePolicy&text=HttpPipelinePolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder addPolicy(HttpPipelinePolicy customPolicy)"
desc: "Adds a <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref> to apply on each request sent.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.buildAsyncClient()"
fullName: "com.azure.communication.sms.SmsClientBuilder.buildAsyncClient()"
name: "buildAsyncClient()"
nameWithType: "SmsClientBuilder.buildAsyncClient()"
summary: "Create asynchronous client applying HMACAuthentication<wbr>Policy, User<wbr>Agent<wbr>Policy, Retry<wbr>Policy, and Cookie<wbr>Policy."
syntax: "public SmsAsyncClient buildAsyncClient()"
desc: "Create asynchronous client applying HMACAuthenticationPolicy, UserAgentPolicy, RetryPolicy, and CookiePolicy. Additional HttpPolicies specified by additionalPolicies will be applied after them"
returns:
description: "SmsAsyncClient instance"
type: "<xref href=\"com.azure.communication.sms.SmsAsyncClient?alt=com.azure.communication.sms.SmsAsyncClient&text=SmsAsyncClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.buildClient()"
fullName: "com.azure.communication.sms.SmsClientBuilder.buildClient()"
name: "buildClient()"
nameWithType: "SmsClientBuilder.buildClient()"
summary: "Create synchronous client applying Hmac<wbr>Authentication<wbr>Policy, User<wbr>Agent<wbr>Policy, Retry<wbr>Policy, and Cookie<wbr>Policy."
syntax: "public SmsClient buildClient()"
desc: "Create synchronous client applying HmacAuthenticationPolicy, UserAgentPolicy, RetryPolicy, and CookiePolicy. Additional HttpPolicies specified by additionalPolicies will be applied after them"
returns:
description: "SmsClient instance"
type: "<xref href=\"com.azure.communication.sms.SmsClient?alt=com.azure.communication.sms.SmsClient&text=SmsClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.clientOptions(com.azure.core.util.ClientOptions)"
fullName: "com.azure.communication.sms.SmsClientBuilder.clientOptions(ClientOptions clientOptions)"
name: "clientOptions(ClientOptions clientOptions)"
nameWithType: "SmsClientBuilder.clientOptions(ClientOptions clientOptions)"
summary: "Allows for setting common properties such as application ID, headers, proxy configuration, etc."
parameters:
- description: "A configured instance of <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClientOptions\"></xref>."
name: "clientOptions"
type: "<xref href=\"com.azure.core.util.ClientOptions?alt=com.azure.core.util.ClientOptions&text=ClientOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder clientOptions(ClientOptions clientOptions)"
desc: "Allows for setting common properties such as application ID, headers, proxy configuration, etc. Note that it is recommended that this method be called with an instance of the <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClientOptions\"></xref> class (a subclass of the <xref uid=\"com.azure.core.util.ClientOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientOptions\"></xref> base class). The HttpClientOptions subclass provides more configuration options suitable for HTTP clients, which is applicable for any class that implements this HttpTrait interface.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.configuration(com.azure.core.util.Configuration)"
fullName: "com.azure.communication.sms.SmsClientBuilder.configuration(Configuration configuration)"
name: "configuration(Configuration configuration)"
nameWithType: "SmsClientBuilder.configuration(Configuration configuration)"
summary: "Sets the configuration object used to retrieve environment configuration values during building of the client."
parameters:
- description: "Configuration store used to retrieve environment configurations."
name: "configuration"
type: "<xref href=\"com.azure.core.util.Configuration?alt=com.azure.core.util.Configuration&text=Configuration\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder configuration(Configuration configuration)"
desc: "Sets the configuration object used to retrieve environment configuration values during building of the client."
returns:
description: "the updated SmsClientBuilder object"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.connectionString(java.lang.String)"
fullName: "com.azure.communication.sms.SmsClientBuilder.connectionString(String connectionString)"
name: "connectionString(String connectionString)"
nameWithType: "SmsClientBuilder.connectionString(String connectionString)"
summary: "Set endpoint and credential to use"
parameters:
- description: "connection string for setting endpoint and initalizing AzureKeyCredential"
name: "connectionString"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SmsClientBuilder connectionString(String connectionString)"
desc: "Set endpoint and credential to use"
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.credential(com.azure.core.credential.AzureKeyCredential)"
fullName: "com.azure.communication.sms.SmsClientBuilder.credential(AzureKeyCredential keyCredential)"
name: "credential(AzureKeyCredential keyCredential)"
nameWithType: "SmsClientBuilder.credential(AzureKeyCredential keyCredential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> used to authenticate HTTP requests."
parameters:
- description: "The <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> used to authenticate HTTP requests."
name: "keyCredential"
type: "<xref href=\"com.azure.core.credential.AzureKeyCredential?alt=com.azure.core.credential.AzureKeyCredential&text=AzureKeyCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder credential(AzureKeyCredential keyCredential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> used to authenticate HTTP requests."
returns:
description: "The updated <xref uid=\"com.azure.communication.sms.SmsClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SmsClientBuilder\"></xref> object."
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.credential(com.azure.core.credential.TokenCredential)"
fullName: "com.azure.communication.sms.SmsClientBuilder.credential(TokenCredential tokenCredential)"
name: "credential(TokenCredential tokenCredential)"
nameWithType: "SmsClientBuilder.credential(TokenCredential tokenCredential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description: "<xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
name: "tokenCredential"
type: "<xref href=\"com.azure.core.credential.TokenCredential?alt=com.azure.core.credential.TokenCredential&text=TokenCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder credential(TokenCredential tokenCredential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
returns:
description: "The updated <xref uid=\"com.azure.communication.sms.SmsClientBuilder\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SmsClientBuilder\"></xref> object."
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.endpoint(java.lang.String)"
fullName: "com.azure.communication.sms.SmsClientBuilder.endpoint(String endpoint)"
name: "endpoint(String endpoint)"
nameWithType: "SmsClientBuilder.endpoint(String endpoint)"
summary: "Set endpoint of the service"
parameters:
- description: "url of the service"
name: "endpoint"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SmsClientBuilder endpoint(String endpoint)"
desc: "Set endpoint of the service"
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.httpClient(com.azure.core.http.HttpClient)"
fullName: "com.azure.communication.sms.SmsClientBuilder.httpClient(HttpClient httpClient)"
name: "httpClient(HttpClient httpClient)"
nameWithType: "SmsClientBuilder.httpClient(HttpClient httpClient)"
summary: "Sets the <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for sending and receiving requests to and from the service."
parameters:
- description: "The <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for requests."
name: "httpClient"
type: "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder httpClient(HttpClient httpClient)"
desc: "Sets the <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for sending and receiving requests to and from the service.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.httpLogOptions(com.azure.core.http.policy.HttpLogOptions)"
fullName: "com.azure.communication.sms.SmsClientBuilder.httpLogOptions(HttpLogOptions logOptions)"
name: "httpLogOptions(HttpLogOptions logOptions)"
nameWithType: "SmsClientBuilder.httpLogOptions(HttpLogOptions logOptions)"
summary: "Sets the <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to and from the service."
parameters:
- description: "The <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to\n and from the service."
name: "logOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpLogOptions?alt=com.azure.core.http.policy.HttpLogOptions&text=HttpLogOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder httpLogOptions(HttpLogOptions logOptions)"
desc: "Sets the <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to and from the service. If a `logLevel` is not provided, default value of <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpLogDetailLevel#NONE\"></xref> is set.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "the updated SmsClientBuilder object"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.pipeline(com.azure.core.http.HttpPipeline)"
fullName: "com.azure.communication.sms.SmsClientBuilder.pipeline(HttpPipeline pipeline)"
name: "pipeline(HttpPipeline pipeline)"
nameWithType: "SmsClientBuilder.pipeline(HttpPipeline pipeline)"
summary: "Sets the <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for the service client."
parameters:
- description: "<xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for sending service requests and receiving responses."
name: "pipeline"
type: "<xref href=\"com.azure.core.http.HttpPipeline?alt=com.azure.core.http.HttpPipeline&text=HttpPipeline\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder pipeline(HttpPipeline pipeline)"
desc: "Sets the <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for the service client.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications.\n\nIf a pipeline is not supplied, the credential and httpClient fields must be set"
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)"
fullName: "com.azure.communication.sms.SmsClientBuilder.retryOptions(RetryOptions retryOptions)"
name: "retryOptions(RetryOptions retryOptions)"
nameWithType: "SmsClientBuilder.retryOptions(RetryOptions retryOptions)"
summary: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> for all the requests made through the client."
parameters:
- description: "The <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> to use for all the requests made through the client."
name: "retryOptions"
type: "<xref href=\"com.azure.core.http.policy.RetryOptions?alt=com.azure.core.http.policy.RetryOptions&text=RetryOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder retryOptions(RetryOptions retryOptions)"
desc: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> for all the requests made through the client.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications.\n\nSetting this is mutually exclusive with using <xref uid=\"com.azure.communication.sms.SmsClientBuilder.retryPolicy(com.azure.core.http.policy.RetryPolicy)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#retryPolicy(RetryPolicy)\"></xref>."
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.retryPolicy(com.azure.core.http.policy.RetryPolicy)"
fullName: "com.azure.communication.sms.SmsClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
name: "retryPolicy(RetryPolicy retryPolicy)"
nameWithType: "SmsClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
summary: "Sets the retry policy to use (using the Retry<wbr>Policy type)."
parameters:
- description: "object to be applied"
name: "retryPolicy"
type: "<xref href=\"com.azure.core.http.policy.RetryPolicy?alt=com.azure.core.http.policy.RetryPolicy&text=RetryPolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder retryPolicy(RetryPolicy retryPolicy)"
desc: "Sets the retry policy to use (using the RetryPolicy type).\n\nSetting this is mutually exclusive with using <xref uid=\"com.azure.communication.sms.SmsClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#retryOptions(RetryOptions)\"></xref>."
returns:
description: "SmsClientBuilder"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.communication.sms.SmsClientBuilder.serviceVersion(com.azure.communication.sms.SmsServiceVersion)"
fullName: "com.azure.communication.sms.SmsClientBuilder.serviceVersion(SmsServiceVersion version)"
name: "serviceVersion(SmsServiceVersion version)"
nameWithType: "SmsClientBuilder.serviceVersion(SmsServiceVersion version)"
summary: "Sets the <xref uid=\"com.azure.communication.sms.SmsServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SmsServiceVersion\"></xref> that is used when making API requests."
parameters:
- description: "<xref uid=\"com.azure.communication.sms.SmsServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SmsServiceVersion\"></xref> of the service to be used when making requests."
name: "version"
type: "<xref href=\"com.azure.communication.sms.SmsServiceVersion?alt=com.azure.communication.sms.SmsServiceVersion&text=SmsServiceVersion\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SmsClientBuilder serviceVersion(SmsServiceVersion version)"
desc: "Sets the <xref uid=\"com.azure.communication.sms.SmsServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SmsServiceVersion\"></xref> that is used when making API requests.\n\nIf a service version is not provided, the service version that will be used will be the latest known service version based on the version of the client library being used. If no service version is specified, updating to a newer version of the client library will have the result of potentially moving to a newer service version.\n\nTargeting a specific service version may also mean that the service will return an error for newer APIs."
returns:
description: "the updated SmsClientBuilder object"
type: "<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "SmsClientBuilder that creates SmsAsyncClient and SmsClient."
implements:
- "<xref href=\"com.azure.core.client.traits.AzureKeyCredentialTrait?alt=com.azure.core.client.traits.AzureKeyCredentialTrait&text=AzureKeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.ConnectionStringTrait?alt=com.azure.core.client.traits.ConnectionStringTrait&text=ConnectionStringTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.communication.sms.SmsClientBuilder?alt=com.azure.communication.sms.SmsClientBuilder&text=SmsClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.communication.sms"
artifact: com.azure:azure-communication-sms:1.1.27