Interface Policy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Policy.Builder,,Policy> SdkBuilder<Policy.Builder,,Policy> SdkPojo
- Enclosing class:
Policy
-
Method Summary
Modifier and TypeMethodDescriptiondefault Policy.BuildersecurityHub(Consumer<SecurityHubPolicy.Builder> securityHub) The Amazon Web Services service that the configuration policy applies to.securityHub(SecurityHubPolicy securityHub) The Amazon Web Services service that the configuration policy applies to.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, sdkFields
-
Method Details
-
securityHub
The Amazon Web Services service that the configuration policy applies to.
- Parameters:
securityHub- The Amazon Web Services service that the configuration policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityHub
The Amazon Web Services service that the configuration policy applies to.
This is a convenience method that creates an instance of theSecurityHubPolicy.Builderavoiding the need to create one manually viaSecurityHubPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosecurityHub(SecurityHubPolicy).- Parameters:
securityHub- a consumer that will call methods onSecurityHubPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-