Class WorkspaceConnectionManagedIdentity

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

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

    • WorkspaceConnectionManagedIdentity

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The resourceId property.
      Returns:
      the resourceId value.
    • withResourceId

      public WorkspaceConnectionManagedIdentity withResourceId(String resourceId)
      Set the resourceId property: The resourceId property.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the WorkspaceConnectionManagedIdentity object itself.
    • clientId

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

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

      public static WorkspaceConnectionManagedIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WorkspaceConnectionManagedIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WorkspaceConnectionManagedIdentity 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 WorkspaceConnectionManagedIdentity.