Class WorkspaceConnectionAccessKey
java.lang.Object
com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionAccessKey
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceConnectionAccessKey>
public final class WorkspaceConnectionAccessKey
extends Object
implements com.azure.json.JsonSerializable<WorkspaceConnectionAccessKey>
The WorkspaceConnectionAccessKey model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceConnectionAccessKey class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessKeyId property: The accessKeyId property.static WorkspaceConnectionAccessKeyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceConnectionAccessKey from the JsonReader.Get the secretAccessKey property: The secretAccessKey property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessKeyId(String accessKeyId) Set the accessKeyId property: The accessKeyId property.withSecretAccessKey(String secretAccessKey) Set the secretAccessKey property: The secretAccessKey property.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
-
WorkspaceConnectionAccessKey
public WorkspaceConnectionAccessKey()Creates an instance of WorkspaceConnectionAccessKey class.
-
-
Method Details
-
accessKeyId
Get the accessKeyId property: The accessKeyId property.- Returns:
- the accessKeyId value.
-
withAccessKeyId
Set the accessKeyId property: The accessKeyId property.- Parameters:
accessKeyId- the accessKeyId value to set.- Returns:
- the WorkspaceConnectionAccessKey object itself.
-
secretAccessKey
Get the secretAccessKey property: The secretAccessKey property.- Returns:
- the secretAccessKey value.
-
withSecretAccessKey
Set the secretAccessKey property: The secretAccessKey property.- Parameters:
secretAccessKey- the secretAccessKey value to set.- Returns:
- the WorkspaceConnectionAccessKey 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<WorkspaceConnectionAccessKey>- Throws:
IOException
-
fromJson
public static WorkspaceConnectionAccessKey fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WorkspaceConnectionAccessKey from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceConnectionAccessKey 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 WorkspaceConnectionAccessKey.
-