ManagedInstanceKeyInner Class

public final class ManagedInstanceKeyInner
extends ProxyResource

A managed instance key.

Constructor Summary

Constructor Description
ManagedInstanceKeyInner()

Creates an instance of ManagedInstanceKeyInner class.

Method Summary

Modifier and Type Method and Description
Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag.

OffsetDateTime creationDate()

Get the creationDate property: The key creation date.

static ManagedInstanceKeyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceKeyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Kind of encryption protector.

String name()

Get the name property: The name of the resource.

ServerKeyType serverKeyType()

Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.

String thumbprint()

Get the thumbprint property: Thumbprint of the key.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uri()

Get the uri property: The URI of the key.

void validate()

Validates the instance.

ManagedInstanceKeyInner withServerKeyType(ServerKeyType serverKeyType)

Set the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.

ManagedInstanceKeyInner withUri(String uri)

Set the uri property: The URI of the key.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceKeyInner

public ManagedInstanceKeyInner()

Creates an instance of ManagedInstanceKeyInner class.

Method Details

autoRotationEnabled

public Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.

Returns:

the autoRotationEnabled value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The key creation date.

Returns:

the creationDate value.

fromJson

public static ManagedInstanceKeyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceKeyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedInstanceKeyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagedInstanceKeyInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedInstanceKeyInner.name()

Returns:

the name value.

serverKeyType

public ServerKeyType serverKeyType()

Get the serverKeyType property: The key type like 'ServiceManaged', 'AzureKeyVault'.

Returns:

the serverKeyType value.

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the key.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedInstanceKeyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedInstanceKeyInner.type()

Returns:

the type value.

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.

validate

public void validate()

Validates the instance.

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.

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.

Applies to