Class PutAccountSettingRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.ecs.model.EcsRequest
-
- software.amazon.awssdk.services.ecs.model.PutAccountSettingRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutAccountSettingRequest.Builder,PutAccountSettingRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutAccountSettingRequest extends EcsRequest implements ToCopyableBuilder<PutAccountSettingRequest.Builder,PutAccountSettingRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutAccountSettingRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutAccountSettingRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()SettingNamename()The Amazon ECS resource name for which to modify the account setting.StringnameAsString()The Amazon ECS resource name for which to modify the account setting.StringprincipalArn()The ARN of the principal, which can be a user, role, or the root user.List<SdkField<?>>sdkFields()static Class<? extends PutAccountSettingRequest.Builder>serializableBuilderClass()PutAccountSettingRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The account setting value for the specified principal ARN.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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 SettingName name()
The Amazon ECS resource name for which to modify the account setting. If you specify
serviceLongArnFormat, the ARN for your Amazon ECS services is affected. If you specifytaskLongArnFormat, the ARN and resource ID for your Amazon ECS tasks is affected. If you specifycontainerInstanceLongArnFormat, the ARN and resource ID for your Amazon ECS container instances is affected. If you specifyawsvpcTrunking, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specifycontainerInsights, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specifyfargateFIPSMode, Fargate FIPS 140 compliance is affected. If you specifytagResourceAuthorization, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specifyfargateTaskRetirementWaitPeriod, the wait time to retire a Fargate task is affected.If the service returns an enum value that is not available in the current SDK version,
namewill returnSettingName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The Amazon ECS resource name for which to modify the account setting. If you specify
serviceLongArnFormat, the ARN for your Amazon ECS services is affected. If you specifytaskLongArnFormat, the ARN and resource ID for your Amazon ECS tasks is affected. If you specifycontainerInstanceLongArnFormat, the ARN and resource ID for your Amazon ECS container instances is affected. If you specifyawsvpcTrunking, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specifycontainerInsights, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specifyfargateFIPSMode, Fargate FIPS 140 compliance is affected. If you specifytagResourceAuthorization, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specifyfargateTaskRetirementWaitPeriod, the wait time to retire a Fargate task is affected. - See Also:
SettingName
-
nameAsString
public final String nameAsString()
The Amazon ECS resource name for which to modify the account setting. If you specify
serviceLongArnFormat, the ARN for your Amazon ECS services is affected. If you specifytaskLongArnFormat, the ARN and resource ID for your Amazon ECS tasks is affected. If you specifycontainerInstanceLongArnFormat, the ARN and resource ID for your Amazon ECS container instances is affected. If you specifyawsvpcTrunking, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specifycontainerInsights, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specifyfargateFIPSMode, Fargate FIPS 140 compliance is affected. If you specifytagResourceAuthorization, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specifyfargateTaskRetirementWaitPeriod, the wait time to retire a Fargate task is affected.If the service returns an enum value that is not available in the current SDK version,
namewill returnSettingName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The Amazon ECS resource name for which to modify the account setting. If you specify
serviceLongArnFormat, the ARN for your Amazon ECS services is affected. If you specifytaskLongArnFormat, the ARN and resource ID for your Amazon ECS tasks is affected. If you specifycontainerInstanceLongArnFormat, the ARN and resource ID for your Amazon ECS container instances is affected. If you specifyawsvpcTrunking, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If you specifycontainerInsights, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If you specifyfargateFIPSMode, Fargate FIPS 140 compliance is affected. If you specifytagResourceAuthorization, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. If you specifyfargateTaskRetirementWaitPeriod, the wait time to retire a Fargate task is affected. - See Also:
SettingName
-
value
public final String value()
The account setting value for the specified principal ARN. Accepted values are
enabled,disabled,on, andoff.When you specify
fargateTaskRetirementWaitPeriodfor thename, the following are the valid values:-
0- Amazon Web Services sends the notification, and immediately retires the affected tasks. -
7- Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks. -
14- Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.
- Returns:
- The account setting value for the specified principal ARN. Accepted values are
enabled,disabled,on, andoff.When you specify
fargateTaskRetirementWaitPeriodfor thename, the following are the valid values:-
0- Amazon Web Services sends the notification, and immediately retires the affected tasks. -
7- Amazon Web Services sends the notification, and waits 7 calendar days to retire the tasks. -
14- Amazon Web Services sends the notification, and waits 14 calendar days to retire the tasks.
-
-
-
principalArn
public final String principalArn()
The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it modifies the account setting for all users, roles, and the root user of the account unless a user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.
You must use the root user when you set the Fargate wait time (
fargateTaskRetirementWaitPeriod).Federated users assume the account setting of the root user and can't have explicit account settings set for them.
- Returns:
- The ARN of the principal, which can be a user, role, or the root user. If you specify the root user, it
modifies the account setting for all users, roles, and the root user of the account unless a user or role
explicitly overrides these settings. If this field is omitted, the setting is changed only for the
authenticated user.
You must use the root user when you set the Fargate wait time (
fargateTaskRetirementWaitPeriod).Federated users assume the account setting of the root user and can't have explicit account settings set for them.
-
toBuilder
public PutAccountSettingRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutAccountSettingRequest.Builder,PutAccountSettingRequest>- Specified by:
toBuilderin classEcsRequest
-
builder
public static PutAccountSettingRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutAccountSettingRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-