Class AccountPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.AccountPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
@Generated("software.amazon.awssdk:codegen") public final class AccountPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
A structure that contains information about one CloudWatch Logs account policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAccountPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The Amazon Web Services account ID that the policy applies to.static AccountPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LonglastUpdatedTime()The date and time that this policy was most recently updated.StringpolicyDocument()The policy document for this account policy.StringpolicyName()The name of the account policy.PolicyTypepolicyType()The type of policy for this account policy.StringpolicyTypeAsString()The type of policy for this account policy.Scopescope()The scope of the account policy.StringscopeAsString()The scope of the account policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()StringselectionCriteria()The log group selection criteria that is used for this policy.static Class<? extends AccountPolicy.Builder>serializableBuilderClass()AccountPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyName
public final String policyName()
The name of the account policy.
- Returns:
- The name of the account policy.
-
policyDocument
public final String policyDocument()
The policy document for this account policy.
The JSON specified in
policyDocumentcan be up to 30,720 characters.- Returns:
- The policy document for this account policy.
The JSON specified in
policyDocumentcan be up to 30,720 characters.
-
lastUpdatedTime
public final Long lastUpdatedTime()
The date and time that this policy was most recently updated.
- Returns:
- The date and time that this policy was most recently updated.
-
policyType
public final PolicyType policyType()
The type of policy for this account policy.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy for this account policy.
- See Also:
PolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The type of policy for this account policy.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy for this account policy.
- See Also:
PolicyType
-
scope
public final Scope scope()
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of the account policy.
- See Also:
Scope
-
scopeAsString
public final String scopeAsString()
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of the account policy.
- See Also:
Scope
-
selectionCriteria
public final String selectionCriteria()
The log group selection criteria that is used for this policy.
- Returns:
- The log group selection criteria that is used for this policy.
-
accountId
public final String accountId()
The Amazon Web Services account ID that the policy applies to.
- Returns:
- The Amazon Web Services account ID that the policy applies to.
-
toBuilder
public AccountPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
-
builder
public static AccountPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends AccountPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-