다음을 통해 공유


ContentModeratorClient Interface

public interface ContentModeratorClient

The interface for ContentModeratorClient class.

Method Summary

Modifier and Type Method and Description
String acceptLanguage()

Gets Gets or sets the preferred language for the response..

AzureRegionBaseUrl baseUrl()

Gets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.

boolean generateClientRequestId()

Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..

AzureClient getAzureClient()

Gets the AzureClient used for long running operations.

ImageModerations imageModerations()

Gets the ImageModerations object to access its operations.

ListManagementImageLists listManagementImageLists()

Gets the ListManagementImageLists object to access its operations.

ListManagementImages listManagementImages()

Gets the ListManagementImages object to access its operations.

ListManagementTermLists listManagementTermLists()

Gets the ListManagementTermLists object to access its operations.

ListManagementTerms listManagementTerms()

Gets the ListManagementTerms object to access its operations.

int longRunningOperationRetryTimeout()

Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..

RestClient restClient()

Gets the REST client.

Reviews reviews()

Gets the Reviews object to access its operations.

TextModerations textModerations()

Gets the TextModerations object to access its operations.

String userAgent()

Gets the User-Agent header for the client.

ContentModeratorClient withAcceptLanguage(String acceptLanguage)

Sets Gets or sets the preferred language for the response..

ContentModeratorClient withBaseUrl(AzureRegionBaseUrl baseUrl)

Sets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.

ContentModeratorClient withGenerateClientRequestId(boolean generateClientRequestId)

Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..

ContentModeratorClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)

Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..

Method Details

acceptLanguage

public String acceptLanguage()

Gets Gets or sets the preferred language for the response..

Returns:

the acceptLanguage value.

baseUrl

public AzureRegionBaseUrl baseUrl()

Gets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.

Returns:

the baseUrl value.

generateClientRequestId

public boolean generateClientRequestId()

Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..

Returns:

the generateClientRequestId value.

getAzureClient

public AzureClient getAzureClient()

Gets the AzureClient used for long running operations.

Returns:

the azure client;

imageModerations

public ImageModerations imageModerations()

Gets the ImageModerations object to access its operations.

Returns:

the ImageModerations object.

listManagementImageLists

public ListManagementImageLists listManagementImageLists()

Gets the ListManagementImageLists object to access its operations.

Returns:

the ListManagementImageLists object.

listManagementImages

public ListManagementImages listManagementImages()

Gets the ListManagementImages object to access its operations.

Returns:

the ListManagementImages object.

listManagementTermLists

public ListManagementTermLists listManagementTermLists()

Gets the ListManagementTermLists object to access its operations.

Returns:

the ListManagementTermLists object.

listManagementTerms

public ListManagementTerms listManagementTerms()

Gets the ListManagementTerms object to access its operations.

Returns:

the ListManagementTerms object.

longRunningOperationRetryTimeout

public int longRunningOperationRetryTimeout()

Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..

Returns:

the longRunningOperationRetryTimeout value.

restClient

public RestClient restClient()

Gets the REST client.

Returns:

the RestClient object.

reviews

public Reviews reviews()

Gets the Reviews object to access its operations.

Returns:

the Reviews object.

textModerations

public TextModerations textModerations()

Gets the TextModerations object to access its operations.

Returns:

the TextModerations object.

userAgent

public String userAgent()

Gets the User-Agent header for the client.

Returns:

the user agent string.

withAcceptLanguage

public ContentModeratorClient withAcceptLanguage(String acceptLanguage)

Sets Gets or sets the preferred language for the response..

Parameters:

acceptLanguage - the acceptLanguage value.

Returns:

the service client itself

withBaseUrl

public ContentModeratorClient withBaseUrl(AzureRegionBaseUrl baseUrl)

Sets Supported Azure regions for Content Moderator endpoints. Possible values include: 'westus.api.cognitive.microsoft.com', 'westus2.api.cognitive.microsoft.com', 'eastus.api.cognitive.microsoft.com', 'eastus2.api.cognitive.microsoft.com', 'westcentralus.api.cognitive.microsoft.com', 'southcentralus.api.cognitive.microsoft.com', 'westeurope.api.cognitive.microsoft.com', 'northeurope.api.cognitive.microsoft.com', 'southeastasia.api.cognitive.microsoft.com', 'eastasia.api.cognitive.microsoft.com', 'australiaeast.api.cognitive.microsoft.com', 'brazilsouth.api.cognitive.microsoft.com', 'contentmoderatortest.azure-api.net'.

Parameters:

baseUrl - the baseUrl value.

Returns:

the service client itself

withGenerateClientRequestId

public ContentModeratorClient withGenerateClientRequestId(boolean generateClientRequestId)

Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..

Parameters:

generateClientRequestId - the generateClientRequestId value.

Returns:

the service client itself

withLongRunningOperationRetryTimeout

public ContentModeratorClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)

Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..

Parameters:

longRunningOperationRetryTimeout - the longRunningOperationRetryTimeout value.

Returns:

the service client itself

Applies to