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