Class ScopeProperties
java.lang.Object
com.azure.resourcemanager.reservations.models.ScopeProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScopeProperties>
public final class ScopeProperties
extends Object
implements com.azure.json.JsonSerializable<ScopeProperties>
The scope and whether it is valid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ScopeProperties from the JsonReader.scope()
Get the scope property: The scope property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) valid()
Get the valid property: The valid property.void
validate()
Validates the instance.Set the scope property: The scope property.Set the valid property: The valid property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScopeProperties
public ScopeProperties()Creates an instance of ScopeProperties class.
-
-
Method Details
-
scope
Get the scope property: The scope property.- Returns:
- the scope value.
-
withScope
Set the scope property: The scope property.- Parameters:
scope
- the scope value to set.- Returns:
- the ScopeProperties object itself.
-
valid
Get the valid property: The valid property.- Returns:
- the valid value.
-
withValid
Set the valid property: The valid property.- Parameters:
valid
- the valid value to set.- Returns:
- the ScopeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ScopeProperties>
- Throws:
IOException
-
fromJson
Reads an instance of ScopeProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ScopeProperties 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 ScopeProperties.
-