Interface StartMalwareScanRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartMalwareScanRequest.Builder,,StartMalwareScanRequest> GuardDutyRequest.Builder,SdkBuilder<StartMalwareScanRequest.Builder,,StartMalwareScanRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartMalwareScanRequest
@Mutable
@NotThreadSafe
public static interface StartMalwareScanRequest.Builder
extends GuardDutyRequest.Builder, SdkPojo, CopyableBuilder<StartMalwareScanRequest.Builder,StartMalwareScanRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(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.resourceArn(String resourceArn) Amazon Resource Name (ARN) of the resource for which you invoked the API.default StartMalwareScanRequest.BuilderscanConfiguration(Consumer<StartMalwareScanConfiguration.Builder> scanConfiguration) Contains information about the configuration to be used for the malware scan.scanConfiguration(StartMalwareScanConfiguration scanConfiguration) Contains information about the configuration to be used for the malware scan.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceArn
Amazon Resource Name (ARN) of the resource for which you invoked the API.
- Parameters:
resourceArn- Amazon Resource Name (ARN) of the resource for which you invoked the API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
scanConfiguration
Contains information about the configuration to be used for the malware scan.
- Parameters:
scanConfiguration- Contains information about the configuration to be used for the malware scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanConfiguration
default StartMalwareScanRequest.Builder scanConfiguration(Consumer<StartMalwareScanConfiguration.Builder> scanConfiguration) Contains information about the configuration to be used for the malware scan.
This is a convenience method that creates an instance of theStartMalwareScanConfiguration.Builderavoiding the need to create one manually viaStartMalwareScanConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanConfiguration(StartMalwareScanConfiguration).- Parameters:
scanConfiguration- a consumer that will call methods onStartMalwareScanConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartMalwareScanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartMalwareScanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-