Package com.oracle.bmc.usage.model
Class MonthlyRewardSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.usage.model.MonthlyRewardSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class MonthlyRewardSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelObject describing the monthly rewards summary for the requested subscription ID.
 Note: Objects should always be created or deserialized using theMonthlyRewardSummary.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 theMonthlyRewardSummary.Builder, which maintain a set of all explicitly set fields calledMonthlyRewardSummary.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMonthlyRewardSummary.Builder
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MonthlyRewardSummary.Builderbuilder()Create a new builder.booleanequals(Object o)FloatgetAvailableRewards()The number of rewards available for a specific usage period.FloatgetEarnedRewards()The number of rewards earned for the specific usage period.DoublegetEligibleUsageAmount()The eligible usage amount for the usage period.DoublegetIneligibleUsageAmount()The ineligible usage amount for the usage period.BooleangetIsManual()The boolean parameter to indicate whether or not the available rewards are manually posted.FloatgetRedeemedRewards()The number of rewards redeemed for a specific month.DategetTimeRewardsEarned()The date and time when rewards accrue.DategetTimeRewardsExpired()The date and time when rewards expire.DategetTimeUsageEnded()The end date and time for the usage period.DategetTimeUsageStarted()The start date and time for the usage period.DoublegetUsageAmount()The usage amount for the usage period.StringgetUsagePeriodKey()The usage period ID.inthashCode()MonthlyRewardSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
MonthlyRewardSummary@Deprecated @ConstructorProperties({"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) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static MonthlyRewardSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic MonthlyRewardSummary.Builder toBuilder() 
 - 
getAvailableRewardspublic Float getAvailableRewards() The number of rewards available for a specific usage period.- Returns:
- the value
 
 - 
getRedeemedRewardspublic Float getRedeemedRewards() The number of rewards redeemed for a specific month.- Returns:
- the value
 
 - 
getEarnedRewardspublic Float getEarnedRewards() The number of rewards earned for the specific usage period.- Returns:
- the value
 
 - 
getIsManualpublic Boolean getIsManual() The boolean parameter to indicate whether or not the available rewards are manually posted.- Returns:
- the value
 
 - 
getTimeRewardsExpiredpublic Date getTimeRewardsExpired() The date and time when rewards expire.- Returns:
- the value
 
 - 
getTimeRewardsEarnedpublic Date getTimeRewardsEarned() The date and time when rewards accrue.- Returns:
- the value
 
 - 
getTimeUsageStartedpublic Date getTimeUsageStarted() The start date and time for the usage period.- Returns:
- the value
 
 - 
getTimeUsageEndedpublic Date getTimeUsageEnded() The end date and time for the usage period.- Returns:
- the value
 
 - 
getUsageAmountpublic Double getUsageAmount() The usage amount for the usage period.- Returns:
- the value
 
 - 
getEligibleUsageAmountpublic Double getEligibleUsageAmount() The eligible usage amount for the usage period.- Returns:
- the value
 
 - 
getIneligibleUsageAmountpublic Double getIneligibleUsageAmount() The ineligible usage amount for the usage period.- Returns:
- the value
 
 - 
getUsagePeriodKeypublic String getUsagePeriodKey() The usage period ID.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-