@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicy extends Object implements Serializable, Cloneable, StructuredPojo
A resource policy grants one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy is associated with a specific Amazon Web Services account.
Constructor and Description |
---|
ResourcePolicy() |
Modifier and Type | Method and Description |
---|---|
ResourcePolicy |
clone() |
boolean |
equals(Object obj) |
Date |
getLastUpdatedTime()
When the policy was last updated, in Unix time seconds.
|
String |
getPolicyDocument()
The resource policy document, which can be up to 5kb in size.
|
String |
getPolicyName()
The name of the resource policy.
|
String |
getPolicyRevisionId()
Returns the current policy revision id for this policy name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLastUpdatedTime(Date lastUpdatedTime)
When the policy was last updated, in Unix time seconds.
|
void |
setPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
|
void |
setPolicyName(String policyName)
The name of the resource policy.
|
void |
setPolicyRevisionId(String policyRevisionId)
Returns the current policy revision id for this policy name.
|
String |
toString()
Returns a string representation of this object.
|
ResourcePolicy |
withLastUpdatedTime(Date lastUpdatedTime)
When the policy was last updated, in Unix time seconds.
|
ResourcePolicy |
withPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
|
ResourcePolicy |
withPolicyName(String policyName)
The name of the resource policy.
|
ResourcePolicy |
withPolicyRevisionId(String policyRevisionId)
Returns the current policy revision id for this policy name.
|
public void setPolicyName(String policyName)
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
policyName
- The name of the resource policy. Must be unique within a specific Amazon Web Services account.public String getPolicyName()
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
public ResourcePolicy withPolicyName(String policyName)
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
policyName
- The name of the resource policy. Must be unique within a specific Amazon Web Services account.public void setPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
policyDocument
- The resource policy document, which can be up to 5kb in size.public String getPolicyDocument()
The resource policy document, which can be up to 5kb in size.
public ResourcePolicy withPolicyDocument(String policyDocument)
The resource policy document, which can be up to 5kb in size.
policyDocument
- The resource policy document, which can be up to 5kb in size.public void setPolicyRevisionId(String policyRevisionId)
Returns the current policy revision id for this policy name.
policyRevisionId
- Returns the current policy revision id for this policy name.public String getPolicyRevisionId()
Returns the current policy revision id for this policy name.
public ResourcePolicy withPolicyRevisionId(String policyRevisionId)
Returns the current policy revision id for this policy name.
policyRevisionId
- Returns the current policy revision id for this policy name.public void setLastUpdatedTime(Date lastUpdatedTime)
When the policy was last updated, in Unix time seconds.
lastUpdatedTime
- When the policy was last updated, in Unix time seconds.public Date getLastUpdatedTime()
When the policy was last updated, in Unix time seconds.
public ResourcePolicy withLastUpdatedTime(Date lastUpdatedTime)
When the policy was last updated, in Unix time seconds.
lastUpdatedTime
- When the policy was last updated, in Unix time seconds.public String toString()
toString
in class Object
Object.toString()
public ResourcePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.