@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccountPolicy extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains information about one CloudWatch Logs account policy.
| Constructor and Description |
|---|
AccountPolicy() |
| Modifier and Type | Method and Description |
|---|---|
AccountPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The Amazon Web Services account ID that the policy applies to.
|
Long |
getLastUpdatedTime()
The date and time that this policy was most recently updated.
|
String |
getPolicyDocument()
The policy document for this account policy.
|
String |
getPolicyName()
The name of the account policy.
|
String |
getPolicyType()
The type of policy for this account policy.
|
String |
getScope()
The scope of the account policy.
|
String |
getSelectionCriteria()
The log group selection criteria for this subscription filter policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAccountId(String accountId)
The Amazon Web Services account ID that the policy applies to.
|
void |
setLastUpdatedTime(Long lastUpdatedTime)
The date and time that this policy was most recently updated.
|
void |
setPolicyDocument(String policyDocument)
The policy document for this account policy.
|
void |
setPolicyName(String policyName)
The name of the account policy.
|
void |
setPolicyType(String policyType)
The type of policy for this account policy.
|
void |
setScope(String scope)
The scope of the account policy.
|
void |
setSelectionCriteria(String selectionCriteria)
The log group selection criteria for this subscription filter policy.
|
String |
toString()
Returns a string representation of this object.
|
AccountPolicy |
withAccountId(String accountId)
The Amazon Web Services account ID that the policy applies to.
|
AccountPolicy |
withLastUpdatedTime(Long lastUpdatedTime)
The date and time that this policy was most recently updated.
|
AccountPolicy |
withPolicyDocument(String policyDocument)
The policy document for this account policy.
|
AccountPolicy |
withPolicyName(String policyName)
The name of the account policy.
|
AccountPolicy |
withPolicyType(PolicyType policyType)
The type of policy for this account policy.
|
AccountPolicy |
withPolicyType(String policyType)
The type of policy for this account policy.
|
AccountPolicy |
withScope(Scope scope)
The scope of the account policy.
|
AccountPolicy |
withScope(String scope)
The scope of the account policy.
|
AccountPolicy |
withSelectionCriteria(String selectionCriteria)
The log group selection criteria for this subscription filter policy.
|
public void setPolicyName(String policyName)
The name of the account policy.
policyName - The name of the account policy.public String getPolicyName()
The name of the account policy.
public AccountPolicy withPolicyName(String policyName)
The name of the account policy.
policyName - The name of the account policy.public void setPolicyDocument(String policyDocument)
The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
policyDocument - The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
public String getPolicyDocument()
The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
The JSON specified in policyDocument can be up to 30,720 characters.
public AccountPolicy withPolicyDocument(String policyDocument)
The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
policyDocument - The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
public void setLastUpdatedTime(Long lastUpdatedTime)
The date and time that this policy was most recently updated.
lastUpdatedTime - The date and time that this policy was most recently updated.public Long getLastUpdatedTime()
The date and time that this policy was most recently updated.
public AccountPolicy withLastUpdatedTime(Long lastUpdatedTime)
The date and time that this policy was most recently updated.
lastUpdatedTime - The date and time that this policy was most recently updated.public void setPolicyType(String policyType)
The type of policy for this account policy.
policyType - The type of policy for this account policy.PolicyTypepublic String getPolicyType()
The type of policy for this account policy.
PolicyTypepublic AccountPolicy withPolicyType(String policyType)
The type of policy for this account policy.
policyType - The type of policy for this account policy.PolicyTypepublic AccountPolicy withPolicyType(PolicyType policyType)
The type of policy for this account policy.
policyType - The type of policy for this account policy.PolicyTypepublic void setScope(String scope)
The scope of the account policy.
scope - The scope of the account policy.Scopepublic String getScope()
The scope of the account policy.
Scopepublic AccountPolicy withScope(String scope)
The scope of the account policy.
scope - The scope of the account policy.Scopepublic AccountPolicy withScope(Scope scope)
The scope of the account policy.
scope - The scope of the account policy.Scopepublic void setSelectionCriteria(String selectionCriteria)
The log group selection criteria for this subscription filter policy.
selectionCriteria - The log group selection criteria for this subscription filter policy.public String getSelectionCriteria()
The log group selection criteria for this subscription filter policy.
public AccountPolicy withSelectionCriteria(String selectionCriteria)
The log group selection criteria for this subscription filter policy.
selectionCriteria - The log group selection criteria for this subscription filter policy.public void setAccountId(String accountId)
The Amazon Web Services account ID that the policy applies to.
accountId - The Amazon Web Services account ID that the policy applies to.public String getAccountId()
The Amazon Web Services account ID that the policy applies to.
public AccountPolicy withAccountId(String accountId)
The Amazon Web Services account ID that the policy applies to.
accountId - The Amazon Web Services account ID that the policy applies to.public String toString()
toString in class ObjectObject.toString()public AccountPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.