Class QuotaShareResourceSharingConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.batch.model.QuotaShareResourceSharingConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QuotaShareResourceSharingConfiguration.Builder,QuotaShareResourceSharingConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class QuotaShareResourceSharingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QuotaShareResourceSharingConfiguration.Builder,QuotaShareResourceSharingConfiguration>
Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQuotaShareResourceSharingConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerborrowLimit()The maximum percentage of additional capacity that the quota share can borrow from other shares.static QuotaShareResourceSharingConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends QuotaShareResourceSharingConfiguration.Builder>serializableBuilderClass()QuotaShareResourceSharingStrategystrategy()The resource sharing strategy for the quota share.StringstrategyAsString()The resource sharing strategy for the quota share.QuotaShareResourceSharingConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
strategy
public final QuotaShareResourceSharingStrategy strategy()
The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share.If the service returns an enum value that is not available in the current SDK version,
strategywill returnQuotaShareResourceSharingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstrategyAsString().- Returns:
- The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - See Also:
QuotaShareResourceSharingStrategy
-
strategyAsString
public final String strategyAsString()
The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share.If the service returns an enum value that is not available in the current SDK version,
strategywill returnQuotaShareResourceSharingStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstrategyAsString().- Returns:
- The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - See Also:
QuotaShareResourceSharingStrategy
-
borrowLimit
public final Integer borrowLimit()
The maximum percentage of additional capacity that the quota share can borrow from other shares.
borrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits.The
borrowLimitis applied uniformly across all capacity units. For example, if theborrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultborrowLimitis -1, which indicates unlimited borrowing.- Returns:
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
borrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits .The
borrowLimitis applied uniformly across all capacity units. For example, if theborrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultborrowLimitis -1, which indicates unlimited borrowing.
-
toBuilder
public QuotaShareResourceSharingConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<QuotaShareResourceSharingConfiguration.Builder,QuotaShareResourceSharingConfiguration>
-
builder
public static QuotaShareResourceSharingConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends QuotaShareResourceSharingConfiguration.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
-
-