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 Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceConnectionPropertiesV2 class. -
Method Summary
Modifier and TypeMethodDescriptionauthType()Get the authType property: Authentication type of the connection target.category()Get the category property: Category of the connection.Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.Get the expiryTime property: The expiryTime property.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceConnectionPropertiesV2 from the JsonReader.group()Get the group property: Group based on connection category.Get the isSharedToAll property: The isSharedToAll property.metadata()Get the metadata property: Store user metadata for this connection.Get the sharedUserList property: The sharedUserList property.target()Get the target property: The target property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Value details of the workspace connection.Get the valueFormat property: format for the workspace connection value.withCategory(ConnectionCategory category) Set the category property: Category of the connection.withExpiryTime(OffsetDateTime expiryTime) Set the expiryTime property: The expiryTime property.withIsSharedToAll(Boolean isSharedToAll) Set the isSharedToAll property: The isSharedToAll property.withMetadata(Map<String, String> metadata) Set the metadata property: Store user metadata for this connection.withSharedUserList(List<String> sharedUserList) Set the sharedUserList property: The sharedUserList property.withTarget(String target) Set the target property: The target property.Set the value property: Value details of the workspace connection.withValueFormat(ValueFormat valueFormat) Set the valueFormat property: format for the workspace connection value.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
-
WorkspaceConnectionPropertiesV2
public WorkspaceConnectionPropertiesV2()Creates an instance of WorkspaceConnectionPropertiesV2 class.
-
-
Method Details
-
authType
Get the authType property: Authentication type of the connection target.- Returns:
- the authType value.
-
category
Get the category property: Category of the connection.- Returns:
- the category value.
-
withCategory
Set the category property: Category of the connection.- Parameters:
category- the category value to set.- Returns:
- the WorkspaceConnectionPropertiesV2 object itself.
-
createdByWorkspaceArmId
Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.- Returns:
- the createdByWorkspaceArmId value.
-
expiryTime
Get the expiryTime property: The expiryTime property.- Returns:
- the expiryTime value.
-
withExpiryTime
Set the expiryTime property: The expiryTime property.- Parameters:
expiryTime- the expiryTime value to set.- Returns:
- the WorkspaceConnectionPropertiesV2 object itself.
-
group
Get the group property: Group based on connection category.- Returns:
- the group value.
-
target
Get the target property: The target property.- Returns:
- the target value.
-
withTarget
Set the target property: The target property.- Parameters:
target- the target value to set.- Returns:
- the WorkspaceConnectionPropertiesV2 object itself.
-
metadata
Get the metadata property: Store user metadata for this connection.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Store user metadata for this connection.- Parameters:
metadata- the metadata value to set.- Returns:
- the WorkspaceConnectionPropertiesV2 object itself.
-
value
Get the value property: Value details of the workspace connection.- Returns:
- the value value.
-
withValue
Set the value property: Value details of the workspace connection.- Parameters:
value- the value value to set.- Returns:
- the WorkspaceConnectionPropertiesV2 object itself.
-
valueFormat
Get the valueFormat property: format for the workspace connection value.- Returns:
- the valueFormat value.
-
withValueFormat
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
- Specified by:
toJsonin interfacecom.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.
-