Class WorkspaceConnectionServicePrincipal

java.lang.Object
com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionServicePrincipal
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceConnectionServicePrincipal>

public final class WorkspaceConnectionServicePrincipal extends Object implements com.azure.json.JsonSerializable<WorkspaceConnectionServicePrincipal>
The WorkspaceConnectionServicePrincipal model.
  • Constructor Details

    • WorkspaceConnectionServicePrincipal

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

    • clientId

      public String clientId()
      Get the clientId property: The clientId property.
      Returns:
      the clientId value.
    • withClientId

      public WorkspaceConnectionServicePrincipal withClientId(String clientId)
      Set the clientId property: The clientId property.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the WorkspaceConnectionServicePrincipal object itself.
    • clientSecret

      public String clientSecret()
      Get the clientSecret property: The clientSecret property.
      Returns:
      the clientSecret value.
    • withClientSecret

      public WorkspaceConnectionServicePrincipal withClientSecret(String clientSecret)
      Set the clientSecret property: The clientSecret property.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the WorkspaceConnectionServicePrincipal object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: The tenantId property.
      Returns:
      the tenantId value.
    • withTenantId

      public WorkspaceConnectionServicePrincipal withTenantId(String tenantId)
      Set the tenantId property: The tenantId property.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the WorkspaceConnectionServicePrincipal 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<WorkspaceConnectionServicePrincipal>
      Throws:
      IOException
    • fromJson

      public static WorkspaceConnectionServicePrincipal fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkspaceConnectionServicePrincipal from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkspaceConnectionServicePrincipal if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the WorkspaceConnectionServicePrincipal.