ServerKeyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. ServerKeyInner
- com.
- com.
public final class ServerKeyInner
extends ProxyResource
A server key.
Constructor Summary
Constructor | Description |
---|---|
ServerKeyInner() |
Creates an instance of Server |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoRotationEnabled()
Get the auto |
Offset |
creationDate()
Get the creation |
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
kind()
Get the kind property: Kind of encryption protector. |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: The name of the resource. |
Server |
serverKeyType()
Get the server |
String |
subregion()
Get the subregion property: Subregion of the server key. |
String |
thumbprint()
Get the thumbprint property: Thumbprint of the server key. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
String |
uri()
Get the uri property: The URI of the server key. |
void |
validate()
Validates the instance. |
Server |
withServerKeyType(ServerKeyType serverKeyType)
Set the server |
Server |
withUri(String uri)
Set the uri property: The URI of the server key. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ServerKeyInner
public ServerKeyInner()
Creates an instance of ServerKeyInner class.
Method Details
autoRotationEnabled
public Boolean autoRotationEnabled()
Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.
Returns:
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The server key creation date.
Returns:
fromJson
public static ServerKeyInner fromJson(JsonReader jsonReader)
Reads an instance of ServerKeyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ServerKeyInner.id()Returns:
kind
public String kind()
Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience.
Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ServerKeyInner.name()Returns:
serverKeyType
public ServerKeyType serverKeyType()
Get the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.
Returns:
subregion
public String subregion()
Get the subregion property: Subregion of the server key.
Returns:
thumbprint
public String thumbprint()
Get the thumbprint property: Thumbprint of the server key.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ServerKeyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ServerKeyInner.type()Returns:
uri
public String uri()
Get the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.
Returns:
validate
public void validate()
Validates the instance.
withServerKeyType
public ServerKeyInner withServerKeyType(ServerKeyType serverKeyType)
Set the serverKeyType property: The server key type like 'ServiceManaged', 'AzureKeyVault'.
Parameters:
Returns:
withUri
public ServerKeyInner withUri(String uri)
Set the uri property: The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion'.
Parameters:
Returns:
Applies to
Azure SDK for Java