다음을 통해 공유


MarketplaceResource Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.MarketplaceResource

Implements

public final class MarketplaceResource
implements JsonSerializable<MarketplaceResource>

Purchasing 3rd Party product for one Azure Spring Apps instance.

Constructor Summary

Constructor Description
MarketplaceResource()

Creates an instance of MarketplaceResource class.

Method Summary

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

Reads an instance of MarketplaceResource from the JsonReader.

String plan()

Get the plan property: The plan id of the 3rd Party Artifact that is being procured.

String product()

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

String publisher()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MarketplaceResource withPlan(String plan)

Set the plan property: The plan id of the 3rd Party Artifact that is being procured.

MarketplaceResource withProduct(String product)

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

MarketplaceResource withPublisher(String publisher)

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

Methods inherited from java.lang.Object

Constructor Details

MarketplaceResource

public MarketplaceResource()

Creates an instance of MarketplaceResource class.

Method Details

fromJson

public static MarketplaceResource fromJson(JsonReader jsonReader)

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.

plan

public String plan()

Get the plan property: The plan id of the 3rd Party Artifact that is being procured.

Returns:

the plan value.

product

public String product()

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

Returns:

the product value.

publisher

public String publisher()

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

Returns:

the publisher value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPlan

public MarketplaceResource withPlan(String plan)

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.

withProduct

public MarketplaceResource withProduct(String product)

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

Parameters:

product - the product value to set.

Returns:

the MarketplaceResource object itself.

withPublisher

public MarketplaceResource withPublisher(String publisher)

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.

Applies to