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 Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceConnectionServicePrincipal class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The clientId property.Get the clientSecret property: The clientSecret property.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceConnectionServicePrincipal from the JsonReader.tenantId()Get the tenantId property: The tenantId property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: The clientId property.withClientSecret(String clientSecret) Set the clientSecret property: The clientSecret property.withTenantId(String tenantId) Set the tenantId property: The tenantId 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
-
WorkspaceConnectionServicePrincipal
public WorkspaceConnectionServicePrincipal()Creates an instance of WorkspaceConnectionServicePrincipal class.
-
-
Method Details
-
clientId
Get the clientId property: The clientId property.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The clientId property.- Parameters:
clientId- the clientId value to set.- Returns:
- the WorkspaceConnectionServicePrincipal object itself.
-
clientSecret
Get the clientSecret property: The clientSecret property.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: The clientSecret property.- Parameters:
clientSecret- the clientSecret value to set.- Returns:
- the WorkspaceConnectionServicePrincipal object itself.
-
tenantId
Get the tenantId property: The tenantId property.- Returns:
- the tenantId value.
-
withTenantId
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
- Specified by:
toJsonin interfacecom.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.
-