@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyTargetSummary extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a root, OU, or account that a policy is attached to.
Constructor and Description |
---|
PolicyTargetSummary() |
Modifier and Type | Method and Description |
---|---|
PolicyTargetSummary |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the policy target.
|
String |
getName()
The friendly name of the policy target.
|
String |
getTargetId()
The unique identifier (ID) of the policy target.
|
String |
getType()
The type of the policy target.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the policy target.
|
void |
setName(String name)
The friendly name of the policy target.
|
void |
setTargetId(String targetId)
The unique identifier (ID) of the policy target.
|
void |
setType(String type)
The type of the policy target.
|
void |
setType(TargetType type)
The type of the policy target.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PolicyTargetSummary |
withArn(String arn)
The Amazon Resource Name (ARN) of the policy target.
|
PolicyTargetSummary |
withName(String name)
The friendly name of the policy target.
|
PolicyTargetSummary |
withTargetId(String targetId)
The unique identifier (ID) of the policy target.
|
PolicyTargetSummary |
withType(String type)
The type of the policy target.
|
PolicyTargetSummary |
withType(TargetType type)
The type of the policy target.
|
public void setTargetId(String targetId)
The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
targetId
- The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public String getTargetId()
The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public PolicyTargetSummary withTargetId(String targetId)
The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
targetId
- The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
Root: a string that begins with "r-" followed by from 4 to 32 lower-case letters or digits.
Account: a string that consists of exactly 12 digits.
Organizational unit (OU): a string that begins with "ou-" followed by from 4 to 32 lower-case letters or digits (the ID of the root that the OU is in) followed by a second "-" dash and from 8 to 32 additional lower-case letters or digits.
public void setArn(String arn)
The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public String getArn()
The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public PolicyTargetSummary withArn(String arn)
The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
arn
- The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Organizations User Guide.
public void setName(String name)
The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public String getName()
The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public PolicyTargetSummary withName(String name)
The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public void setType(String type)
The type of the policy target.
type
- The type of the policy target.TargetType
public String getType()
The type of the policy target.
TargetType
public PolicyTargetSummary withType(String type)
The type of the policy target.
type
- The type of the policy target.TargetType
public void setType(TargetType type)
The type of the policy target.
type
- The type of the policy target.TargetType
public PolicyTargetSummary withType(TargetType type)
The type of the policy target.
type
- The type of the policy target.TargetType
public String toString()
toString
in class Object
Object.toString()
public PolicyTargetSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.