Class Entitlement
- java.lang.Object
-
- software.amazon.awssdk.services.licensemanager.model.Entitlement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Entitlement.Builder,Entitlement>
@Generated("software.amazon.awssdk:codegen") public final class Entitlement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Entitlement.Builder,Entitlement>
Describes a resource entitled for use with a license.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEntitlement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowCheckIn()Indicates whether check-ins are allowed.static Entitlement.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongmaxCount()Maximum entitlement count.Stringname()Entitlement name.Booleanoverage()Indicates whether overages are allowed.List<SdkField<?>>sdkFields()static Class<? extends Entitlement.Builder>serializableBuilderClass()Entitlement.BuildertoBuilder()StringtoString()Returns a string representation of this object.EntitlementUnitunit()Entitlement unit.StringunitAsString()Entitlement unit.Stringvalue()Entitlement resource.-
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
-
name
public final String name()
Entitlement name.
- Returns:
- Entitlement name.
-
value
public final String value()
Entitlement resource. Use only if the unit is None.
- Returns:
- Entitlement resource. Use only if the unit is None.
-
maxCount
public final Long maxCount()
Maximum entitlement count. Use if the unit is not None.
- Returns:
- Maximum entitlement count. Use if the unit is not None.
-
overage
public final Boolean overage()
Indicates whether overages are allowed.
- Returns:
- Indicates whether overages are allowed.
-
unit
public final EntitlementUnit unit()
Entitlement unit.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnEntitlementUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Entitlement unit.
- See Also:
EntitlementUnit
-
unitAsString
public final String unitAsString()
Entitlement unit.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnEntitlementUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Entitlement unit.
- See Also:
EntitlementUnit
-
allowCheckIn
public final Boolean allowCheckIn()
Indicates whether check-ins are allowed.
- Returns:
- Indicates whether check-ins are allowed.
-
toBuilder
public Entitlement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Entitlement.Builder,Entitlement>
-
builder
public static Entitlement.Builder builder()
-
serializableBuilderClass
public static Class<? extends Entitlement.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.
-
-