Class AccountPolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
A structure that contains information about one CloudWatch Logs account policy.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Web Services account ID that the policy applies to.static AccountPolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongThe date and time that this policy was most recently updated.final StringThe policy document for this account policy.final StringThe name of the account policy.final PolicyTypeThe type of policy for this account policy.final StringThe type of policy for this account policy.final Scopescope()The scope of the account policy.final StringThe scope of the account policy.final StringThe log group selection criteria for this subscription filter policy.static Class<? extends AccountPolicy.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
policyName
The name of the account policy.
- Returns:
- The name of the account policy.
-
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
The date and time that this policy was most recently updated.
- Returns:
- The date and time that this policy was most recently updated.
-
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:
-
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:
-
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:
-
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:
-
selectionCriteria
The log group selection criteria for this subscription filter policy.
- Returns:
- The log group selection criteria for this subscription filter policy.
-
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AccountPolicy.Builder,AccountPolicy> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-