Class MarketplaceOfferDetails
java.lang.Object
com.azure.resourcemanager.agrifood.models.MarketplaceOfferDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MarketplaceOfferDetails>
public final class MarketplaceOfferDetails
extends Object
implements com.azure.json.JsonSerializable<MarketplaceOfferDetails>
The MarketplaceOfferDetails model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MarketplaceOfferDetails class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MarketplaceOfferDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MarketplaceOfferDetails from the JsonReader.Get the publisherId property: The publisherId property.Get the saasOfferId property: The saasOfferId property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublisherId(String publisherId) Set the publisherId property: The publisherId property.withSaasOfferId(String saasOfferId) Set the saasOfferId property: The saasOfferId property.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
-
MarketplaceOfferDetails
public MarketplaceOfferDetails()Creates an instance of MarketplaceOfferDetails class.
-
-
Method Details
-
saasOfferId
Get the saasOfferId property: The saasOfferId property.- Returns:
- the saasOfferId value.
-
withSaasOfferId
Set the saasOfferId property: The saasOfferId property.- Parameters:
saasOfferId- the saasOfferId value to set.- Returns:
- the MarketplaceOfferDetails object itself.
-
publisherId
Get the publisherId property: The publisherId property.- Returns:
- the publisherId value.
-
withPublisherId
Set the publisherId property: The publisherId property.- Parameters:
publisherId- the publisherId value to set.- Returns:
- the MarketplaceOfferDetails 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<MarketplaceOfferDetails>- Throws:
IOException
-
fromJson
public static MarketplaceOfferDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MarketplaceOfferDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MarketplaceOfferDetails 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 MarketplaceOfferDetails.
-