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.ExplicitlySetBmcModel
Encapsulates 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 class
UsageLimitSummary.Action
The action when usage limit is hitstatic class
UsageLimitSummary.Builder
static class
UsageLimitSummary.LifecycleState
The usage limit lifecycle state.static class
UsageLimitSummary.LimitType
The limit type of the usage limitstatic class
UsageLimitSummary.ValueType
The 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.Builder
builder()
Create a new builder.boolean
equals(Object o)
UsageLimitSummary.Action
getAction()
The action when usage limit is hitBigDecimal
getAlertLevel()
The alert level of the usage limitString
getCreatedBy()
The user who created the limitString
getEntitlementId()
Entitlement ID of the usage limitString
getId()
The usage limit IDUsageLimitSummary.LifecycleState
getLifecycleState()
The usage limit lifecycle state.String
getLimit()
The limit valueUsageLimitSummary.LimitType
getLimitType()
The limit type of the usage limitString
getMaxHardLimit()
The maximum hard limit set for the usage limitString
getModifiedBy()
The user who modified the limitString
getResourceName()
The resource for which the limit is definedString
getServiceName()
The service for which the limit is definedString
getSkuPartId()
The SKU for which the usage limit is setDate
getTimeCreated()
Time when the usage limit was createdDate
getTimeModified()
Time when the usage limit was modifiedUsageLimitSummary.ValueType
getValueType()
The value type of the usage limitint
hashCode()
UsageLimitSummary.Builder
toBuilder()
String
toString()
String
toString(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:
toString
in 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:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-