Class WorkspaceConnectionPropertiesV2

java.lang.Object
com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceConnectionPropertiesV2>
Direct Known Subclasses:
AadAuthTypeWorkspaceConnectionProperties, AccessKeyAuthTypeWorkspaceConnectionProperties, AccountKeyAuthTypeWorkspaceConnectionProperties, ApiKeyAuthWorkspaceConnectionProperties, CustomKeysWorkspaceConnectionProperties, ManagedIdentityAuthTypeWorkspaceConnectionProperties, NoneAuthTypeWorkspaceConnectionProperties, OAuth2AuthTypeWorkspaceConnectionProperties, PatAuthTypeWorkspaceConnectionProperties, SasAuthTypeWorkspaceConnectionProperties, ServicePrincipalAuthTypeWorkspaceConnectionProperties, UsernamePasswordAuthTypeWorkspaceConnectionProperties

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

    • WorkspaceConnectionPropertiesV2

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

    • authType

      public ConnectionAuthType authType()
      Get the authType property: Authentication type of the connection target.
      Returns:
      the authType value.
    • category

      public ConnectionCategory category()
      Get the category property: Category of the connection.
      Returns:
      the category value.
    • withCategory

      public WorkspaceConnectionPropertiesV2 withCategory(ConnectionCategory category)
      Set the category property: Category of the connection.
      Parameters:
      category - the category value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • createdByWorkspaceArmId

      public String createdByWorkspaceArmId()
      Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
      Returns:
      the createdByWorkspaceArmId value.
    • expiryTime

      public OffsetDateTime expiryTime()
      Get the expiryTime property: The expiryTime property.
      Returns:
      the expiryTime value.
    • withExpiryTime

      public WorkspaceConnectionPropertiesV2 withExpiryTime(OffsetDateTime expiryTime)
      Set the expiryTime property: The expiryTime property.
      Parameters:
      expiryTime - the expiryTime value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • group

      public ConnectionGroup group()
      Get the group property: Group based on connection category.
      Returns:
      the group value.
    • isSharedToAll

      public Boolean isSharedToAll()
      Get the isSharedToAll property: The isSharedToAll property.
      Returns:
      the isSharedToAll value.
    • withIsSharedToAll

      public WorkspaceConnectionPropertiesV2 withIsSharedToAll(Boolean isSharedToAll)
      Set the isSharedToAll property: The isSharedToAll property.
      Parameters:
      isSharedToAll - the isSharedToAll value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • target

      public String target()
      Get the target property: The target property.
      Returns:
      the target value.
    • withTarget

      public WorkspaceConnectionPropertiesV2 withTarget(String target)
      Set the target property: The target property.
      Parameters:
      target - the target value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • metadata

      public Map<String,String> metadata()
      Get the metadata property: Store user metadata for this connection.
      Returns:
      the metadata value.
    • withMetadata

      public WorkspaceConnectionPropertiesV2 withMetadata(Map<String,String> metadata)
      Set the metadata property: Store user metadata for this connection.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • sharedUserList

      public List<String> sharedUserList()
      Get the sharedUserList property: The sharedUserList property.
      Returns:
      the sharedUserList value.
    • withSharedUserList

      public WorkspaceConnectionPropertiesV2 withSharedUserList(List<String> sharedUserList)
      Set the sharedUserList property: The sharedUserList property.
      Parameters:
      sharedUserList - the sharedUserList value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • value

      public String value()
      Get the value property: Value details of the workspace connection.
      Returns:
      the value value.
    • withValue

      public WorkspaceConnectionPropertiesV2 withValue(String value)
      Set the value property: Value details of the workspace connection.
      Parameters:
      value - the value value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 object itself.
    • valueFormat

      public ValueFormat valueFormat()
      Get the valueFormat property: format for the workspace connection value.
      Returns:
      the valueFormat value.
    • withValueFormat

      public WorkspaceConnectionPropertiesV2 withValueFormat(ValueFormat valueFormat)
      Set the valueFormat property: format for the workspace connection value.
      Parameters:
      valueFormat - the valueFormat value to set.
      Returns:
      the WorkspaceConnectionPropertiesV2 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<WorkspaceConnectionPropertiesV2>
      Throws:
      IOException
    • fromJson

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