@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 the UsageLimitSummary.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 UsageLimitSummary.Builder
, which maintain a
set of all explicitly set fields called UsageLimitSummary.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
UsageLimitSummary.Action
The action when usage limit is hit
|
static class |
UsageLimitSummary.Builder |
static class |
UsageLimitSummary.LifecycleState
The usage limit lifecycle state.
|
static class |
UsageLimitSummary.LimitType
The limit type of the usage limit
|
static class |
UsageLimitSummary.ValueType
The value type of the usage limit
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
static UsageLimitSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
UsageLimitSummary.Action |
getAction()
The action when usage limit is hit
|
BigDecimal |
getAlertLevel()
The alert level of the usage limit
|
String |
getCreatedBy()
The user who created the limit
|
String |
getEntitlementId()
Entitlement ID of the usage limit
|
String |
getId()
The usage limit ID
|
UsageLimitSummary.LifecycleState |
getLifecycleState()
The usage limit lifecycle state.
|
String |
getLimit()
The limit value
|
UsageLimitSummary.LimitType |
getLimitType()
The limit type of the usage limit
|
String |
getMaxHardLimit()
The maximum hard limit set for the usage limit
|
String |
getModifiedBy()
The user who modified the limit
|
String |
getResourceName()
The resource for which the limit is defined
|
String |
getServiceName()
The service for which the limit is defined
|
String |
getSkuPartId()
The SKU for which the usage limit is set
|
Date |
getTimeCreated()
Time when the usage limit was created
|
Date |
getTimeModified()
Time when the usage limit was modified
|
UsageLimitSummary.ValueType |
getValueType()
The value type of the usage limit
|
int |
hashCode() |
UsageLimitSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static UsageLimitSummary.Builder builder()
Create a new builder.
public UsageLimitSummary.Builder toBuilder()
public Date getTimeCreated()
Time when the usage limit was created
public String getEntitlementId()
Entitlement ID of the usage limit
public String getId()
The usage limit ID
public Date getTimeModified()
Time when the usage limit was modified
public String getResourceName()
The resource for which the limit is defined
public String getServiceName()
The service for which the limit is defined
public String getLimit()
The limit value
public String getCreatedBy()
The user who created the limit
public String getModifiedBy()
The user who modified the limit
public UsageLimitSummary.Action getAction()
The action when usage limit is hit
public BigDecimal getAlertLevel()
The alert level of the usage limit
public UsageLimitSummary.LimitType getLimitType()
The limit type of the usage limit
public UsageLimitSummary.ValueType getValueType()
The value type of the usage limit
public UsageLimitSummary.LifecycleState getLifecycleState()
The usage limit lifecycle state.
public String getMaxHardLimit()
The maximum hard limit set for the usage limit
public String getSkuPartId()
The SKU for which the usage limit is set
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–2024. All rights reserved.