Share via


ApiKey Class

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

Implements

public final class ApiKey
implements JsonSerializable<ApiKey>

Azure quantum workspace Api key details.

Constructor Summary

Constructor Description
ApiKey()

Creates an instance of ApiKey class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdAt()

Get the createdAt property: The creation time of the api key.

static ApiKey fromJson(JsonReader jsonReader)

Reads an instance of ApiKey from the JsonReader.

String key()

Get the key property: The Api key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApiKey withCreatedAt(OffsetDateTime createdAt)

Set the createdAt property: The creation time of the api key.

Methods inherited from java.lang.Object

Constructor Details

ApiKey

public ApiKey()

Creates an instance of ApiKey class.

Method Details

createdAt

public OffsetDateTime createdAt()

Get the createdAt property: The creation time of the api key.

Returns:

the createdAt value.

fromJson

public static ApiKey fromJson(JsonReader jsonReader)

Reads an instance of ApiKey from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public String key()

Get the key property: The Api key.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCreatedAt

public ApiKey withCreatedAt(OffsetDateTime createdAt)

Set the createdAt property: The creation time of the api key.

Parameters:

createdAt - the createdAt value to set.

Returns:

the ApiKey object itself.

Applies to