Interface CreateMalwareProtectionPlanRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMalwareProtectionPlanRequest.Builder,CreateMalwareProtectionPlanRequest>,GuardDutyRequest.Builder,SdkBuilder<CreateMalwareProtectionPlanRequest.Builder,CreateMalwareProtectionPlanRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateMalwareProtectionPlanRequest
public static interface CreateMalwareProtectionPlanRequest.Builder extends GuardDutyRequest.Builder, SdkPojo, CopyableBuilder<CreateMalwareProtectionPlanRequest.Builder,CreateMalwareProtectionPlanRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateMalwareProtectionPlanRequest.Builderactions(Consumer<MalwareProtectionPlanActions.Builder> actions)Information about whether the tags will be added to the S3 object after scanning.CreateMalwareProtectionPlanRequest.Builderactions(MalwareProtectionPlanActions actions)Information about whether the tags will be added to the S3 object after scanning.CreateMalwareProtectionPlanRequest.BuilderclientToken(String clientToken)The idempotency token for the create request.CreateMalwareProtectionPlanRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateMalwareProtectionPlanRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateMalwareProtectionPlanRequest.BuilderprotectedResource(Consumer<CreateProtectedResource.Builder> protectedResource)Information about the protected resource that is associated with the created Malware Protection plan.CreateMalwareProtectionPlanRequest.BuilderprotectedResource(CreateProtectedResource protectedResource)Information about the protected resource that is associated with the created Malware Protection plan.CreateMalwareProtectionPlanRequest.Builderrole(String role)IAM role with permissions required to scan and add tags to the associated protected resource.CreateMalwareProtectionPlanRequest.Buildertags(Map<String,String> tags)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 Detail
-
clientToken
CreateMalwareProtectionPlanRequest.Builder clientToken(String 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
CreateMalwareProtectionPlanRequest.Builder role(String 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,
S3Bucketis the only supported protected resource.- Parameters:
protectedResource- Information about the protected resource that is associated with the created Malware Protection plan. Presently,S3Bucketis 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 theS3Bucketis the only supported protected resource.CreateProtectedResource.Builderavoiding the need to create one manually viaCreateProtectedResource.builder().When the
Consumercompletes,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:
protectedResource(CreateProtectedResource)
-
actions
CreateMalwareProtectionPlanRequest.Builder actions(MalwareProtectionPlanActions 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.Builderavoiding the need to create one manually viaMalwareProtectionPlanActions.builder().When the
Consumercompletes,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:
actions(MalwareProtectionPlanActions)
-
tags
CreateMalwareProtectionPlanRequest.Builder tags(Map<String,String> 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateMalwareProtectionPlanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-