@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicy extends Object implements Serializable, Cloneable, StructuredPojo
A policy enabling one or more entities to put logs to a log group in this account.
Constructor and Description |
---|
ResourcePolicy() |
Modifier and Type | Method and Description |
---|---|
ResourcePolicy |
clone() |
boolean |
equals(Object obj) |
Long |
getLastUpdatedTime()
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970
00:00:00 UTC.
|
String |
getPolicyDocument()
The details of the policy.
|
String |
getPolicyName()
The name of the resource policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLastUpdatedTime(Long lastUpdatedTime)
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970
00:00:00 UTC.
|
void |
setPolicyDocument(String policyDocument)
The details of the policy.
|
void |
setPolicyName(String policyName)
The name of the resource policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResourcePolicy |
withLastUpdatedTime(Long lastUpdatedTime)
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970
00:00:00 UTC.
|
ResourcePolicy |
withPolicyDocument(String policyDocument)
The details of the policy.
|
ResourcePolicy |
withPolicyName(String policyName)
The name of the resource policy.
|
public void setPolicyName(String policyName)
The name of the resource policy.
policyName
- The name of the resource policy.public String getPolicyName()
The name of the resource policy.
public ResourcePolicy withPolicyName(String policyName)
The name of the resource policy.
policyName
- The name of the resource policy.public void setPolicyDocument(String policyDocument)
The details of the policy.
policyDocument
- The details of the policy.public String getPolicyDocument()
The details of the policy.
public ResourcePolicy withPolicyDocument(String policyDocument)
The details of the policy.
policyDocument
- The details of the policy.public void setLastUpdatedTime(Long lastUpdatedTime)
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
lastUpdatedTime
- Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1,
1970 00:00:00 UTC.public Long getLastUpdatedTime()
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public ResourcePolicy withLastUpdatedTime(Long lastUpdatedTime)
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
lastUpdatedTime
- Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1,
1970 00:00:00 UTC.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.