Class ManagedInstanceAdministratorProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ManagedInstanceAdministratorProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstanceAdministratorProperties>
public final class ManagedInstanceAdministratorProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedInstanceAdministratorProperties>
The properties of a managed instance administrator.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstanceAdministratorProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the administratorType property: Type of the managed instance administrator.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedInstanceAdministratorProperties from the JsonReader.login()Get the login property: Login name of the managed instance administrator.sid()Get the sid property: SID (object ID) of the managed instance administrator.tenantId()Get the tenantId property: Tenant ID of the managed instance administrator.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdministratorType(ManagedInstanceAdministratorType administratorType) Set the administratorType property: Type of the managed instance administrator.Set the login property: Login name of the managed instance administrator.Set the sid property: SID (object ID) of the managed instance administrator.withTenantId(UUID tenantId) Set the tenantId property: Tenant ID of the managed instance administrator.Methods inherited from class 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
-
ManagedInstanceAdministratorProperties
public ManagedInstanceAdministratorProperties()Creates an instance of ManagedInstanceAdministratorProperties class.
-
-
Method Details
-
administratorType
Get the administratorType property: Type of the managed instance administrator.- Returns:
- the administratorType value.
-
withAdministratorType
public ManagedInstanceAdministratorProperties withAdministratorType(ManagedInstanceAdministratorType administratorType) Set the administratorType property: Type of the managed instance administrator.- Parameters:
administratorType- the administratorType value to set.- Returns:
- the ManagedInstanceAdministratorProperties object itself.
-
login
Get the login property: Login name of the managed instance administrator.- Returns:
- the login value.
-
withLogin
Set the login property: Login name of the managed instance administrator.- Parameters:
login- the login value to set.- Returns:
- the ManagedInstanceAdministratorProperties object itself.
-
sid
Get the sid property: SID (object ID) of the managed instance administrator.- Returns:
- the sid value.
-
withSid
Set the sid property: SID (object ID) of the managed instance administrator.- Parameters:
sid- the sid value to set.- Returns:
- the ManagedInstanceAdministratorProperties object itself.
-
tenantId
Get the tenantId property: Tenant ID of the managed instance administrator.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant ID of the managed instance administrator.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the ManagedInstanceAdministratorProperties 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<ManagedInstanceAdministratorProperties>- Throws:
IOException
-
fromJson
public static ManagedInstanceAdministratorProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedInstanceAdministratorProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedInstanceAdministratorProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedInstanceAdministratorProperties.
-