Udostępnij za pośrednictwem


DomainRegenerateKeyRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest

Implements

public final class DomainRegenerateKeyRequest
implements JsonSerializable<DomainRegenerateKeyRequest>

Domain regenerate share access key request.

Constructor Summary

Constructor Description
DomainRegenerateKeyRequest()

Creates an instance of DomainRegenerateKeyRequest class.

Method Summary

Modifier and Type Method and Description
static DomainRegenerateKeyRequest fromJson(JsonReader jsonReader)

Reads an instance of DomainRegenerateKeyRequest from the JsonReader.

String keyName()

Get the keyName property: Key name to regenerate key1 or key2.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DomainRegenerateKeyRequest withKeyName(String keyName)

Set the keyName property: Key name to regenerate key1 or key2.

Methods inherited from java.lang.Object

Constructor Details

DomainRegenerateKeyRequest

public DomainRegenerateKeyRequest()

Creates an instance of DomainRegenerateKeyRequest class.

Method Details

fromJson

public static DomainRegenerateKeyRequest fromJson(JsonReader jsonReader)

Reads an instance of DomainRegenerateKeyRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyName

public String keyName()

Get the keyName property: Key name to regenerate key1 or key2.

Returns:

the keyName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyName

public DomainRegenerateKeyRequest withKeyName(String keyName)

Set the keyName property: Key name to regenerate key1 or key2.

Parameters:

keyName - the keyName value to set.

Returns:

the DomainRegenerateKeyRequest object itself.

Applies to