@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddPolicyStatementResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
AddPolicyStatementResult() |
Modifier and Type | Method and Description |
---|---|
AddPolicyStatementResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
|
String |
getPolicy()
The resource-based policy.
|
String |
getToken()
A unique identifier for the current revision of the policy.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
|
void |
setPolicy(String policy)
The resource-based policy.
|
void |
setToken(String token)
A unique identifier for the current revision of the policy.
|
String |
toString()
Returns a string representation of this object.
|
AddPolicyStatementResult |
withArn(String arn)
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
|
AddPolicyStatementResult |
withPolicy(String policy)
The resource-based policy.
|
AddPolicyStatementResult |
withToken(String token)
A unique identifier for the current revision of the policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
arn
- The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.public String getArn()
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
public AddPolicyStatementResult withArn(String arn)
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
arn
- The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.public void setPolicy(String policy)
The resource-based policy.
policy
- The resource-based policy.public String getPolicy()
The resource-based policy.
public AddPolicyStatementResult withPolicy(String policy)
The resource-based policy.
policy
- The resource-based policy.public void setToken(String token)
A unique identifier for the current revision of the policy.
token
- A unique identifier for the current revision of the policy.public String getToken()
A unique identifier for the current revision of the policy.
public AddPolicyStatementResult withToken(String token)
A unique identifier for the current revision of the policy.
token
- A unique identifier for the current revision of the policy.public String toString()
toString
in class Object
Object.toString()
public AddPolicyStatementResult clone()