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 Summary
Nested Classes Modifier and Type Class Description static classMonthlyRewardSummary.Builder
-
Constructor Summary
Constructors 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 Summary
All 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
-
builder
public static MonthlyRewardSummary.Builder builder()
Create a new builder.
-
toBuilder
public MonthlyRewardSummary.Builder toBuilder()
-
getAvailableRewards
public Float getAvailableRewards()
The number of rewards available for a specific usage period.- Returns:
- the value
-
getRedeemedRewards
public Float getRedeemedRewards()
The number of rewards redeemed for a specific month.- Returns:
- the value
-
getEarnedRewards
public Float getEarnedRewards()
The number of rewards earned for the specific usage period.- Returns:
- the value
-
getIsManual
public Boolean getIsManual()
The boolean parameter to indicate whether or not the available rewards are manually posted.- Returns:
- the value
-
getTimeRewardsExpired
public Date getTimeRewardsExpired()
The date and time when rewards expire.- Returns:
- the value
-
getTimeRewardsEarned
public Date getTimeRewardsEarned()
The date and time when rewards accrue.- Returns:
- the value
-
getTimeUsageStarted
public Date getTimeUsageStarted()
The start date and time for the usage period.- Returns:
- the value
-
getTimeUsageEnded
public Date getTimeUsageEnded()
The end date and time for the usage period.- Returns:
- the value
-
getUsageAmount
public Double getUsageAmount()
The usage amount for the usage period.- Returns:
- the value
-
getEligibleUsageAmount
public Double getEligibleUsageAmount()
The eligible usage amount for the usage period.- Returns:
- the value
-
getIneligibleUsageAmount
public Double getIneligibleUsageAmount()
The ineligible usage amount for the usage period.- Returns:
- the value
-
getUsagePeriodKey
public String getUsagePeriodKey()
The usage period ID.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public 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
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-