Class ServerlessEndpointProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ServerlessEndpointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerlessEndpointProperties>
public final class ServerlessEndpointProperties
extends Object
implements com.azure.json.JsonSerializable<ServerlessEndpointProperties>
The ServerlessEndpointProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerlessEndpointProperties class. -
Method Summary
Modifier and TypeMethodDescriptionauthMode()Get the authMode property: [Required] Specifies the authentication mode for the Serverless endpoint.Get the contentSafety property: Specifies the content safety options.Get the endpointState property: The current state of the ServerlessEndpoint.static ServerlessEndpointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerlessEndpointProperties from the JsonReader.Get the inferenceEndpoint property: The inference uri to target when making requests against the serverless endpoint.Get the marketplaceSubscriptionId property: The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint.Get the modelSettings property: The model settings (model id) for the model being serviced on the ServerlessEndpoint.Get the provisioningState property: Provisioning state for the endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the authMode property: [Required] Specifies the authentication mode for the Serverless endpoint.withContentSafety(ContentSafety contentSafety) Set the contentSafety property: Specifies the content safety options.withModelSettings(ModelSettings modelSettings) Set the modelSettings property: The model settings (model id) for the model being serviced on the ServerlessEndpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServerlessEndpointProperties
public ServerlessEndpointProperties()Creates an instance of ServerlessEndpointProperties class.
-
-
Method Details
-
modelSettings
Get the modelSettings property: The model settings (model id) for the model being serviced on the ServerlessEndpoint.- Returns:
- the modelSettings value.
-
withModelSettings
Set the modelSettings property: The model settings (model id) for the model being serviced on the ServerlessEndpoint.- Parameters:
modelSettings- the modelSettings value to set.- Returns:
- the ServerlessEndpointProperties object itself.
-
authMode
Get the authMode property: [Required] Specifies the authentication mode for the Serverless endpoint.- Returns:
- the authMode value.
-
withAuthMode
Set the authMode property: [Required] Specifies the authentication mode for the Serverless endpoint.- Parameters:
authMode- the authMode value to set.- Returns:
- the ServerlessEndpointProperties object itself.
-
inferenceEndpoint
Get the inferenceEndpoint property: The inference uri to target when making requests against the serverless endpoint.- Returns:
- the inferenceEndpoint value.
-
provisioningState
Get the provisioningState property: Provisioning state for the endpoint.- Returns:
- the provisioningState value.
-
endpointState
Get the endpointState property: The current state of the ServerlessEndpoint.- Returns:
- the endpointState value.
-
marketplaceSubscriptionId
Get the marketplaceSubscriptionId property: The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint.- Returns:
- the marketplaceSubscriptionId value.
-
contentSafety
Get the contentSafety property: Specifies the content safety options. If omitted, the default content safety settings will be configured.- Returns:
- the contentSafety value.
-
withContentSafety
Set the contentSafety property: Specifies the content safety options. If omitted, the default content safety settings will be configured.- Parameters:
contentSafety- the contentSafety value to set.- Returns:
- the ServerlessEndpointProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServerlessEndpointProperties>- Throws:
IOException
-
fromJson
public static ServerlessEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerlessEndpointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerlessEndpointProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServerlessEndpointProperties.
-