Class ManagedInstanceKeyProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ManagedInstanceKeyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstanceKeyProperties>
public final class ManagedInstanceKeyProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedInstanceKeyProperties>
Properties for a key execution.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstanceKeyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoRotationEnabled property: Key auto rotation opt-in flag.Get the creationDate property: The key creation date.static ManagedInstanceKeyPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedInstanceKeyProperties from the JsonReader.Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.Get the thumbprint property: Thumbprint of the key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uri()Get the uri property: The URI of the key.voidvalidate()Validates the instance.withServerKeyType(ServerKeyType serverKeyType) Set the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.Set the uri property: The URI of the key.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
-
ManagedInstanceKeyProperties
public ManagedInstanceKeyProperties()Creates an instance of ManagedInstanceKeyProperties class.
-
-
Method Details
-
serverKeyType
Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.- Returns:
- the serverKeyType value.
-
withServerKeyType
Set the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.- Parameters:
serverKeyType- the serverKeyType value to set.- Returns:
- the ManagedInstanceKeyProperties object itself.
-
uri
Get the uri property: The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required.- Returns:
- the uri value.
-
withUri
Set the uri property: The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required.- Parameters:
uri- the uri value to set.- Returns:
- the ManagedInstanceKeyProperties object itself.
-
thumbprint
Get the thumbprint property: Thumbprint of the key.- Returns:
- the thumbprint value.
-
creationDate
Get the creationDate property: The key creation date.- Returns:
- the creationDate value.
-
autoRotationEnabled
Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.- Returns:
- the autoRotationEnabled value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedInstanceKeyProperties>- Throws:
IOException
-
fromJson
public static ManagedInstanceKeyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedInstanceKeyProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedInstanceKeyProperties 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 ManagedInstanceKeyProperties.
-