ResourceModelWithAllowedPropertySetPlan Class
- java.
lang. Object - com.
azure. resourcemanager. desktopvirtualization. models. Plan - com.
azure. resourcemanager. desktopvirtualization. models. ResourceModelWithAllowedPropertySetPlan
- com.
- com.
public final class ResourceModelWithAllowedPropertySetPlan
extends Plan
The ResourceModelWithAllowedPropertySetPlan model.
Constructor Summary
| Constructor | Description |
|---|---|
| ResourceModelWithAllowedPropertySetPlan() |
Creates an instance of Resource |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Resource |
withName(String name)
Set the name property: A user defined name of the 3rd Party Artifact that is being procured. |
|
Resource |
withProduct(String product)
Set the product property: The 3rd Party artifact that is being procured. |
|
Resource |
withPromotionCode(String promotionCode)
Set the promotion |
|
Resource |
withPublisher(String publisher)
Set the publisher property: The publisher of the 3rd Party Artifact that is being bought. |
|
Resource |
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:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceModelWithAllowedPropertySetPlan.toJson(JsonWriter jsonWriter)Parameters:
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:
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:
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:
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:
withVersion
public ResourceModelWithAllowedPropertySetPlan withVersion(String version)
Set the version property: The version of the desired product/artifact.
Overrides:
ResourceModelWithAllowedPropertySetPlan.withVersion(String version)Parameters: