Condividi tramite


GatewayTokenRequestContract Class

  • java.lang.Object
    • com.azure.resourcemanager.apimanagement.models.GatewayTokenRequestContract

Implements

public final class GatewayTokenRequestContract
implements JsonSerializable<GatewayTokenRequestContract>

Gateway token request contract properties.

Constructor Summary

Constructor Description
GatewayTokenRequestContract()

Creates an instance of GatewayTokenRequestContract class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expiry()

Get the expiry property: The Expiry time of the Token.

static GatewayTokenRequestContract fromJson(JsonReader jsonReader)

Reads an instance of GatewayTokenRequestContract from the JsonReader.

KeyType keyType()

Get the keyType property: The Key to be used to generate gateway token.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GatewayTokenRequestContract withExpiry(OffsetDateTime expiry)

Set the expiry property: The Expiry time of the Token.

GatewayTokenRequestContract withKeyType(KeyType keyType)

Set the keyType property: The Key to be used to generate gateway token.

Methods inherited from java.lang.Object

Constructor Details

GatewayTokenRequestContract

public GatewayTokenRequestContract()

Creates an instance of GatewayTokenRequestContract class.

Method Details

expiry

public OffsetDateTime expiry()

Get the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

the expiry value.

fromJson

public static GatewayTokenRequestContract fromJson(JsonReader jsonReader)

Reads an instance of GatewayTokenRequestContract from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GatewayTokenRequestContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

keyType

public KeyType keyType()

Get the keyType property: The Key to be used to generate gateway token.

Returns:

the keyType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExpiry

public GatewayTokenRequestContract withExpiry(OffsetDateTime expiry)

Set the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Parameters:

expiry - the expiry value to set.

Returns:

the GatewayTokenRequestContract object itself.

withKeyType

public GatewayTokenRequestContract withKeyType(KeyType keyType)

Set the keyType property: The Key to be used to generate gateway token.

Parameters:

keyType - the keyType value to set.

Returns:

the GatewayTokenRequestContract object itself.

Applies to