azure-docs-sdk-java/docs-ref-autogen/com.azure.ai.contentsafety....

212 строки
18 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder"
name: "ContentSafetyClientBuilder"
nameWithType: "ContentSafetyClientBuilder"
summary: "A builder for creating a new instance of the Content<wbr>Safety<wbr>Client type."
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 **ContentSafetyClientBuilder**</br> implements <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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.KeyCredentialTrait?alt=com.azure.core.client.traits.KeyCredentialTrait&text=KeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.ContentSafetyClientBuilder()"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.ContentSafetyClientBuilder()"
name: "ContentSafetyClientBuilder()"
nameWithType: "ContentSafetyClientBuilder.ContentSafetyClientBuilder()"
summary: "Create an instance of the Content<wbr>Safety<wbr>Client<wbr>Builder."
syntax: "public ContentSafetyClientBuilder()"
desc: "Create an instance of the ContentSafetyClientBuilder."
methods:
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.addPolicy(com.azure.core.http.policy.HttpPipelinePolicy)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
name: "addPolicy(HttpPipelinePolicy customPolicy)"
nameWithType: "ContentSafetyClientBuilder.addPolicy(HttpPipelinePolicy customPolicy)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder addPolicy(HttpPipelinePolicy customPolicy)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.buildAsyncClient()"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.buildAsyncClient()"
name: "buildAsyncClient()"
nameWithType: "ContentSafetyClientBuilder.buildAsyncClient()"
summary: "Builds an instance of Content<wbr>Safety<wbr>Async<wbr>Client class."
syntax: "public ContentSafetyAsyncClient buildAsyncClient()"
desc: "Builds an instance of ContentSafetyAsyncClient class."
returns:
description: "an instance of ContentSafetyAsyncClient."
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyAsyncClient?alt=com.azure.ai.contentsafety.ContentSafetyAsyncClient&text=ContentSafetyAsyncClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.buildClient()"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.buildClient()"
name: "buildClient()"
nameWithType: "ContentSafetyClientBuilder.buildClient()"
summary: "Builds an instance of Content<wbr>Safety<wbr>Client class."
syntax: "public ContentSafetyClient buildClient()"
desc: "Builds an instance of ContentSafetyClient class."
returns:
description: "an instance of ContentSafetyClient."
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClient?alt=com.azure.ai.contentsafety.ContentSafetyClient&text=ContentSafetyClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.clientOptions(com.azure.core.util.ClientOptions)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.clientOptions(ClientOptions clientOptions)"
name: "clientOptions(ClientOptions clientOptions)"
nameWithType: "ContentSafetyClientBuilder.clientOptions(ClientOptions clientOptions)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder clientOptions(ClientOptions clientOptions)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.configuration(com.azure.core.util.Configuration)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.configuration(Configuration configuration)"
name: "configuration(Configuration configuration)"
nameWithType: "ContentSafetyClientBuilder.configuration(Configuration configuration)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder configuration(Configuration configuration)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.credential(com.azure.core.credential.KeyCredential)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.credential(KeyCredential keyCredential)"
name: "credential(KeyCredential keyCredential)"
nameWithType: "ContentSafetyClientBuilder.credential(KeyCredential keyCredential)"
summary: "."
parameters:
- name: "keyCredential"
type: "<xref href=\"com.azure.core.credential.KeyCredential?alt=com.azure.core.credential.KeyCredential&text=KeyCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ContentSafetyClientBuilder credential(KeyCredential keyCredential)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.credential(com.azure.core.credential.TokenCredential)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.credential(TokenCredential tokenCredential)"
name: "credential(TokenCredential tokenCredential)"
nameWithType: "ContentSafetyClientBuilder.credential(TokenCredential tokenCredential)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder credential(TokenCredential tokenCredential)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.endpoint(java.lang.String)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.endpoint(String endpoint)"
name: "endpoint(String endpoint)"
nameWithType: "ContentSafetyClientBuilder.endpoint(String endpoint)"
summary: "."
parameters:
- name: "endpoint"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public ContentSafetyClientBuilder endpoint(String endpoint)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.httpClient(com.azure.core.http.HttpClient)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.httpClient(HttpClient httpClient)"
name: "httpClient(HttpClient httpClient)"
nameWithType: "ContentSafetyClientBuilder.httpClient(HttpClient httpClient)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder httpClient(HttpClient httpClient)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.httpLogOptions(com.azure.core.http.policy.HttpLogOptions)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.httpLogOptions(HttpLogOptions httpLogOptions)"
name: "httpLogOptions(HttpLogOptions httpLogOptions)"
nameWithType: "ContentSafetyClientBuilder.httpLogOptions(HttpLogOptions httpLogOptions)"
summary: "."
parameters:
- name: "httpLogOptions"
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 ContentSafetyClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.pipeline(com.azure.core.http.HttpPipeline)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.pipeline(HttpPipeline pipeline)"
name: "pipeline(HttpPipeline pipeline)"
nameWithType: "ContentSafetyClientBuilder.pipeline(HttpPipeline pipeline)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder pipeline(HttpPipeline pipeline)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.retryOptions(RetryOptions retryOptions)"
name: "retryOptions(RetryOptions retryOptions)"
nameWithType: "ContentSafetyClientBuilder.retryOptions(RetryOptions retryOptions)"
summary: "."
parameters:
- 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 ContentSafetyClientBuilder retryOptions(RetryOptions retryOptions)"
desc: "."
returns:
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.retryPolicy(com.azure.core.http.policy.RetryPolicy)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
name: "retryPolicy(RetryPolicy retryPolicy)"
nameWithType: "ContentSafetyClientBuilder.retryPolicy(RetryPolicy retryPolicy)"
summary: "Sets The retry policy that will attempt to retry failed requests, if applicable."
parameters:
- description: "the retryPolicy value."
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 ContentSafetyClientBuilder retryPolicy(RetryPolicy retryPolicy)"
desc: "Sets The retry policy that will attempt to retry failed requests, if applicable."
returns:
description: "the ContentSafetyClientBuilder."
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.serviceVersion(com.azure.ai.contentsafety.ContentSafetyServiceVersion)"
fullName: "com.azure.ai.contentsafety.ContentSafetyClientBuilder.serviceVersion(ContentSafetyServiceVersion serviceVersion)"
name: "serviceVersion(ContentSafetyServiceVersion serviceVersion)"
nameWithType: "ContentSafetyClientBuilder.serviceVersion(ContentSafetyServiceVersion serviceVersion)"
summary: "Sets Service version."
parameters:
- description: "the serviceVersion value."
name: "serviceVersion"
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyServiceVersion?alt=com.azure.ai.contentsafety.ContentSafetyServiceVersion&text=ContentSafetyServiceVersion\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ContentSafetyClientBuilder serviceVersion(ContentSafetyServiceVersion serviceVersion)"
desc: "Sets Service version."
returns:
description: "the ContentSafetyClientBuilder."
type: "<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "A builder for creating a new instance of the ContentSafetyClient type."
implements:
- "<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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.KeyCredentialTrait?alt=com.azure.core.client.traits.KeyCredentialTrait&text=KeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" 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.ai.contentsafety.ContentSafetyClientBuilder?alt=com.azure.ai.contentsafety.ContentSafetyClientBuilder&text=ContentSafetyClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.ai.contentsafety"
artifact: com.azure:azure-ai-contentsafety:1.0.8