@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 |
getType()
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
|
String |
getValue()
Determines whether the account setting is on or off 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 |
setType(String type)
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
|
void |
setValue(String value)
Determines whether the account setting is on or off 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 |
withType(SettingType type)
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
|
Setting |
withType(String type)
Indicates whether Amazon Web Services manages the account setting, or if the user manages it.
|
Setting |
withValue(String value)
Determines whether the account setting is on or off 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 on or off for the specified resource.
value
- Determines whether the account setting is on or off for the specified resource.public String getValue()
Determines whether the account setting is on or off for the specified resource.
public Setting withValue(String value)
Determines whether the account setting is on or off for the specified resource.
value
- Determines whether the account setting is on or off for the specified resource.public void setPrincipalArn(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.
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.public String getPrincipalArn()
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.
public Setting withPrincipalArn(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.
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.public void setType(String 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, the guardDutyActivate
account setting is the only one Amazon Web Services
manages.
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, the guardDutyActivate
account setting is the only one Amazon
Web Services manages.
SettingType
public String getType()
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, the guardDutyActivate
account setting is the only one Amazon Web Services
manages.
aws_managed
account settings are read-only, as Amazon Web Services manages such on the
customer's behalf. Currently, the guardDutyActivate
account setting is the only one Amazon
Web Services manages.
SettingType
public Setting withType(String 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, the guardDutyActivate
account setting is the only one Amazon Web Services
manages.
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, the guardDutyActivate
account setting is the only one Amazon
Web Services manages.
SettingType
public Setting withType(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, the guardDutyActivate
account setting is the only one Amazon Web Services
manages.
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, the guardDutyActivate
account setting is the only one Amazon
Web Services manages.
SettingType
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.