AlternativeOption Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. AlternativeOption
- com.
Implements
public final class AlternativeOption
implements JsonSerializable<AlternativeOption>
Describes the alternative option specified by the Publisher for this image when this image is deprecated.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Alternative |
fromJson(JsonReader jsonReader)
Reads an instance of Alternative |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Alternative |
type()
Get the type property: Describes the type of the alternative option. |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: Indicates the alternative option value specified by the Publisher. |
Methods inherited from java.lang.Object
Method Details
fromJson
public static AlternativeOption fromJson(JsonReader jsonReader)
Reads an instance of AlternativeOption from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public AlternativeType type()
Get the type property: Describes the type of the alternative option.
Returns:
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan.
Returns: