GatewayTokenRequestContract Class
- java.
lang. Object - com.
azure. resourcemanager. apimanagement. models. GatewayTokenRequestContract
- com.
Implements
public final class GatewayTokenRequestContract
implements JsonSerializable<GatewayTokenRequestContract>
Gateway token request contract properties.
Constructor Summary
| Constructor | Description |
|---|---|
| GatewayTokenRequestContract() |
Creates an instance of Gateway |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
expiry()
Get the expiry property: The Expiry time of the Token. |
|
static
Gateway |
fromJson(JsonReader jsonReader)
Reads an instance of Gateway |
|
Key |
keyType()
Get the key |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Gateway |
withExpiry(OffsetDateTime expiry)
Set the expiry property: The Expiry time of the Token. |
|
Gateway |
withKeyType(KeyType keyType)
Set the key |
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:
fromJson
public static GatewayTokenRequestContract fromJson(JsonReader jsonReader)
Reads an instance of GatewayTokenRequestContract from the JsonReader.
Parameters:
Returns:
Throws:
keyType
public KeyType keyType()
Get the keyType property: The Key to be used to generate gateway token.
Returns:
toJson
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:
Returns:
withKeyType
public GatewayTokenRequestContract withKeyType(KeyType keyType)
Set the keyType property: The Key to be used to generate gateway token.
Parameters:
Returns: