Class UrlSigningParamIdentifier
java.lang.Object
com.azure.resourcemanager.cdn.models.UrlSigningParamIdentifier
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UrlSigningParamIdentifier>
public final class UrlSigningParamIdentifier
extends Object
implements com.azure.json.JsonSerializable<UrlSigningParamIdentifier>
Defines how to identify a parameter for a specific purpose e.g. expires.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UrlSigningParamIdentifier class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlSigningParamIdentifierfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UrlSigningParamIdentifier from the JsonReader.Get the paramIndicator property: Indicates the purpose of the parameter.Get the paramName property: Parameter name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withParamIndicator(ParamIndicator paramIndicator) Set the paramIndicator property: Indicates the purpose of the parameter.withParamName(String paramName) Set the paramName property: Parameter name.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
-
UrlSigningParamIdentifier
public UrlSigningParamIdentifier()Creates an instance of UrlSigningParamIdentifier class.
-
-
Method Details
-
paramIndicator
Get the paramIndicator property: Indicates the purpose of the parameter.- Returns:
- the paramIndicator value.
-
withParamIndicator
Set the paramIndicator property: Indicates the purpose of the parameter.- Parameters:
paramIndicator- the paramIndicator value to set.- Returns:
- the UrlSigningParamIdentifier object itself.
-
paramName
Get the paramName property: Parameter name.- Returns:
- the paramName value.
-
withParamName
Set the paramName property: Parameter name.- Parameters:
paramName- the paramName value to set.- Returns:
- the UrlSigningParamIdentifier 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<UrlSigningParamIdentifier>- Throws:
IOException
-
fromJson
public static UrlSigningParamIdentifier fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UrlSigningParamIdentifier from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UrlSigningParamIdentifier 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 UrlSigningParamIdentifier.
-