Interface GetMalwareProtectionPlanResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetMalwareProtectionPlanResponse.Builder,GetMalwareProtectionPlanResponse>,GuardDutyResponse.Builder,SdkBuilder<GetMalwareProtectionPlanResponse.Builder,GetMalwareProtectionPlanResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetMalwareProtectionPlanResponse
public static interface GetMalwareProtectionPlanResponse.Builder extends GuardDutyResponse.Builder, SdkPojo, CopyableBuilder<GetMalwareProtectionPlanResponse.Builder,GetMalwareProtectionPlanResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetMalwareProtectionPlanResponse.Builderactions(Consumer<MalwareProtectionPlanActions.Builder> actions)Information about whether the tags will be added to the S3 object after scanning.GetMalwareProtectionPlanResponse.Builderactions(MalwareProtectionPlanActions actions)Information about whether the tags will be added to the S3 object after scanning.GetMalwareProtectionPlanResponse.Builderarn(String arn)Amazon Resource Name (ARN) of the protected resource.GetMalwareProtectionPlanResponse.BuildercreatedAt(Instant createdAt)The timestamp when the Malware Protection plan resource was created.default GetMalwareProtectionPlanResponse.BuilderprotectedResource(Consumer<CreateProtectedResource.Builder> protectedResource)Information about the protected resource that is associated with the created Malware Protection plan.GetMalwareProtectionPlanResponse.BuilderprotectedResource(CreateProtectedResource protectedResource)Information about the protected resource that is associated with the created Malware Protection plan.GetMalwareProtectionPlanResponse.Builderrole(String role)IAM role that includes the permissions required to scan and add tags to the associated protected resource.GetMalwareProtectionPlanResponse.Builderstatus(String status)Malware Protection plan status.GetMalwareProtectionPlanResponse.Builderstatus(MalwareProtectionPlanStatus status)Malware Protection plan status.GetMalwareProtectionPlanResponse.BuilderstatusReasons(Collection<MalwareProtectionPlanStatusReason> statusReasons)Information about the issue code and message associated to the status of your Malware Protection plan.GetMalwareProtectionPlanResponse.BuilderstatusReasons(Consumer<MalwareProtectionPlanStatusReason.Builder>... statusReasons)Information about the issue code and message associated to the status of your Malware Protection plan.GetMalwareProtectionPlanResponse.BuilderstatusReasons(MalwareProtectionPlanStatusReason... statusReasons)Information about the issue code and message associated to the status of your Malware Protection plan.GetMalwareProtectionPlanResponse.Buildertags(Map<String,String> tags)Tags added to the Malware Protection plan resource.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
arn
GetMalwareProtectionPlanResponse.Builder arn(String arn)
Amazon Resource Name (ARN) of the protected resource.
- Parameters:
arn- Amazon Resource Name (ARN) of the protected resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
role
GetMalwareProtectionPlanResponse.Builder role(String role)
IAM role that includes the permissions required to scan and add tags to the associated protected resource.
- Parameters:
role- IAM role that includes the 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
GetMalwareProtectionPlanResponse.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 GetMalwareProtectionPlanResponse.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
GetMalwareProtectionPlanResponse.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 GetMalwareProtectionPlanResponse.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)
-
createdAt
GetMalwareProtectionPlanResponse.Builder createdAt(Instant createdAt)
The timestamp when the Malware Protection plan resource was created.
- Parameters:
createdAt- The timestamp when the Malware Protection plan resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
GetMalwareProtectionPlanResponse.Builder status(String status)
Malware Protection plan status.
- Parameters:
status- Malware Protection plan status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MalwareProtectionPlanStatus,MalwareProtectionPlanStatus
-
status
GetMalwareProtectionPlanResponse.Builder status(MalwareProtectionPlanStatus status)
Malware Protection plan status.
- Parameters:
status- Malware Protection plan status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MalwareProtectionPlanStatus,MalwareProtectionPlanStatus
-
statusReasons
GetMalwareProtectionPlanResponse.Builder statusReasons(Collection<MalwareProtectionPlanStatusReason> statusReasons)
Information about the issue code and message associated to the status of your Malware Protection plan.
- Parameters:
statusReasons- Information about the issue code and message associated to the status of your Malware Protection plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasons
GetMalwareProtectionPlanResponse.Builder statusReasons(MalwareProtectionPlanStatusReason... statusReasons)
Information about the issue code and message associated to the status of your Malware Protection plan.
- Parameters:
statusReasons- Information about the issue code and message associated to the status of your Malware Protection plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasons
GetMalwareProtectionPlanResponse.Builder statusReasons(Consumer<MalwareProtectionPlanStatusReason.Builder>... statusReasons)
Information about the issue code and message associated to the status of your Malware Protection plan.
This is a convenience method that creates an instance of theMalwareProtectionPlanStatusReason.Builderavoiding the need to create one manually viaMalwareProtectionPlanStatusReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#statusReasons(List.) - Parameters:
statusReasons- a consumer that will call methods onMalwareProtectionPlanStatusReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#statusReasons(java.util.Collection)
-
tags
GetMalwareProtectionPlanResponse.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.
-
-