@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.
|
String |
getValue()
Determines whether the account setting is enabled or disabled for the specified resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The Amazon ECS resource name.
|
void |
setPrincipalArn(String principalArn)
The ARN of the principal.
|
void |
setValue(String value)
Determines 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.
|
Setting |
withValue(String value)
Determines 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.SettingName
public String getName()
The Amazon ECS resource name.
SettingName
public Setting withName(String name)
The Amazon ECS resource name.
name
- The Amazon ECS resource name.SettingName
public Setting withName(SettingName name)
The Amazon ECS resource name.
name
- The Amazon ECS resource name.SettingName
public void setValue(String value)
Determines whether the account setting is enabled or disabled for the specified resource.
value
- Determines whether the account setting is enabled or disabled for the specified resource.public String getValue()
Determines whether the account setting is enabled or disabled for the specified resource.
public Setting withValue(String value)
Determines whether the account setting is enabled or disabled for the specified resource.
value
- Determines whether the account setting is enabled or disabled for the specified resource.public void setPrincipalArn(String principalArn)
The ARN of the principal. It 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. It 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. It 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. It 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. It 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.