Class PremierAddOnOfferInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.PremierAddOnOfferInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Premier add-on offer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PremierAddOnOfferInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PremierAddOnOfferInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PremierAddOnOfferInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the legalTermsUrl property: Legal terms URL.Get the marketplaceOffer property: Marketplace offer.Get the marketplacePublisher property: Marketplace publisher.name()Get the name property: The name of the resource.Get the privacyPolicyUrl property: Privacy policy URL.product()Get the product property: Premier add on offer Product.Get the promoCodeRequired property: <code>true</code> if promotion code is required; otherwise, <code>false</code>.quota()Get the quota property: Premier add on offer Quota.sku()Get the sku property: Premier add on SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.vendor()Get the vendor property: Premier add on offer Vendor.Get the webHostingPlanRestrictions property: App Service plans this offer is restricted to.Set the kind property: Kind of resource.withLegalTermsUrl(String legalTermsUrl) Set the legalTermsUrl property: Legal terms URL.withMarketplaceOffer(String marketplaceOffer) Set the marketplaceOffer property: Marketplace offer.withMarketplacePublisher(String marketplacePublisher) Set the marketplacePublisher property: Marketplace publisher.withPrivacyPolicyUrl(String privacyPolicyUrl) Set the privacyPolicyUrl property: Privacy policy URL.withProduct(String product) Set the product property: Premier add on offer Product.withPromoCodeRequired(Boolean promoCodeRequired) Set the promoCodeRequired property: <code>true</code> if promotion code is required; otherwise, <code>false</code>.Set the quota property: Premier add on offer Quota.Set the sku property: Premier add on SKU.withVendor(String vendor) Set the vendor property: Premier add on offer Vendor.withWebHostingPlanRestrictions(AppServicePlanRestrictions webHostingPlanRestrictions) Set the webHostingPlanRestrictions property: App Service plans this offer is restricted to.Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kindMethods 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
-
PremierAddOnOfferInner
public PremierAddOnOfferInner()Creates an instance of PremierAddOnOfferInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
sku
Get the sku property: Premier add on SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: Premier add on SKU.- Parameters:
sku- the sku value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
product
Get the product property: Premier add on offer Product.- Returns:
- the product value.
-
withProduct
Set the product property: Premier add on offer Product.- Parameters:
product- the product value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
vendor
Get the vendor property: Premier add on offer Vendor.- Returns:
- the vendor value.
-
withVendor
Set the vendor property: Premier add on offer Vendor.- Parameters:
vendor- the vendor value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
promoCodeRequired
Get the promoCodeRequired property: <code>true</code> if promotion code is required; otherwise, <code>false</code>.- Returns:
- the promoCodeRequired value.
-
withPromoCodeRequired
Set the promoCodeRequired property: <code>true</code> if promotion code is required; otherwise, <code>false</code>.- Parameters:
promoCodeRequired- the promoCodeRequired value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
quota
Get the quota property: Premier add on offer Quota.- Returns:
- the quota value.
-
withQuota
Set the quota property: Premier add on offer Quota.- Parameters:
quota- the quota value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
webHostingPlanRestrictions
Get the webHostingPlanRestrictions property: App Service plans this offer is restricted to.- Returns:
- the webHostingPlanRestrictions value.
-
withWebHostingPlanRestrictions
public PremierAddOnOfferInner withWebHostingPlanRestrictions(AppServicePlanRestrictions webHostingPlanRestrictions) Set the webHostingPlanRestrictions property: App Service plans this offer is restricted to.- Parameters:
webHostingPlanRestrictions- the webHostingPlanRestrictions value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
privacyPolicyUrl
Get the privacyPolicyUrl property: Privacy policy URL.- Returns:
- the privacyPolicyUrl value.
-
withPrivacyPolicyUrl
Set the privacyPolicyUrl property: Privacy policy URL.- Parameters:
privacyPolicyUrl- the privacyPolicyUrl value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
legalTermsUrl
Get the legalTermsUrl property: Legal terms URL.- Returns:
- the legalTermsUrl value.
-
withLegalTermsUrl
Set the legalTermsUrl property: Legal terms URL.- Parameters:
legalTermsUrl- the legalTermsUrl value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
marketplacePublisher
Get the marketplacePublisher property: Marketplace publisher.- Returns:
- the marketplacePublisher value.
-
withMarketplacePublisher
Set the marketplacePublisher property: Marketplace publisher.- Parameters:
marketplacePublisher- the marketplacePublisher value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
marketplaceOffer
Get the marketplaceOffer property: Marketplace offer.- Returns:
- the marketplaceOffer value.
-
withMarketplaceOffer
Set the marketplaceOffer property: Marketplace offer.- Parameters:
marketplaceOffer- the marketplaceOffer value to set.- Returns:
- the PremierAddOnOfferInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
public static PremierAddOnOfferInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PremierAddOnOfferInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PremierAddOnOfferInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PremierAddOnOfferInner.
-