Class SignedIdentifier
java.lang.Object
com.azure.resourcemanager.storage.models.SignedIdentifier
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SignedIdentifier>
public final class SignedIdentifier
extends Object
implements com.azure.json.JsonSerializable<SignedIdentifier>
The SignedIdentifier model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessPolicy property: Access policy.static SignedIdentifierfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SignedIdentifier from the JsonReader.id()Get the id property: An unique identifier of the stored access policy.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessPolicy(AccessPolicy accessPolicy) Set the accessPolicy property: Access policy.Set the id property: An unique identifier of the stored access policy.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
-
SignedIdentifier
public SignedIdentifier()Creates an instance of SignedIdentifier class.
-
-
Method Details
-
id
Get the id property: An unique identifier of the stored access policy.- Returns:
- the id value.
-
withId
Set the id property: An unique identifier of the stored access policy.- Parameters:
id- the id value to set.- Returns:
- the SignedIdentifier object itself.
-
accessPolicy
Get the accessPolicy property: Access policy.- Returns:
- the accessPolicy value.
-
withAccessPolicy
Set the accessPolicy property: Access policy.- Parameters:
accessPolicy- the accessPolicy value to set.- Returns:
- the SignedIdentifier 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<SignedIdentifier>- Throws:
IOException
-
fromJson
Reads an instance of SignedIdentifier from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SignedIdentifier 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 SignedIdentifier.
-