Class ResourceSharingConfig
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ResourceSharingConfig
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ResourceSharingConfig.Builder,ResourceSharingConfig>
@Generated("software.amazon.awssdk:codegen") public final class ResourceSharingConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceSharingConfig.Builder,ResourceSharingConfig>
Resource sharing configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourceSharingConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
borrowLimit()
The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.static ResourceSharingConfig.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ResourceSharingConfig.Builder>
serializableBuilderClass()
ResourceSharingStrategy
strategy()
The strategy of how idle compute is shared within the cluster.String
strategyAsString()
The strategy of how idle compute is shared within the cluster.ResourceSharingConfig.Builder
toBuilder()
String
toString()
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 ResourceSharingStrategy strategy()
The strategy of how idle compute is shared within the cluster. The following are the options of strategies.
-
DontLend
: entities do not lend idle compute. -
Lend
: entities can lend idle compute to entities that can borrow. -
LendandBorrow
: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow
.If the service returns an enum value that is not available in the current SDK version,
strategy
will returnResourceSharingStrategy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstrategyAsString()
.- Returns:
- The strategy of how idle compute is shared within the cluster. The following are the options of
strategies.
-
DontLend
: entities do not lend idle compute. -
Lend
: entities can lend idle compute to entities that can borrow. -
LendandBorrow
: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow
. -
- See Also:
ResourceSharingStrategy
-
-
strategyAsString
public final String strategyAsString()
The strategy of how idle compute is shared within the cluster. The following are the options of strategies.
-
DontLend
: entities do not lend idle compute. -
Lend
: entities can lend idle compute to entities that can borrow. -
LendandBorrow
: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow
.If the service returns an enum value that is not available in the current SDK version,
strategy
will returnResourceSharingStrategy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstrategyAsString()
.- Returns:
- The strategy of how idle compute is shared within the cluster. The following are the options of
strategies.
-
DontLend
: entities do not lend idle compute. -
Lend
: entities can lend idle compute to entities that can borrow. -
LendandBorrow
: entities can lend idle compute and borrow idle compute from other entities.
Default is
LendandBorrow
. -
- See Also:
ResourceSharingStrategy
-
-
borrowLimit
public final Integer borrowLimit()
The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that the team is allowed to borrow.
Default is
50
.- Returns:
- The limit on how much idle compute can be borrowed.The values can be 1 - 500 percent of idle compute that
the team is allowed to borrow.
Default is
50
.
-
toBuilder
public ResourceSharingConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResourceSharingConfig.Builder,ResourceSharingConfig>
-
builder
public static ResourceSharingConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceSharingConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
-
-