Interface ComplianceByResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ComplianceByResource.Builder,
,ComplianceByResource> SdkBuilder<ComplianceByResource.Builder,
,ComplianceByResource> SdkPojo
- Enclosing class:
ComplianceByResource
public static interface ComplianceByResource.Builder
extends SdkPojo, CopyableBuilder<ComplianceByResource.Builder,ComplianceByResource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComplianceByResource.Builder
compliance
(Consumer<Compliance.Builder> compliance) Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.compliance
(Compliance compliance) Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.resourceId
(String resourceId) The ID of the Amazon Web Services resource that was evaluated.resourceType
(String resourceType) The type of the Amazon Web Services resource that was evaluated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resourceType
The type of the Amazon Web Services resource that was evaluated.
- Parameters:
resourceType
- The type of the Amazon Web Services resource that was evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The ID of the Amazon Web Services resource that was evaluated.
- Parameters:
resourceId
- The ID of the Amazon Web Services resource that was evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compliance
Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.
- Parameters:
compliance
- Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compliance
Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.
This is a convenience method that creates an instance of theCompliance.Builder
avoiding the need to create one manually viaCompliance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocompliance(Compliance)
.- Parameters:
compliance
- a consumer that will call methods onCompliance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-