Class CustomImagePropertiesFromPlan
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.CustomImagePropertiesFromPlan
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomImagePropertiesFromPlan>
public final class CustomImagePropertiesFromPlan
extends Object
implements com.azure.json.JsonSerializable<CustomImagePropertiesFromPlan>
Properties for plan on a custom image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomImagePropertiesFromPlan class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomImagePropertiesFromPlan from the JsonReader.id()
Get the id property: The id of the plan, equivalent to name of the plan.offer()
Get the offer property: The offer for the plan from the marketplace image the custom image is derived from.Get the publisher property: The publisher for the plan from the marketplace image the custom image is derived from.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the id property: The id of the plan, equivalent to name of the plan.Set the offer property: The offer for the plan from the marketplace image the custom image is derived from.withPublisher
(String publisher) Set the publisher property: The publisher for the plan from the marketplace image the custom image is derived from.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
-
CustomImagePropertiesFromPlan
public CustomImagePropertiesFromPlan()Creates an instance of CustomImagePropertiesFromPlan class.
-
-
Method Details
-
id
Get the id property: The id of the plan, equivalent to name of the plan.- Returns:
- the id value.
-
withId
Set the id property: The id of the plan, equivalent to name of the plan.- Parameters:
id
- the id value to set.- Returns:
- the CustomImagePropertiesFromPlan object itself.
-
publisher
Get the publisher property: The publisher for the plan from the marketplace image the custom image is derived from.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The publisher for the plan from the marketplace image the custom image is derived from.- Parameters:
publisher
- the publisher value to set.- Returns:
- the CustomImagePropertiesFromPlan object itself.
-
offer
Get the offer property: The offer for the plan from the marketplace image the custom image is derived from.- Returns:
- the offer value.
-
withOffer
Set the offer property: The offer for the plan from the marketplace image the custom image is derived from.- Parameters:
offer
- the offer value to set.- Returns:
- the CustomImagePropertiesFromPlan 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<CustomImagePropertiesFromPlan>
- Throws:
IOException
-
fromJson
public static CustomImagePropertiesFromPlan fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomImagePropertiesFromPlan from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CustomImagePropertiesFromPlan 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 CustomImagePropertiesFromPlan.
-