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 Details

    • ServerlessEndpointProperties

      public ServerlessEndpointProperties()
      Creates an instance of ServerlessEndpointProperties class.
  • Method Details

    • modelSettings

      public ModelSettings modelSettings()
      Get the modelSettings property: The model settings (model id) for the model being serviced on the ServerlessEndpoint.
      Returns:
      the modelSettings value.
    • withModelSettings

      public ServerlessEndpointProperties withModelSettings(ModelSettings modelSettings)
      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

      public ServerlessInferenceEndpoint inferenceEndpoint()
      Get the inferenceEndpoint property: The inference uri to target when making requests against the serverless endpoint.
      Returns:
      the inferenceEndpoint value.
    • provisioningState

      public EndpointProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state for the endpoint.
      Returns:
      the provisioningState value.
    • endpointState

      public ServerlessEndpointState endpointState()
      Get the endpointState property: The current state of the ServerlessEndpoint.
      Returns:
      the endpointState value.
    • marketplaceSubscriptionId

      public String marketplaceSubscriptionId()
      Get the marketplaceSubscriptionId property: The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint.
      Returns:
      the marketplaceSubscriptionId value.
    • contentSafety

      public ContentSafety 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

      public ServerlessEndpointProperties withContentSafety(ContentSafety contentSafety)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.