Class Setting
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.Setting
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Setting.Builder,Setting>
@Generated("software.amazon.awssdk:codegen") public final class Setting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Setting.Builder,Setting>
The current account setting for a resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Setting.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Setting.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
SettingName
name()
The Amazon ECS resource name.String
nameAsString()
The Amazon ECS resource name.String
principalArn()
The ARN of the principal.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends Setting.Builder>
serializableBuilderClass()
Setting.Builder
toBuilder()
String
toString()
Returns a string representation of this object.SettingType
type()
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.String
typeAsString()
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.String
value()
Determines whether the account setting is on or off for the specified 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 SettingName name()
The Amazon ECS resource name.
If the service returns an enum value that is not available in the current SDK version,
name
will returnSettingName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnameAsString()
.- Returns:
- The Amazon ECS resource name.
- See Also:
SettingName
-
nameAsString
public final String nameAsString()
The Amazon ECS resource name.
If the service returns an enum value that is not available in the current SDK version,
name
will returnSettingName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnameAsString()
.- Returns:
- The Amazon ECS resource name.
- See Also:
SettingName
-
value
public final String value()
Determines whether the account setting is on or off for the specified resource.
- Returns:
- Determines whether the account setting is on or off for the specified resource.
-
principalArn
public final String principalArn()
The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the authenticated user is assumed.
- Returns:
- The ARN of the principal. It can be a user, role, or the root user. If this field is omitted, the authenticated user is assumed.
-
type
public final SettingType type()
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, theguardDutyActivate
account setting is the only one Amazon Web Services manages.If the service returns an enum value that is not available in the current SDK version,
type
will returnSettingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, theguardDutyActivate
account setting is the only one Amazon Web Services manages. - See Also:
SettingType
-
typeAsString
public final String typeAsString()
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, theguardDutyActivate
account setting is the only one Amazon Web Services manages.If the service returns an enum value that is not available in the current SDK version,
type
will returnSettingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the customer's behalf. Currently, theguardDutyActivate
account setting is the only one Amazon Web Services manages. - See Also:
SettingType
-
toBuilder
public Setting.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Setting.Builder,Setting>
-
builder
public static Setting.Builder builder()
-
serializableBuilderClass
public static Class<? extends Setting.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
-
-