PremierAddOnOfferInner Class

public final class PremierAddOnOfferInner
extends ProxyOnlyResource

Premier add-on offer.

Constructor Summary

Constructor Description
PremierAddOnOfferInner()

Creates an instance of PremierAddOnOfferInner class.

Method Summary

Modifier and Type Method and Description
static PremierAddOnOfferInner fromJson(JsonReader jsonReader)

Reads an instance of PremierAddOnOfferInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String legalTermsUrl()

Get the legalTermsUrl property: Legal terms URL.

String marketplaceOffer()

Get the marketplaceOffer property: Marketplace offer.

String marketplacePublisher()

Get the marketplacePublisher property: Marketplace publisher.

String name()

Get the name property: The name of the resource.

String privacyPolicyUrl()

Get the privacyPolicyUrl property: Privacy policy URL.

String product()

Get the product property: Premier add on offer Product.

Boolean promoCodeRequired()

Get the promoCodeRequired property: true if promotion code is required; otherwise, false.

Integer quota()

Get the quota property: Premier add on offer Quota.

String sku()

Get the sku property: Premier add on SKU.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String vendor()

Get the vendor property: Premier add on offer Vendor.

AppServicePlanRestrictions webHostingPlanRestrictions()

Get the webHostingPlanRestrictions property: App Service plans this offer is restricted to.

PremierAddOnOfferInner withKind(String kind)

Set the kind property: Kind of resource.

PremierAddOnOfferInner withLegalTermsUrl(String legalTermsUrl)

Set the legalTermsUrl property: Legal terms URL.

PremierAddOnOfferInner withMarketplaceOffer(String marketplaceOffer)

Set the marketplaceOffer property: Marketplace offer.

PremierAddOnOfferInner withMarketplacePublisher(String marketplacePublisher)

Set the marketplacePublisher property: Marketplace publisher.

PremierAddOnOfferInner withPrivacyPolicyUrl(String privacyPolicyUrl)

Set the privacyPolicyUrl property: Privacy policy URL.

PremierAddOnOfferInner withProduct(String product)

Set the product property: Premier add on offer Product.

PremierAddOnOfferInner withPromoCodeRequired(Boolean promoCodeRequired)

Set the promoCodeRequired property: true if promotion code is required; otherwise, false.

PremierAddOnOfferInner withQuota(Integer quota)

Set the quota property: Premier add on offer Quota.

PremierAddOnOfferInner withSku(String sku)

Set the sku property: Premier add on SKU.

PremierAddOnOfferInner withVendor(String vendor)

Set the vendor property: Premier add on offer Vendor.

PremierAddOnOfferInner withWebHostingPlanRestrictions(AppServicePlanRestrictions webHostingPlanRestrictions)

Set the webHostingPlanRestrictions property: App Service plans this offer is restricted to.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

PremierAddOnOfferInner

public PremierAddOnOfferInner()

Creates an instance of PremierAddOnOfferInner class.

Method Details

fromJson

public static PremierAddOnOfferInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PremierAddOnOfferInner.id()

Returns:

the id value.

legalTermsUrl

public String legalTermsUrl()

Get the legalTermsUrl property: Legal terms URL.

Returns:

the legalTermsUrl value.

marketplaceOffer

public String marketplaceOffer()

Get the marketplaceOffer property: Marketplace offer.

Returns:

the marketplaceOffer value.

marketplacePublisher

public String marketplacePublisher()

Get the marketplacePublisher property: Marketplace publisher.

Returns:

the marketplacePublisher value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PremierAddOnOfferInner.name()

Returns:

the name value.

privacyPolicyUrl

public String privacyPolicyUrl()

Get the privacyPolicyUrl property: Privacy policy URL.

Returns:

the privacyPolicyUrl value.

product

public String product()

Get the product property: Premier add on offer Product.

Returns:

the product value.

promoCodeRequired

public Boolean promoCodeRequired()

Get the promoCodeRequired property: true if promotion code is required; otherwise, false.

Returns:

the promoCodeRequired value.

quota

public Integer quota()

Get the quota property: Premier add on offer Quota.

Returns:

the quota value.

sku

public String sku()

Get the sku property: Premier add on SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PremierAddOnOfferInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PremierAddOnOfferInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

PremierAddOnOfferInner.validate()

vendor

public String vendor()

Get the vendor property: Premier add on offer Vendor.

Returns:

the vendor value.

webHostingPlanRestrictions

public AppServicePlanRestrictions webHostingPlanRestrictions()

Get the webHostingPlanRestrictions property: App Service plans this offer is restricted to.

Returns:

the webHostingPlanRestrictions value.

withKind

public PremierAddOnOfferInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

PremierAddOnOfferInner.withKind(String kind)

Parameters:

kind

withLegalTermsUrl

public PremierAddOnOfferInner withLegalTermsUrl(String legalTermsUrl)

Set the legalTermsUrl property: Legal terms URL.

Parameters:

legalTermsUrl - the legalTermsUrl value to set.

Returns:

the PremierAddOnOfferInner object itself.

withMarketplaceOffer

public PremierAddOnOfferInner withMarketplaceOffer(String marketplaceOffer)

Set the marketplaceOffer property: Marketplace offer.

Parameters:

marketplaceOffer - the marketplaceOffer value to set.

Returns:

the PremierAddOnOfferInner object itself.

withMarketplacePublisher

public PremierAddOnOfferInner withMarketplacePublisher(String marketplacePublisher)

Set the marketplacePublisher property: Marketplace publisher.

Parameters:

marketplacePublisher - the marketplacePublisher value to set.

Returns:

the PremierAddOnOfferInner object itself.

withPrivacyPolicyUrl

public PremierAddOnOfferInner withPrivacyPolicyUrl(String privacyPolicyUrl)

Set the privacyPolicyUrl property: Privacy policy URL.

Parameters:

privacyPolicyUrl - the privacyPolicyUrl value to set.

Returns:

the PremierAddOnOfferInner object itself.

withProduct

public PremierAddOnOfferInner withProduct(String product)

Set the product property: Premier add on offer Product.

Parameters:

product - the product value to set.

Returns:

the PremierAddOnOfferInner object itself.

withPromoCodeRequired

public PremierAddOnOfferInner withPromoCodeRequired(Boolean promoCodeRequired)

Set the promoCodeRequired property: true if promotion code is required; otherwise, false.

Parameters:

promoCodeRequired - the promoCodeRequired value to set.

Returns:

the PremierAddOnOfferInner object itself.

withQuota

public PremierAddOnOfferInner withQuota(Integer quota)

Set the quota property: Premier add on offer Quota.

Parameters:

quota - the quota value to set.

Returns:

the PremierAddOnOfferInner object itself.

withSku

public PremierAddOnOfferInner withSku(String sku)

Set the sku property: Premier add on SKU.

Parameters:

sku - the sku value to set.

Returns:

the PremierAddOnOfferInner object itself.

withVendor

public PremierAddOnOfferInner withVendor(String vendor)

Set the vendor property: Premier add on offer Vendor.

Parameters:

vendor - the vendor value to set.

Returns:

the PremierAddOnOfferInner object itself.

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.

Applies to