Class ShareAttributes
java.lang.Object
software.amazon.awssdk.services.batch.model.ShareAttributes
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ShareAttributes.Builder,ShareAttributes>
@Generated("software.amazon.awssdk:codegen")
public final class ShareAttributes
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ShareAttributes.Builder,ShareAttributes>
Specifies the weights for the share identifiers for the fair-share policy. Share identifiers that aren't included
have a default weight of 1.0.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ShareAttributes.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends ShareAttributes.Builder>final StringA share identifier or share identifier prefix.final StringtoString()Returns a string representation of this object.final FloatThe weight factor for the share identifier.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
weightFactor
The weight factor for the share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
- Returns:
- The weight factor for the share identifier. The default value is 1.0. A lower value has a higher priority
for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8)
get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1.
The smallest supported value is 0.0001, and the largest supported value is 999.9999.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ShareAttributes.Builder,ShareAttributes>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo