@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Setting extends Object implements Serializable, Cloneable, StructuredPojo
The current account setting for a resource.
| Constructor and Description |
|---|
Setting() |
| Modifier and Type | Method and Description |
|---|---|
Setting |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The Amazon ECS resource name.
|
String |
getPrincipalArn()
The ARN of the principal, which can be an IAM user, IAM role, or the root user.
|
String |
getValue()
Whether the account setting is enabled or disabled for the specified resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setName(String name)
The Amazon ECS resource name.
|
void |
setPrincipalArn(String principalArn)
The ARN of the principal, which can be an IAM user, IAM role, or the root user.
|
void |
setValue(String value)
Whether the account setting is enabled or disabled for the specified resource.
|
String |
toString()
Returns a string representation of this object.
|
Setting |
withName(SettingName name)
The Amazon ECS resource name.
|
Setting |
withName(String name)
The Amazon ECS resource name.
|
Setting |
withPrincipalArn(String principalArn)
The ARN of the principal, which can be an IAM user, IAM role, or the root user.
|
Setting |
withValue(String value)
Whether the account setting is enabled or disabled for the specified resource.
|
public void setName(String name)
The Amazon ECS resource name.
name - The Amazon ECS resource name.SettingNamepublic String getName()
The Amazon ECS resource name.
SettingNamepublic Setting withName(String name)
The Amazon ECS resource name.
name - The Amazon ECS resource name.SettingNamepublic Setting withName(SettingName name)
The Amazon ECS resource name.
name - The Amazon ECS resource name.SettingNamepublic void setValue(String value)
Whether the account setting is enabled or disabled for the specified resource.
value - Whether the account setting is enabled or disabled for the specified resource.public String getValue()
Whether the account setting is enabled or disabled for the specified resource.
public Setting withValue(String value)
Whether the account setting is enabled or disabled for the specified resource.
value - Whether the account setting is enabled or disabled for the specified resource.public void setPrincipalArn(String principalArn)
The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user is assumed.
principalArn - The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted,
the authenticated user is assumed.public String getPrincipalArn()
The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user is assumed.
public Setting withPrincipalArn(String principalArn)
The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user is assumed.
principalArn - The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted,
the authenticated user is assumed.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.