Interface CustomVisionTrainingClient
-
public interface CustomVisionTrainingClient
The interface for CustomVisionTrainingClient class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
acceptLanguage()
Gets Gets or sets the preferred language for the response..String
apiKey()
Gets API key..String
endpoint()
Gets Supported Cognitive Services endpoints..boolean
generateClientRequestId()
Gets When set to true a unique x-ms-client-request-id value is generated and included in each request.com.microsoft.azure.AzureClient
getAzureClient()
Gets theAzureClient
used for long running operations.int
longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations.com.microsoft.rest.RestClient
restClient()
Gets the REST client.Trainings
trainings()
Gets the Trainings object to access its operations.String
userAgent()
Gets the User-Agent header for the client.CustomVisionTrainingClient
withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..CustomVisionTrainingClient
withApiKey(String apiKey)
Sets API key..CustomVisionTrainingClient
withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints..CustomVisionTrainingClient
withGenerateClientRequestId(boolean generateClientRequestId)
Sets When set to true a unique x-ms-client-request-id value is generated and included in each request.CustomVisionTrainingClient
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets Gets or sets the retry timeout in seconds for Long Running Operations.
-
-
-
Method Detail
-
restClient
com.microsoft.rest.RestClient restClient()
Gets the REST client.- Returns:
- the
RestClient
object.
-
getAzureClient
com.microsoft.azure.AzureClient getAzureClient()
Gets theAzureClient
used for long running operations.- Returns:
- the azure client;
-
userAgent
String userAgent()
Gets the User-Agent header for the client.- Returns:
- the user agent string.
-
apiKey
String apiKey()
Gets API key..- Returns:
- the apiKey value.
-
withApiKey
CustomVisionTrainingClient withApiKey(String apiKey)
Sets API key..- Parameters:
apiKey
- the apiKey value.- Returns:
- the service client itself
-
endpoint
String endpoint()
Gets Supported Cognitive Services endpoints..- Returns:
- the endpoint value.
-
withEndpoint
CustomVisionTrainingClient withEndpoint(String endpoint)
Sets Supported Cognitive Services endpoints..- Parameters:
endpoint
- the endpoint value.- Returns:
- the service client itself
-
acceptLanguage
String acceptLanguage()
Gets Gets or sets the preferred language for the response..- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
CustomVisionTrainingClient withAcceptLanguage(String acceptLanguage)
Sets Gets or sets the preferred language for the response..- Parameters:
acceptLanguage
- the acceptLanguage value.- Returns:
- the service client itself
-
longRunningOperationRetryTimeout
int longRunningOperationRetryTimeout()
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30..- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
CustomVisionTrainingClient 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
-
generateClientRequestId
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.
-
withGenerateClientRequestId
CustomVisionTrainingClient 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
-
trainings
Trainings trainings()
Gets the Trainings object to access its operations.- Returns:
- the Trainings object.
-
-