@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 account resource name.
|
String |
getPrincipalArn()
The ARN of the principal, which can be an IAM user, IAM role, or the root user.
|
String |
getValue()
The current account setting for the resource name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The account 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)
The current account setting for the resource name.
|
String |
toString()
Returns a string representation of this object.
|
Setting |
withName(SettingName name)
The account resource name.
|
Setting |
withName(String name)
The account 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)
The current account setting for the resource name.
|
public void setName(String name)
The account resource name.
name - The account resource name.SettingNamepublic String getName()
The account resource name.
SettingNamepublic Setting withName(String name)
The account resource name.
name - The account resource name.SettingNamepublic Setting withName(SettingName name)
The account resource name.
name - The account resource name.SettingNamepublic void setValue(String value)
The current account setting for the resource name. If enabled, the resource receives the new Amazon
Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource receives the old
Amazon Resource Name (ARN) and resource identifier (ID) format.
value - The current account setting for the resource name. If enabled, the resource receives the new
Amazon Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource
receives the old Amazon Resource Name (ARN) and resource identifier (ID) format.public String getValue()
The current account setting for the resource name. If enabled, the resource receives the new Amazon
Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource receives the old
Amazon Resource Name (ARN) and resource identifier (ID) format.
enabled, the resource receives the new
Amazon Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource
receives the old Amazon Resource Name (ARN) and resource identifier (ID) format.public Setting withValue(String value)
The current account setting for the resource name. If enabled, the resource receives the new Amazon
Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource receives the old
Amazon Resource Name (ARN) and resource identifier (ID) format.
value - The current account setting for the resource name. If enabled, the resource receives the new
Amazon Resource Name (ARN) and resource identifier (ID) format. If disabled, the resource
receives the old Amazon Resource Name (ARN) and resource identifier (ID) format.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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.