@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class ProductSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Provides details about product rewards and the usage amount.
Note: Objects should always be created or deserialized using the ProductSummary.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ProductSummary.Builder
, which maintain a
set of all explicitly set fields called ProductSummary.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ProductSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ProductSummary(String productNumber,
String productName,
Double usageAmount,
Float earnedRewards,
Boolean isEligibleToEarnRewards)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ProductSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Float |
getEarnedRewards()
The earned rewards for the product.
|
Boolean |
getIsEligibleToEarnRewards()
The boolean parameter to indicate if the product is eligible to earn rewards.
|
String |
getProductName()
The rate card product name.
|
String |
getProductNumber()
The rate card product number.
|
Double |
getUsageAmount()
The rate card product usage amount.
|
int |
hashCode() |
ProductSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"productNumber","productName","usageAmount","earnedRewards","isEligibleToEarnRewards"}) public ProductSummary(String productNumber, String productName, Double usageAmount, Float earnedRewards, Boolean isEligibleToEarnRewards)
public static ProductSummary.Builder builder()
Create a new builder.
public ProductSummary.Builder toBuilder()
public String getProductNumber()
The rate card product number.
public String getProductName()
The rate card product name.
public Double getUsageAmount()
The rate card product usage amount.
public Float getEarnedRewards()
The earned rewards for the product.
public Boolean getIsEligibleToEarnRewards()
The boolean parameter to indicate if the product is eligible to earn rewards.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.