Share via


AuthenticationKeysInner Class

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

Implements

public final class AuthenticationKeysInner
implements JsonSerializable<AuthenticationKeysInner>

An authentication key.

Constructor Summary

Constructor Description
AuthenticationKeysInner()

Creates an instance of AuthenticationKeysInner 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 AuthenticationKeysInner fromJson(JsonReader jsonReader)

Reads an instance of AuthenticationKeysInner from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AuthenticationKeysInner withAuthKey1(String authKey1)

Set the authKey1 property: The first authentication key.

AuthenticationKeysInner withAuthKey2(String authKey2)

Set the authKey2 property: The second authentication key.

Methods inherited from java.lang.Object

Constructor Details

AuthenticationKeysInner

public AuthenticationKeysInner()

Creates an instance of AuthenticationKeysInner 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 AuthenticationKeysInner fromJson(JsonReader jsonReader)

Reads an instance of AuthenticationKeysInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthKey1

public AuthenticationKeysInner withAuthKey1(String authKey1)

Set the authKey1 property: The first authentication key.

Parameters:

authKey1 - the authKey1 value to set.

Returns:

the AuthenticationKeysInner object itself.

withAuthKey2

public AuthenticationKeysInner withAuthKey2(String authKey2)

Set the authKey2 property: The second authentication key.

Parameters:

authKey2 - the authKey2 value to set.

Returns:

the AuthenticationKeysInner object itself.

Applies to