Class LiftrBaseMarketplaceDetailsUpdate
java.lang.Object
com.azure.resourcemanager.astro.models.LiftrBaseMarketplaceDetailsUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LiftrBaseMarketplaceDetailsUpdate>
public final class LiftrBaseMarketplaceDetailsUpdate
extends Object
implements com.azure.json.JsonSerializable<LiftrBaseMarketplaceDetailsUpdate>
Marketplace details for an organization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LiftrBaseMarketplaceDetailsUpdate class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LiftrBaseMarketplaceDetailsUpdate from the JsonReader.Get the offerDetails property: Offer details for the marketplace that is selected by the user.Get the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.Get the subscriptionStatus property: Marketplace subscription status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOfferDetails(LiftrBaseOfferDetailsUpdate offerDetails) Set the offerDetails property: Offer details for the marketplace that is selected by the user.withSubscriptionId(String subscriptionId) Set the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.withSubscriptionStatus(MarketplaceSubscriptionStatus subscriptionStatus) Set the subscriptionStatus property: Marketplace subscription status.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
-
LiftrBaseMarketplaceDetailsUpdate
public LiftrBaseMarketplaceDetailsUpdate()Creates an instance of LiftrBaseMarketplaceDetailsUpdate class.
-
-
Method Details
-
subscriptionId
Get the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Azure subscription id for the the marketplace offer is purchased from.- Parameters:
subscriptionId- the subscriptionId value to set.- Returns:
- the LiftrBaseMarketplaceDetailsUpdate object itself.
-
subscriptionStatus
Get the subscriptionStatus property: Marketplace subscription status.- Returns:
- the subscriptionStatus value.
-
withSubscriptionStatus
public LiftrBaseMarketplaceDetailsUpdate withSubscriptionStatus(MarketplaceSubscriptionStatus subscriptionStatus) Set the subscriptionStatus property: Marketplace subscription status.- Parameters:
subscriptionStatus- the subscriptionStatus value to set.- Returns:
- the LiftrBaseMarketplaceDetailsUpdate object itself.
-
offerDetails
Get the offerDetails property: Offer details for the marketplace that is selected by the user.- Returns:
- the offerDetails value.
-
withOfferDetails
Set the offerDetails property: Offer details for the marketplace that is selected by the user.- Parameters:
offerDetails- the offerDetails value to set.- Returns:
- the LiftrBaseMarketplaceDetailsUpdate 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<LiftrBaseMarketplaceDetailsUpdate>- Throws:
IOException
-
fromJson
public static LiftrBaseMarketplaceDetailsUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LiftrBaseMarketplaceDetailsUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LiftrBaseMarketplaceDetailsUpdate 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 LiftrBaseMarketplaceDetailsUpdate.
-