Share via


SecretBase Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.SecretBase

Implements

public class SecretBase
implements JsonSerializable<SecretBase>

The base definition of a secret type.

Constructor Summary

Constructor Description
SecretBase()

Creates an instance of SecretBase class.

Method Summary

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

Reads an instance of SecretBase from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the secret.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SecretBase

public SecretBase()

Creates an instance of SecretBase class.

Method Details

fromJson

public static SecretBase fromJson(JsonReader jsonReader)

Reads an instance of SecretBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the secret.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to