ResourceModelWithAllowedPropertySetPlan Class

public final class ResourceModelWithAllowedPropertySetPlan
extends Plan

The ResourceModelWithAllowedPropertySetPlan model.

Constructor Summary

Constructor Description
ResourceModelWithAllowedPropertySetPlan()

Creates an instance of ResourceModelWithAllowedPropertySetPlan class.

Method Summary

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

Reads an instance of ResourceModelWithAllowedPropertySetPlan from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceModelWithAllowedPropertySetPlan withName(String name)

Set the name property: A user defined name of the 3rd Party Artifact that is being procured.

ResourceModelWithAllowedPropertySetPlan withProduct(String product)

Set the product property: The 3rd Party artifact that is being procured.

ResourceModelWithAllowedPropertySetPlan withPromotionCode(String promotionCode)

Set the promotionCode property: A publisher provided promotion code as provisioned in Data Market for the said product/artifact.

ResourceModelWithAllowedPropertySetPlan withPublisher(String publisher)

Set the publisher property: The publisher of the 3rd Party Artifact that is being bought.

ResourceModelWithAllowedPropertySetPlan withVersion(String version)

Set the version property: The version of the desired product/artifact.

Methods inherited from Plan

Methods inherited from java.lang.Object

Constructor Details

ResourceModelWithAllowedPropertySetPlan

public ResourceModelWithAllowedPropertySetPlan()

Creates an instance of ResourceModelWithAllowedPropertySetPlan class.

Method Details

fromJson

public static ResourceModelWithAllowedPropertySetPlan fromJson(JsonReader jsonReader)

Reads an instance of ResourceModelWithAllowedPropertySetPlan from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceModelWithAllowedPropertySetPlan 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ResourceModelWithAllowedPropertySetPlan.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ResourceModelWithAllowedPropertySetPlan.validate()

withName

public ResourceModelWithAllowedPropertySetPlan withName(String name)

Set the name property: A user defined name of the 3rd Party Artifact that is being procured.

Overrides:

ResourceModelWithAllowedPropertySetPlan.withName(String name)

Parameters:

name

withProduct

public ResourceModelWithAllowedPropertySetPlan withProduct(String product)

Set the product property: The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.

Overrides:

ResourceModelWithAllowedPropertySetPlan.withProduct(String product)

Parameters:

product

withPromotionCode

public ResourceModelWithAllowedPropertySetPlan withPromotionCode(String promotionCode)

Set the promotionCode property: A publisher provided promotion code as provisioned in Data Market for the said product/artifact.

Overrides:

ResourceModelWithAllowedPropertySetPlan.withPromotionCode(String promotionCode)

Parameters:

promotionCode

withPublisher

public ResourceModelWithAllowedPropertySetPlan withPublisher(String publisher)

Set the publisher property: The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic.

Overrides:

ResourceModelWithAllowedPropertySetPlan.withPublisher(String publisher)

Parameters:

publisher

withVersion

public ResourceModelWithAllowedPropertySetPlan withVersion(String version)

Set the version property: The version of the desired product/artifact.

Overrides:

ResourceModelWithAllowedPropertySetPlan.withVersion(String version)

Parameters:

version

Applies to