Share via


ApiKeys Class

  • java.lang.Object
    • com.azure.resourcemanager.quantum.models.ApiKeys

Implements

public final class ApiKeys
implements JsonSerializable<ApiKeys>

List of api keys to be generated.

Constructor Summary

Constructor Description
ApiKeys()

Creates an instance of ApiKeys class.

Method Summary

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

Reads an instance of ApiKeys from the JsonReader.

List<KeyType> keys()

Get the keys property: A list of api key names.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiKeys withKeys(List<KeyType> keys)

Set the keys property: A list of api key names.

Methods inherited from java.lang.Object

Constructor Details

ApiKeys

public ApiKeys()

Creates an instance of ApiKeys class.

Method Details

fromJson

public static ApiKeys fromJson(JsonReader jsonReader)

Reads an instance of ApiKeys from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

keys

public List<KeyType> keys()

Get the keys property: A list of api key names.

Returns:

the keys value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeys

public ApiKeys withKeys(List<KeyType> keys)

Set the keys property: A list of api key names.

Parameters:

keys - the keys value to set.

Returns:

the ApiKeys object itself.

Applies to