@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class MonthlyRewardSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Object describing the monthly rewards summary for the requested subscription ID.
Note: Objects should always be created or deserialized using the MonthlyRewardSummary.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 MonthlyRewardSummary.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
MonthlyRewardSummary.Builder |
Constructor and Description |
---|
MonthlyRewardSummary(Float availableRewards,
Float redeemedRewards,
Float earnedRewards,
Boolean isManual,
Date timeRewardsExpired,
Date timeRewardsEarned,
Date timeUsageStarted,
Date timeUsageEnded,
Double usageAmount,
Double eligibleUsageAmount,
Double ineligibleUsageAmount,
String usagePeriodKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MonthlyRewardSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Float |
getAvailableRewards()
The number of rewards available for a specific usage period.
|
Float |
getEarnedRewards()
The number of rewards earned for the specific usage period.
|
Double |
getEligibleUsageAmount()
The eligible usage amount for the usage period.
|
Double |
getIneligibleUsageAmount()
The ineligible usage amount for the usage period.
|
Boolean |
getIsManual()
The boolean parameter to indicate whether or not the available rewards are manually posted.
|
Float |
getRedeemedRewards()
The number of rewards redeemed for a specific month.
|
Date |
getTimeRewardsEarned()
The date and time when rewards accrue.
|
Date |
getTimeRewardsExpired()
The date and time when rewards expire.
|
Date |
getTimeUsageEnded()
The end date and time for the usage period.
|
Date |
getTimeUsageStarted()
The start date and time for the usage period.
|
Double |
getUsageAmount()
The usage amount for the usage period.
|
String |
getUsagePeriodKey()
The usage period ID.
|
int |
hashCode() |
MonthlyRewardSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"availableRewards","redeemedRewards","earnedRewards","isManual","timeRewardsExpired","timeRewardsEarned","timeUsageStarted","timeUsageEnded","usageAmount","eligibleUsageAmount","ineligibleUsageAmount","usagePeriodKey"}) public MonthlyRewardSummary(Float availableRewards, Float redeemedRewards, Float earnedRewards, Boolean isManual, Date timeRewardsExpired, Date timeRewardsEarned, Date timeUsageStarted, Date timeUsageEnded, Double usageAmount, Double eligibleUsageAmount, Double ineligibleUsageAmount, String usagePeriodKey)
public static MonthlyRewardSummary.Builder builder()
Create a new builder.
public MonthlyRewardSummary.Builder toBuilder()
public Float getAvailableRewards()
The number of rewards available for a specific usage period.
public Float getRedeemedRewards()
The number of rewards redeemed for a specific month.
public Float getEarnedRewards()
The number of rewards earned for the specific usage period.
public Boolean getIsManual()
The boolean parameter to indicate whether or not the available rewards are manually posted.
public Date getTimeRewardsExpired()
The date and time when rewards expire.
public Date getTimeRewardsEarned()
The date and time when rewards accrue.
public Date getTimeUsageStarted()
The start date and time for the usage period.
public Date getTimeUsageEnded()
The end date and time for the usage period.
public Double getUsageAmount()
The usage amount for the usage period.
public Double getEligibleUsageAmount()
The eligible usage amount for the usage period.
public Double getIneligibleUsageAmount()
The ineligible usage amount for the usage period.
public String getUsagePeriodKey()
The usage period ID.
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–2023. All rights reserved.