RegenerateKeyParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.RegenerateKeyParameters

Implements

public final class RegenerateKeyParameters
implements JsonSerializable<RegenerateKeyParameters>

Parameters describes the request to regenerate access keys.

Constructor Summary

Constructor Description
RegenerateKeyParameters()

Creates an instance of RegenerateKeyParameters class.

Method Summary

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

Reads an instance of RegenerateKeyParameters from the JsonReader.

KeyType keyType()

Get the keyType property: The type of access key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegenerateKeyParameters withKeyType(KeyType keyType)

Set the keyType property: The type of access key.

Methods inherited from java.lang.Object

Constructor Details

RegenerateKeyParameters

public RegenerateKeyParameters()

Creates an instance of RegenerateKeyParameters class.

Method Details

fromJson

public static RegenerateKeyParameters fromJson(JsonReader jsonReader)

Reads an instance of RegenerateKeyParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyType

public KeyType keyType()

Get the keyType property: The type of access key.

Returns:

the keyType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyType

public RegenerateKeyParameters withKeyType(KeyType keyType)

Set the keyType property: The type of access key.

Parameters:

keyType - the keyType value to set.

Returns:

the RegenerateKeyParameters object itself.

Applies to