Share via


RegenAuthKeysInner Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.fluent.models.RegenAuthKeysInner

Implements

public final class RegenAuthKeysInner
implements JsonSerializable<RegenAuthKeysInner>

An authentication key to regenerate.

Constructor Summary

Constructor Description
RegenAuthKeysInner()

Creates an instance of RegenAuthKeysInner class.

Method Summary

Modifier and Type Method and Description
String authKey1()

Get the authKey1 property: The first authentication key.

String authKey2()

Get the authKey2 property: The second authentication key.

static RegenAuthKeysInner fromJson(JsonReader jsonReader)

Reads an instance of RegenAuthKeysInner from the JsonReader.

String keyName()

Get the keyName property: The name of authentication key to generate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegenAuthKeysInner withAuthKey1(String authKey1)

Set the authKey1 property: The first authentication key.

RegenAuthKeysInner withAuthKey2(String authKey2)

Set the authKey2 property: The second authentication key.

RegenAuthKeysInner withKeyName(String keyName)

Set the keyName property: The name of authentication key to generate.

Methods inherited from java.lang.Object

Constructor Details

RegenAuthKeysInner

public RegenAuthKeysInner()

Creates an instance of RegenAuthKeysInner class.

Method Details

authKey1

public String authKey1()

Get the authKey1 property: The first authentication key.

Returns:

the authKey1 value.

authKey2

public String authKey2()

Get the authKey2 property: The second authentication key.

Returns:

the authKey2 value.

fromJson

public static RegenAuthKeysInner fromJson(JsonReader jsonReader)

Reads an instance of RegenAuthKeysInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keyName

public String keyName()

Get the keyName property: The name of authentication key to generate.

Returns:

the keyName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthKey1

public RegenAuthKeysInner withAuthKey1(String authKey1)

Set the authKey1 property: The first authentication key.

Parameters:

authKey1 - the authKey1 value to set.

Returns:

the RegenAuthKeysInner object itself.

withAuthKey2

public RegenAuthKeysInner withAuthKey2(String authKey2)

Set the authKey2 property: The second authentication key.

Parameters:

authKey2 - the authKey2 value to set.

Returns:

the RegenAuthKeysInner object itself.

withKeyName

public RegenAuthKeysInner withKeyName(String keyName)

Set the keyName property: The name of authentication key to generate.

Parameters:

keyName - the keyName value to set.

Returns:

the RegenAuthKeysInner object itself.

Applies to