Interface CreateMalwareProtectionPlanRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMalwareProtectionPlanRequest.Builder,
,CreateMalwareProtectionPlanRequest> GuardDutyRequest.Builder
,SdkBuilder<CreateMalwareProtectionPlanRequest.Builder,
,CreateMalwareProtectionPlanRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMalwareProtectionPlanRequest
-
Method Summary
Modifier and TypeMethodDescriptionInformation about whether the tags will be added to the S3 object after scanning.actions
(MalwareProtectionPlanActions actions) Information about whether the tags will be added to the S3 object after scanning.clientToken
(String clientToken) The idempotency token for the create request.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.protectedResource
(Consumer<CreateProtectedResource.Builder> protectedResource) Information about the protected resource that is associated with the created Malware Protection plan.protectedResource
(CreateProtectedResource protectedResource) Information about the protected resource that is associated with the created Malware Protection plan.IAM role with permissions required to scan and add tags to the associated protected resource.Tags added to the Malware Protection plan resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyRequest.Builder
build
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
-
clientToken
The idempotency token for the create request.
- Parameters:
clientToken
- The idempotency token for the create request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
role
IAM role with permissions required to scan and add tags to the associated protected resource.
- Parameters:
role
- IAM role with permissions required to scan and add tags to the associated protected resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResource
CreateMalwareProtectionPlanRequest.Builder protectedResource(CreateProtectedResource protectedResource) Information about the protected resource that is associated with the created Malware Protection plan. Presently,
S3Bucket
is the only supported protected resource.- Parameters:
protectedResource
- Information about the protected resource that is associated with the created Malware Protection plan. Presently,S3Bucket
is the only supported protected resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protectedResource
default CreateMalwareProtectionPlanRequest.Builder protectedResource(Consumer<CreateProtectedResource.Builder> protectedResource) Information about the protected resource that is associated with the created Malware Protection plan. Presently,
This is a convenience method that creates an instance of theS3Bucket
is the only supported protected resource.CreateProtectedResource.Builder
avoiding the need to create one manually viaCreateProtectedResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprotectedResource(CreateProtectedResource)
.- Parameters:
protectedResource
- a consumer that will call methods onCreateProtectedResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actions
Information about whether the tags will be added to the S3 object after scanning.
- Parameters:
actions
- Information about whether the tags will be added to the S3 object after scanning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
default CreateMalwareProtectionPlanRequest.Builder actions(Consumer<MalwareProtectionPlanActions.Builder> actions) Information about whether the tags will be added to the S3 object after scanning.
This is a convenience method that creates an instance of theMalwareProtectionPlanActions.Builder
avoiding the need to create one manually viaMalwareProtectionPlanActions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(MalwareProtectionPlanActions)
.- Parameters:
actions
- a consumer that will call methods onMalwareProtectionPlanActions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags added to the Malware Protection plan resource.
- Parameters:
tags
- Tags added to the Malware Protection plan resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateMalwareProtectionPlanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMalwareProtectionPlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-