Class ServiceLimit
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.ServiceLimit
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceLimit.Builder,ServiceLimit>
@Generated("software.amazon.awssdk:codegen") public final class ServiceLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceLimit.Builder,ServiceLimit>
Specifies a current quota for an Amazon Macie account.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceLimit.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceLimit.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisServiceLimited()Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServiceLimit.Builder>serializableBuilderClass()ServiceLimit.BuildertoBuilder()StringtoString()Returns a string representation of this object.Unitunit()The unit of measurement for the value specified by the value field.StringunitAsString()The unit of measurement for the value specified by the value field.Longvalue()The value for the metric specified by the UsageByAccount.type field in the response.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
isServiceLimited
public final Boolean isServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
- Returns:
- Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
-
unit
public final Unit unit()
The unit of measurement for the value specified by the value field.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of measurement for the value specified by the value field.
- See Also:
Unit
-
unitAsString
public final String unitAsString()
The unit of measurement for the value specified by the value field.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of measurement for the value specified by the value field.
- See Also:
Unit
-
value
public final Long value()
The value for the metric specified by the UsageByAccount.type field in the response.
- Returns:
- The value for the metric specified by the UsageByAccount.type field in the response.
-
toBuilder
public ServiceLimit.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceLimit.Builder,ServiceLimit>
-
builder
public static ServiceLimit.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceLimit.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-