次の方法で共有


NamespaceRegenerateKeyRequest Class

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

Implements

public final class NamespaceRegenerateKeyRequest
implements JsonSerializable<NamespaceRegenerateKeyRequest>

Namespace regenerate share access key request.

Constructor Summary

Constructor Description
NamespaceRegenerateKeyRequest()

Creates an instance of NamespaceRegenerateKeyRequest class.

Method Summary

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

Reads an instance of NamespaceRegenerateKeyRequest 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.

NamespaceRegenerateKeyRequest withKeyName(String keyName)

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

Methods inherited from java.lang.Object

Constructor Details

NamespaceRegenerateKeyRequest

public NamespaceRegenerateKeyRequest()

Creates an instance of NamespaceRegenerateKeyRequest class.

Method Details

fromJson

public static NamespaceRegenerateKeyRequest fromJson(JsonReader jsonReader)

Reads an instance of NamespaceRegenerateKeyRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NamespaceRegenerateKeyRequest 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 NamespaceRegenerateKeyRequest withKeyName(String keyName)

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

Parameters:

keyName - the keyName value to set.

Returns:

the NamespaceRegenerateKeyRequest object itself.

Applies to