Class ManagedInstanceKeyInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.ManagedInstanceKeyInner
-
public class ManagedInstanceKeyInner extends com.azure.core.management.ProxyResourceA managed instance key.
-
-
Constructor Summary
Constructors Constructor Description ManagedInstanceKeyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimecreationDate()Get the creationDate property: The key creation date.Stringkind()Get the kind property: Kind of encryption protector.ServerKeyTypeserverKeyType()Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.Stringthumbprint()Get the thumbprint property: Thumbprint of the key.Stringuri()Get the uri property: The URI of the key.voidvalidate()Validates the instance.ManagedInstanceKeyInnerwithServerKeyType(ServerKeyType serverKeyType)Set the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.ManagedInstanceKeyInnerwithUri(String uri)Set the uri property: The URI of the key.
-
-
-
Method Detail
-
kind
public String kind()
Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience.- Returns:
- the kind value.
-
serverKeyType
public ServerKeyType serverKeyType()
Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.- Returns:
- the serverKeyType value.
-
withServerKeyType
public ManagedInstanceKeyInner withServerKeyType(ServerKeyType serverKeyType)
Set the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.- Parameters:
serverKeyType- the serverKeyType value to set.- Returns:
- the ManagedInstanceKeyInner object itself.
-
uri
public String 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
public ManagedInstanceKeyInner withUri(String uri)
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 ManagedInstanceKeyInner object itself.
-
thumbprint
public String thumbprint()
Get the thumbprint property: Thumbprint of the key.- Returns:
- the thumbprint value.
-
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The key creation date.- Returns:
- the creationDate value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-