Interface GetCustomDetectionRuleResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCustomDetectionRuleResponse.Builder,,GetCustomDetectionRuleResponse> GuardDutyResponse.Builder,SdkBuilder<GetCustomDetectionRuleResponse.Builder,,GetCustomDetectionRuleResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCustomDetectionRuleResponse
@Mutable
@NotThreadSafe
public static interface GetCustomDetectionRuleResponse.Builder
extends GuardDutyResponse.Builder, SdkPojo, CopyableBuilder<GetCustomDetectionRuleResponse.Builder,GetCustomDetectionRuleResponse>
-
Method Summary
Modifier and TypeMethodDescriptionrule(Consumer<RuleDetail.Builder> rule) The details of the custom detection rule.rule(RuleDetail rule) The details of the custom detection rule.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
-
rule
The details of the custom detection rule.
- Parameters:
rule- The details of the custom detection rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The details of the custom detection rule.
This is a convenience method that creates an instance of theRuleDetail.Builderavoiding the need to create one manually viaRuleDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(RuleDetail).- Parameters:
rule- a consumer that will call methods onRuleDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-