Interface MalwareProtectionConfigurationResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MalwareProtectionConfigurationResult.Builder,,MalwareProtectionConfigurationResult> SdkBuilder<MalwareProtectionConfigurationResult.Builder,,MalwareProtectionConfigurationResult> SdkPojo
- Enclosing class:
MalwareProtectionConfigurationResult
public static interface MalwareProtectionConfigurationResult.Builder
extends SdkPojo, CopyableBuilder<MalwareProtectionConfigurationResult.Builder,MalwareProtectionConfigurationResult>
-
Method Summary
Modifier and TypeMethodDescriptionscanEc2InstanceWithFindings(Consumer<ScanEc2InstanceWithFindingsResult.Builder> scanEc2InstanceWithFindings) Describes the configuration of Malware Protection for EC2 instances with findings.scanEc2InstanceWithFindings(ScanEc2InstanceWithFindingsResult scanEc2InstanceWithFindings) Describes the configuration of Malware Protection for EC2 instances with findings.serviceRole(String serviceRole) The GuardDuty Malware Protection service role.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
scanEc2InstanceWithFindings
MalwareProtectionConfigurationResult.Builder scanEc2InstanceWithFindings(ScanEc2InstanceWithFindingsResult scanEc2InstanceWithFindings) Describes the configuration of Malware Protection for EC2 instances with findings.
- Parameters:
scanEc2InstanceWithFindings- Describes the configuration of Malware Protection for EC2 instances with findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanEc2InstanceWithFindings
default MalwareProtectionConfigurationResult.Builder scanEc2InstanceWithFindings(Consumer<ScanEc2InstanceWithFindingsResult.Builder> scanEc2InstanceWithFindings) Describes the configuration of Malware Protection for EC2 instances with findings.
This is a convenience method that creates an instance of theScanEc2InstanceWithFindingsResult.Builderavoiding the need to create one manually viaScanEc2InstanceWithFindingsResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscanEc2InstanceWithFindings(ScanEc2InstanceWithFindingsResult).- Parameters:
scanEc2InstanceWithFindings- a consumer that will call methods onScanEc2InstanceWithFindingsResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceRole
The GuardDuty Malware Protection service role.
- Parameters:
serviceRole- The GuardDuty Malware Protection service role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-