Class MarketplaceResource
java.lang.Object
com.azure.resourcemanager.appplatform.models.MarketplaceResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MarketplaceResource>
public final class MarketplaceResource
extends Object
implements com.azure.json.JsonSerializable<MarketplaceResource>
Purchasing 3rd Party product for one Azure Spring Apps instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MarketplaceResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MarketplaceResource from the JsonReader.plan()Get the plan property: The plan id of the 3rd Party Artifact that is being procured.product()Get the product property: The 3rd Party artifact that is being procured.Get the publisher property: The publisher id of the 3rd Party Artifact that is being bought.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the plan property: The plan id of the 3rd Party Artifact that is being procured.withProduct(String product) Set the product property: The 3rd Party artifact that is being procured.withPublisher(String publisher) Set the publisher property: The publisher id of the 3rd Party Artifact that is being bought.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
-
MarketplaceResource
public MarketplaceResource()Creates an instance of MarketplaceResource class.
-
-
Method Details
-
plan
Get the plan property: The plan id of the 3rd Party Artifact that is being procured.- Returns:
- the plan value.
-
withPlan
Set the plan property: The plan id of the 3rd Party Artifact that is being procured.- Parameters:
plan- the plan value to set.- Returns:
- the MarketplaceResource object itself.
-
publisher
Get the publisher property: The publisher id of the 3rd Party Artifact that is being bought.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The publisher id of the 3rd Party Artifact that is being bought.- Parameters:
publisher- the publisher value to set.- Returns:
- the MarketplaceResource object itself.
-
product
Get the product property: The 3rd Party artifact that is being procured.- Returns:
- the product value.
-
withProduct
Set the product property: The 3rd Party artifact that is being procured.- Parameters:
product- the product value to set.- Returns:
- the MarketplaceResource 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<MarketplaceResource>- Throws:
IOException
-
fromJson
Reads an instance of MarketplaceResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MarketplaceResource 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 MarketplaceResource.
-