Interface CreateCustomDetectionRuleAssociationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateCustomDetectionRuleAssociationResponse.Builder,,CreateCustomDetectionRuleAssociationResponse> GuardDutyResponse.Builder,SdkBuilder<CreateCustomDetectionRuleAssociationResponse.Builder,,CreateCustomDetectionRuleAssociationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateCustomDetectionRuleAssociationResponse
@Mutable
@NotThreadSafe
public static interface CreateCustomDetectionRuleAssociationResponse.Builder
extends GuardDutyResponse.Builder, SdkPojo, CopyableBuilder<CreateCustomDetectionRuleAssociationResponse.Builder,CreateCustomDetectionRuleAssociationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionruleAssociation(Consumer<AssociationDetail.Builder> ruleAssociation) The details of the newly created custom detection rule association.ruleAssociation(AssociationDetail ruleAssociation) The details of the newly created custom detection rule association.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
ruleAssociation
CreateCustomDetectionRuleAssociationResponse.Builder ruleAssociation(AssociationDetail ruleAssociation) The details of the newly created custom detection rule association.
- Parameters:
ruleAssociation- The details of the newly created custom detection rule association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAssociation
default CreateCustomDetectionRuleAssociationResponse.Builder ruleAssociation(Consumer<AssociationDetail.Builder> ruleAssociation) The details of the newly created custom detection rule association.
This is a convenience method that creates an instance of theAssociationDetail.Builderavoiding the need to create one manually viaAssociationDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruleAssociation(AssociationDetail).- Parameters:
ruleAssociation- a consumer that will call methods onAssociationDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-