Package com.oracle.bmc.usage.model
Class UsageLimitSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.usage.model.UsageLimitSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190111") public final class UsageLimitSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelEncapsulates a collection of Hard and Soft Limits for a resource within a subscription.
Note: Objects should always be created or deserialized using theUsageLimitSummary.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 theUsageLimitSummary.Builder, which maintain a set of all explicitly set fields calledUsageLimitSummary.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 classUsageLimitSummary.ActionThe action when usage limit is hitstatic classUsageLimitSummary.Builderstatic classUsageLimitSummary.LifecycleStateThe usage limit lifecycle state.static classUsageLimitSummary.LimitTypeThe limit type of the usage limitstatic classUsageLimitSummary.ValueTypeThe value type of the usage limit
-
Constructor Summary
Constructors Constructor Description UsageLimitSummary(Date timeCreated, String entitlementId, String id, Date timeModified, String resourceName, String serviceName, String limit, String createdBy, String modifiedBy, UsageLimitSummary.Action action, BigDecimal alertLevel, UsageLimitSummary.LimitType limitType, UsageLimitSummary.ValueType valueType, UsageLimitSummary.LifecycleState lifecycleState, String maxHardLimit, String skuPartId)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageLimitSummary.Builderbuilder()Create a new builder.booleanequals(Object o)UsageLimitSummary.ActiongetAction()The action when usage limit is hitBigDecimalgetAlertLevel()The alert level of the usage limitStringgetCreatedBy()The user who created the limitStringgetEntitlementId()Entitlement ID of the usage limitStringgetId()The usage limit IDUsageLimitSummary.LifecycleStategetLifecycleState()The usage limit lifecycle state.StringgetLimit()The limit valueUsageLimitSummary.LimitTypegetLimitType()The limit type of the usage limitStringgetMaxHardLimit()The maximum hard limit set for the usage limitStringgetModifiedBy()The user who modified the limitStringgetResourceName()The resource for which the limit is definedStringgetServiceName()The service for which the limit is definedStringgetSkuPartId()The SKU for which the usage limit is setDategetTimeCreated()Time when the usage limit was createdDategetTimeModified()Time when the usage limit was modifiedUsageLimitSummary.ValueTypegetValueType()The value type of the usage limitinthashCode()UsageLimitSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
UsageLimitSummary
@Deprecated @ConstructorProperties({"timeCreated","entitlementId","id","timeModified","resourceName","serviceName","limit","createdBy","modifiedBy","action","alertLevel","limitType","valueType","lifecycleState","maxHardLimit","skuPartId"}) public UsageLimitSummary(Date timeCreated, String entitlementId, String id, Date timeModified, String resourceName, String serviceName, String limit, String createdBy, String modifiedBy, UsageLimitSummary.Action action, BigDecimal alertLevel, UsageLimitSummary.LimitType limitType, UsageLimitSummary.ValueType valueType, UsageLimitSummary.LifecycleState lifecycleState, String maxHardLimit, String skuPartId)
Deprecated.
-
-
Method Detail
-
builder
public static UsageLimitSummary.Builder builder()
Create a new builder.
-
toBuilder
public UsageLimitSummary.Builder toBuilder()
-
getTimeCreated
public Date getTimeCreated()
Time when the usage limit was created- Returns:
- the value
-
getEntitlementId
public String getEntitlementId()
Entitlement ID of the usage limit- Returns:
- the value
-
getId
public String getId()
The usage limit ID- Returns:
- the value
-
getTimeModified
public Date getTimeModified()
Time when the usage limit was modified- Returns:
- the value
-
getResourceName
public String getResourceName()
The resource for which the limit is defined- Returns:
- the value
-
getServiceName
public String getServiceName()
The service for which the limit is defined- Returns:
- the value
-
getLimit
public String getLimit()
The limit value- Returns:
- the value
-
getCreatedBy
public String getCreatedBy()
The user who created the limit- Returns:
- the value
-
getModifiedBy
public String getModifiedBy()
The user who modified the limit- Returns:
- the value
-
getAction
public UsageLimitSummary.Action getAction()
The action when usage limit is hit- Returns:
- the value
-
getAlertLevel
public BigDecimal getAlertLevel()
The alert level of the usage limit- Returns:
- the value
-
getLimitType
public UsageLimitSummary.LimitType getLimitType()
The limit type of the usage limit- Returns:
- the value
-
getValueType
public UsageLimitSummary.ValueType getValueType()
The value type of the usage limit- Returns:
- the value
-
getLifecycleState
public UsageLimitSummary.LifecycleState getLifecycleState()
The usage limit lifecycle state.- Returns:
- the value
-
getMaxHardLimit
public String getMaxHardLimit()
The maximum hard limit set for the usage limit- Returns:
- the value
-
getSkuPartId
public String getSkuPartId()
The SKU for which the usage limit is set- 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
-
-