ProductDetails Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. ProductDetails
- com.
Implements
public final class ProductDetails
implements JsonSerializable<ProductDetails>
Details of the product that is transferred.
Constructor Summary
| Constructor | Description |
|---|---|
| ProductDetails() |
Creates an instance of Product |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Product |
fromJson(JsonReader jsonReader)
Reads an instance of Product |
| String |
productId()
Get the product |
|
Product |
productType()
Get the product |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Product |
withProductId(String productId)
Set the product |
|
Product |
withProductType(ProductType productType)
Set the product |
Methods inherited from java.lang.Object
Constructor Details
ProductDetails
public ProductDetails()
Creates an instance of ProductDetails class.
Method Details
fromJson
public static ProductDetails fromJson(JsonReader jsonReader)
Reads an instance of ProductDetails from the JsonReader.
Parameters:
Returns:
Throws:
productId
public String productId()
Get the productId property: The ID of the product that is transferred.
Returns:
productType
public ProductType productType()
Get the productType property: Type of the product that is transferred.
Returns:
toJson
validate
public void validate()
Validates the instance.
withProductId
public ProductDetails withProductId(String productId)
Set the productId property: The ID of the product that is transferred.
Parameters:
Returns:
withProductType
public ProductDetails withProductType(ProductType productType)
Set the productType property: Type of the product that is transferred.
Parameters:
Returns: