@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class RewardDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The overall monthly reward summary.
Note: Objects should always be created or deserialized using the RewardDetails.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 RewardDetails.Builder
, which maintain a
set of all explicitly set fields called RewardDetails.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 |
RewardDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RewardDetails(String tenancyId,
String subscriptionId,
String currency,
Double rewardsRate,
Float totalRewardsAvailable,
String redemptionCode)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RewardDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCurrency()
The currency unit for the reward amount.
|
String |
getRedemptionCode()
The redemption code used in the Billing Center during the reward redemption process.
|
Double |
getRewardsRate()
The current Rewards percentage in decimal format.
|
String |
getSubscriptionId()
The entitlement ID from MQS, which is the same as the subcription ID.
|
String |
getTenancyId()
The OCID of the target tenancy.
|
Float |
getTotalRewardsAvailable()
The total number of available rewards for a given subscription ID.
|
int |
hashCode() |
RewardDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"tenancyId","subscriptionId","currency","rewardsRate","totalRewardsAvailable","redemptionCode"}) public RewardDetails(String tenancyId, String subscriptionId, String currency, Double rewardsRate, Float totalRewardsAvailable, String redemptionCode)
public static RewardDetails.Builder builder()
Create a new builder.
public RewardDetails.Builder toBuilder()
public String getTenancyId()
The OCID of the target tenancy.
public String getSubscriptionId()
The entitlement ID from MQS, which is the same as the subcription ID.
public String getCurrency()
The currency unit for the reward amount.
public Double getRewardsRate()
The current Rewards percentage in decimal format.
public Float getTotalRewardsAvailable()
The total number of available rewards for a given subscription ID.
public String getRedemptionCode()
The redemption code used in the Billing Center during the reward redemption process.
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.