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.
Constructor Summary
Constructor | Description |
---|---|
AlternativeOption() |
Creates an instance of Alternative |
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. |
Alternative |
withType(AlternativeType type)
Set the type property: Describes the type of the alternative option. |
Alternative |
withValue(String value)
Set the value property: Indicates the alternative option value specified by the Publisher. |
Methods inherited from java.lang.Object
Constructor Details
AlternativeOption
public AlternativeOption()
Creates an instance of AlternativeOption class.
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:
withType
public AlternativeOption withType(AlternativeType type)
Set the type property: Describes the type of the alternative option.
Parameters:
Returns:
withValue
public AlternativeOption withValue(String value)
Set 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.
Parameters:
Returns:
Applies to
Azure SDK for Java