public class ResourcePolicy
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getPolicyDocument()
The details of the policy.
|
java.lang.String |
getPolicyName()
The name of the resource policy.
|
int |
hashCode() |
void |
setLastUpdatedTime(java.lang.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(java.lang.String policyDocument)
The details of the policy.
|
void |
setPolicyName(java.lang.String policyName)
The name of the resource policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourcePolicy |
withLastUpdatedTime(java.lang.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(java.lang.String policyDocument)
The details of the policy.
|
ResourcePolicy |
withPolicyName(java.lang.String policyName)
The name of the resource policy.
|
public java.lang.String getPolicyName()
The name of the resource policy.
The name of the resource policy.
public void setPolicyName(java.lang.String policyName)
The name of the resource policy.
policyName
- The name of the resource policy.
public ResourcePolicy withPolicyName(java.lang.String policyName)
The name of the resource policy.
Returns a reference to this object so that method calls can be chained together.
policyName
- The name of the resource policy.
public java.lang.String getPolicyDocument()
The details of the policy.
Constraints:
Length: 1 - 5120
The details of the policy.
public void setPolicyDocument(java.lang.String policyDocument)
The details of the policy.
Constraints:
Length: 1 - 5120
policyDocument
- The details of the policy.
public ResourcePolicy withPolicyDocument(java.lang.String policyDocument)
The details of the policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 5120
policyDocument
- The details of the policy.
public java.lang.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.
Constraints:
Range: 0 -
Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public void setLastUpdatedTime(java.lang.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.
Constraints:
Range: 0 -
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 ResourcePolicy withLastUpdatedTime(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.