Share via


SecretBase Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.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.

String getType()

Get the type property: Type of the secret.

JsonWriter toJson(JsonWriter jsonWriter)

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.

getType

public String getType()

Get the type property: Type of the secret.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to