Class CfnMalwareProtectionPlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnMalwareProtectionPlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlanProps>
- Enclosing interface:
CfnMalwareProtectionPlanProps
@Stability(Stable)
public static final class CfnMalwareProtectionPlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlanProps>
A builder for
CfnMalwareProtectionPlanProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(IResolvable actions) Sets the value ofCfnMalwareProtectionPlanProps.getActions()
Sets the value ofCfnMalwareProtectionPlanProps.getActions()
build()
Builds the configured instance.protectedResource
(IResolvable protectedResource) Sets the value ofCfnMalwareProtectionPlanProps.getProtectedResource()
protectedResource
(CfnMalwareProtectionPlan.CFNProtectedResourceProperty protectedResource) Sets the value ofCfnMalwareProtectionPlanProps.getProtectedResource()
Sets the value ofCfnMalwareProtectionPlanProps.getRole()
tags
(List<? extends CfnMalwareProtectionPlan.TagItemProperty> tags) Sets the value ofCfnMalwareProtectionPlanProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlanProps.Builder protectedResource(IResolvable protectedResource) Sets the value ofCfnMalwareProtectionPlanProps.getProtectedResource()
- Parameters:
protectedResource
- Information about the protected resource. This parameter is required. Presently,S3Bucket
is the only supported protected resource.- Returns:
this
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlanProps.Builder protectedResource(CfnMalwareProtectionPlan.CFNProtectedResourceProperty protectedResource) Sets the value ofCfnMalwareProtectionPlanProps.getProtectedResource()
- Parameters:
protectedResource
- Information about the protected resource. This parameter is required. Presently,S3Bucket
is the only supported protected resource.- Returns:
this
-
role
Sets the value ofCfnMalwareProtectionPlanProps.getRole()
- Parameters:
role
- Amazon Resource Name (ARN) of the IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource. This parameter is required. To find the ARN of your IAM role, go to the IAM console, and select the role name for details.- Returns:
this
-
actions
Sets the value ofCfnMalwareProtectionPlanProps.getActions()
- Parameters:
actions
- Specifies the action that is to be applied to the Malware Protection plan resource.- Returns:
this
-
actions
@Stability(Stable) public CfnMalwareProtectionPlanProps.Builder actions(CfnMalwareProtectionPlan.CFNActionsProperty actions) Sets the value ofCfnMalwareProtectionPlanProps.getActions()
- Parameters:
actions
- Specifies the action that is to be applied to the Malware Protection plan resource.- Returns:
this
-
tags
@Stability(Stable) public CfnMalwareProtectionPlanProps.Builder tags(List<? extends CfnMalwareProtectionPlan.TagItemProperty> tags) Sets the value ofCfnMalwareProtectionPlanProps.getTags()
- Parameters:
tags
- The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlanProps>
- Returns:
- a new instance of
CfnMalwareProtectionPlanProps
- Throws:
NullPointerException
- if any required attribute was not provided
-