Class GatewayListDebugCredentialsContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.GatewayListDebugCredentialsContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayListDebugCredentialsContract>
public final class GatewayListDebugCredentialsContract
extends Object
implements com.azure.json.JsonSerializable<GatewayListDebugCredentialsContract>
List debug credentials properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayListDebugCredentialsContract class. -
Method Summary
Modifier and TypeMethodDescriptionapiId()Get the apiId property: Full resource Id of an API.Get the credentialsExpireAfter property: Credentials expiration in ISO8601 format.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayListDebugCredentialsContract from the JsonReader.purposes()Get the purposes property: Purposes of debug credential.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the apiId property: Full resource Id of an API.withCredentialsExpireAfter(Duration credentialsExpireAfter) Set the credentialsExpireAfter property: Credentials expiration in ISO8601 format.Set the purposes property: Purposes of debug credential.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GatewayListDebugCredentialsContract
public GatewayListDebugCredentialsContract()Creates an instance of GatewayListDebugCredentialsContract class.
-
-
Method Details
-
credentialsExpireAfter
Get the credentialsExpireAfter property: Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.- Returns:
- the credentialsExpireAfter value.
-
withCredentialsExpireAfter
public GatewayListDebugCredentialsContract withCredentialsExpireAfter(Duration credentialsExpireAfter) Set the credentialsExpireAfter property: Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.- Parameters:
credentialsExpireAfter- the credentialsExpireAfter value to set.- Returns:
- the GatewayListDebugCredentialsContract object itself.
-
purposes
Get the purposes property: Purposes of debug credential.- Returns:
- the purposes value.
-
withPurposes
public GatewayListDebugCredentialsContract withPurposes(List<GatewayListDebugCredentialsContractPurpose> purposes) Set the purposes property: Purposes of debug credential.- Parameters:
purposes- the purposes value to set.- Returns:
- the GatewayListDebugCredentialsContract object itself.
-
apiId
Get the apiId property: Full resource Id of an API.- Returns:
- the apiId value.
-
withApiId
Set the apiId property: Full resource Id of an API.- Parameters:
apiId- the apiId value to set.- Returns:
- the GatewayListDebugCredentialsContract object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GatewayListDebugCredentialsContract>- Throws:
IOException
-
fromJson
public static GatewayListDebugCredentialsContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GatewayListDebugCredentialsContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayListDebugCredentialsContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GatewayListDebugCredentialsContract.
-