Interface PolicyEventMetadata.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyEventMetadata.Builder,,PolicyEventMetadata> SdkBuilder<PolicyEventMetadata.Builder,,PolicyEventMetadata> SdkPojo
- Enclosing class:
PolicyEventMetadata
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyEventMetadata.BuilderpolicyAttachedToService(Consumer<PolicyAttachedToServiceMetadata.Builder> policyAttachedToService) Contains details about the service that started using the policy, such as the account that owns the service.policyAttachedToService(PolicyAttachedToServiceMetadata policyAttachedToService) Contains details about the service that started using the policy, such as the account that owns the service.default PolicyEventMetadata.BuilderpolicyDeleted(Consumer<PolicyDeletedMetadata.Builder> policyDeleted) Contains details about a policy that was deleted, including the number of services that were affected.policyDeleted(PolicyDeletedMetadata policyDeleted) Contains details about a policy that was deleted, including the number of services that were affected.default PolicyEventMetadata.BuilderpolicyDetachedFromService(Consumer<PolicyDetachedFromServiceMetadata.Builder> policyDetachedFromService) Contains details about the service that stopped using the policy, such as the account that owns the service.policyDetachedFromService(PolicyDetachedFromServiceMetadata policyDetachedFromService) Contains details about the service that stopped using the policy, such as the account that owns the service.default PolicyEventMetadata.BuilderpolicySharingRevoked(Consumer<PolicySharingRevokedMetadata.Builder> policySharingRevoked) Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.policySharingRevoked(PolicySharingRevokedMetadata policySharingRevoked) Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyAttachedToService
PolicyEventMetadata.Builder policyAttachedToService(PolicyAttachedToServiceMetadata policyAttachedToService) Contains details about the service that started using the policy, such as the account that owns the service.
- Parameters:
policyAttachedToService- Contains details about the service that started using the policy, such as the account that owns the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyAttachedToService
default PolicyEventMetadata.Builder policyAttachedToService(Consumer<PolicyAttachedToServiceMetadata.Builder> policyAttachedToService) Contains details about the service that started using the policy, such as the account that owns the service.
This is a convenience method that creates an instance of thePolicyAttachedToServiceMetadata.Builderavoiding the need to create one manually viaPolicyAttachedToServiceMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyAttachedToService(PolicyAttachedToServiceMetadata).- Parameters:
policyAttachedToService- a consumer that will call methods onPolicyAttachedToServiceMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyDetachedFromService
PolicyEventMetadata.Builder policyDetachedFromService(PolicyDetachedFromServiceMetadata policyDetachedFromService) Contains details about the service that stopped using the policy, such as the account that owns the service.
- Parameters:
policyDetachedFromService- Contains details about the service that stopped using the policy, such as the account that owns the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetachedFromService
default PolicyEventMetadata.Builder policyDetachedFromService(Consumer<PolicyDetachedFromServiceMetadata.Builder> policyDetachedFromService) Contains details about the service that stopped using the policy, such as the account that owns the service.
This is a convenience method that creates an instance of thePolicyDetachedFromServiceMetadata.Builderavoiding the need to create one manually viaPolicyDetachedFromServiceMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyDetachedFromService(PolicyDetachedFromServiceMetadata).- Parameters:
policyDetachedFromService- a consumer that will call methods onPolicyDetachedFromServiceMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policySharingRevoked
Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.
- Parameters:
policySharingRevoked- Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policySharingRevoked
default PolicyEventMetadata.Builder policySharingRevoked(Consumer<PolicySharingRevokedMetadata.Builder> policySharingRevoked) Contains details about a policy for which organization sharing was revoked, including the number of services that were affected.
This is a convenience method that creates an instance of thePolicySharingRevokedMetadata.Builderavoiding the need to create one manually viaPolicySharingRevokedMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicySharingRevoked(PolicySharingRevokedMetadata).- Parameters:
policySharingRevoked- a consumer that will call methods onPolicySharingRevokedMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyDeleted
Contains details about a policy that was deleted, including the number of services that were affected.
- Parameters:
policyDeleted- Contains details about a policy that was deleted, including the number of services that were affected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDeleted
default PolicyEventMetadata.Builder policyDeleted(Consumer<PolicyDeletedMetadata.Builder> policyDeleted) Contains details about a policy that was deleted, including the number of services that were affected.
This is a convenience method that creates an instance of thePolicyDeletedMetadata.Builderavoiding the need to create one manually viaPolicyDeletedMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyDeleted(PolicyDeletedMetadata).- Parameters:
policyDeleted- a consumer that will call methods onPolicyDeletedMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-