Share via


CredentialResult Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.CredentialResult

Implements

public final class CredentialResult
implements JsonSerializable<CredentialResult>

The credential result response.

Method Summary

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

Reads an instance of CredentialResult from the JsonReader.

String name()

Get the name property: The name of the credential.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

byte[] value()

Get the value property: Base64-encoded Kubernetes configuration file.

Methods inherited from java.lang.Object

Method Details

fromJson

public static CredentialResult fromJson(JsonReader jsonReader)

Reads an instance of CredentialResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the credential.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public byte[] value()

Get the value property: Base64-encoded Kubernetes configuration file.

Returns:

the value value.

Applies to