共用方式為


CloudHsmProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.hardwaresecuritymodules.models.CloudHsmProperties

Implements

public final class CloudHsmProperties
implements JsonSerializable<CloudHsmProperties>

The Cloud HSM Properties.

Constructor Summary

Constructor Description
CloudHsmProperties()

Creates an instance of CloudHsmProperties class.

Method Summary

Modifier and Type Method and Description
String fqdn()

Get the fqdn property: FQDN of the Cloud HSM.

static CloudHsmProperties fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmProperties from the JsonReader.

String state()

Get the state property: The Cloud HSM State.

String stateMessage()

Get the stateMessage property: The Cloud HSM State message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudHsmProperties withFqdn(String fqdn)

Set the fqdn property: FQDN of the Cloud HSM.

CloudHsmProperties withState(String state)

Set the state property: The Cloud HSM State.

CloudHsmProperties withStateMessage(String stateMessage)

Set the stateMessage property: The Cloud HSM State message.

Methods inherited from java.lang.Object

Constructor Details

CloudHsmProperties

public CloudHsmProperties()

Creates an instance of CloudHsmProperties class.

Method Details

fqdn

public String fqdn()

Get the fqdn property: FQDN of the Cloud HSM.

Returns:

the fqdn value.

fromJson

public static CloudHsmProperties fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the CloudHsmProperties.

state

public String state()

Get the state property: The Cloud HSM State. Values are: Deploying, ConfiguringSlb, Starting, Starting, Failed, Failed, Deleting, DeletingSlbEntry, InitialProvisioning, Updating.

Returns:

the state value.

stateMessage

public String stateMessage()

Get the stateMessage property: The Cloud HSM State message.

Returns:

the stateMessage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFqdn

public CloudHsmProperties withFqdn(String fqdn)

Set the fqdn property: FQDN of the Cloud HSM.

Parameters:

fqdn - the fqdn value to set.

Returns:

the CloudHsmProperties object itself.

withState

public CloudHsmProperties withState(String state)

Set the state property: The Cloud HSM State. Values are: Deploying, ConfiguringSlb, Starting, Starting, Failed, Failed, Deleting, DeletingSlbEntry, InitialProvisioning, Updating.

Parameters:

state - the state value to set.

Returns:

the CloudHsmProperties object itself.

withStateMessage

public CloudHsmProperties withStateMessage(String stateMessage)

Set the stateMessage property: The Cloud HSM State message.

Parameters:

stateMessage - the stateMessage value to set.

Returns:

the CloudHsmProperties object itself.

Applies to