ServerKeyProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.fluent.models.ServerKeyProperties

Implements

public final class ServerKeyProperties
implements JsonSerializable<ServerKeyProperties>

Properties for a key execution.

Constructor Summary

Constructor Description
ServerKeyProperties()

Creates an instance of ServerKeyProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationDate()

Get the creationDate property: The key creation date.

static ServerKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerKeyProperties from the JsonReader.

ServerKeyType serverKeyType()

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

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The URI of the key.

void validate()

Validates the instance.

ServerKeyProperties withServerKeyType(ServerKeyType serverKeyType)

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

ServerKeyProperties withUri(String uri)

Set the uri property: The URI of the key.

Methods inherited from java.lang.Object

Constructor Details

ServerKeyProperties

public ServerKeyProperties()

Creates an instance of ServerKeyProperties class.

Method Details

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The key creation date.

Returns:

the creationDate value.

fromJson

public static ServerKeyProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerKeyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerKeyProperties 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.

serverKeyType

public ServerKeyType serverKeyType()

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

Returns:

the serverKeyType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uri

public String uri()

Get the uri property: The URI of the key.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withServerKeyType

public ServerKeyProperties withServerKeyType(ServerKeyType serverKeyType)

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

Parameters:

serverKeyType - the serverKeyType value to set.

Returns:

the ServerKeyProperties object itself.

withUri

public ServerKeyProperties withUri(String uri)

Set the uri property: The URI of the key.

Parameters:

uri - the uri value to set.

Returns:

the ServerKeyProperties object itself.

Applies to