Class AuthorizationPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.AuthorizationPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizationPropertiesFormat>
public final class AuthorizationPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<AuthorizationPropertiesFormat>
Properties of ExpressRouteCircuitAuthorization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AuthorizationPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authorizationKey property: The authorization key.Get the authorizationUseStatus property: The authorization use status.Get the connectionResourceUri property: The reference to the ExpressRoute connection resource using the authorization.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AuthorizationPropertiesFormat from the JsonReader.Get the provisioningState property: The provisioning state of the authorization resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthorizationKey(String authorizationKey) Set the authorizationKey property: The authorization key.withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus) Set the authorizationUseStatus property: The authorization use status.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
-
AuthorizationPropertiesFormat
public AuthorizationPropertiesFormat()Creates an instance of AuthorizationPropertiesFormat class.
-
-
Method Details
-
authorizationKey
Get the authorizationKey property: The authorization key.- Returns:
- the authorizationKey value.
-
withAuthorizationKey
Set the authorizationKey property: The authorization key.- Parameters:
authorizationKey- the authorizationKey value to set.- Returns:
- the AuthorizationPropertiesFormat object itself.
-
authorizationUseStatus
Get the authorizationUseStatus property: The authorization use status.- Returns:
- the authorizationUseStatus value.
-
withAuthorizationUseStatus
public AuthorizationPropertiesFormat withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus) Set the authorizationUseStatus property: The authorization use status.- Parameters:
authorizationUseStatus- the authorizationUseStatus value to set.- Returns:
- the AuthorizationPropertiesFormat object itself.
-
connectionResourceUri
Get the connectionResourceUri property: The reference to the ExpressRoute connection resource using the authorization.- Returns:
- the connectionResourceUri value.
-
provisioningState
Get the provisioningState property: The provisioning state of the authorization resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AuthorizationPropertiesFormat>- Throws:
IOException
-
fromJson
public static AuthorizationPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthorizationPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AuthorizationPropertiesFormat 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 AuthorizationPropertiesFormat.
-