Class CfnMalwareProtectionPlanMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.guardduty.CfnMalwareProtectionPlanMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMalwareProtectionPlanMixinProps>
- Enclosing interface:
CfnMalwareProtectionPlanMixinProps
@Stability(Stable)
public static final class CfnMalwareProtectionPlanMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMalwareProtectionPlanMixinProps>
A builder for
CfnMalwareProtectionPlanMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnMalwareProtectionPlanMixinProps.getActions()actions(IResolvable actions) Sets the value ofCfnMalwareProtectionPlanMixinProps.getActions()build()Builds the configured instance.protectedResource(CfnMalwareProtectionPlanPropsMixin.CFNProtectedResourceProperty protectedResource) Sets the value ofCfnMalwareProtectionPlanMixinProps.getProtectedResource()protectedResource(IResolvable protectedResource) Sets the value ofCfnMalwareProtectionPlanMixinProps.getProtectedResource()Sets the value ofCfnMalwareProtectionPlanMixinProps.getRole()tags(List<? extends CfnMalwareProtectionPlanPropsMixin.TagItemProperty> tags) Sets the value ofCfnMalwareProtectionPlanMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnMalwareProtectionPlanMixinProps.getActions()- Parameters:
actions- Specifies the action that is to be applied to the Malware Protection plan resource.- Returns:
this
-
actions
@Stability(Stable) public CfnMalwareProtectionPlanMixinProps.Builder actions(CfnMalwareProtectionPlanPropsMixin.CFNActionsProperty actions) Sets the value ofCfnMalwareProtectionPlanMixinProps.getActions()- Parameters:
actions- Specifies the action that is to be applied to the Malware Protection plan resource.- Returns:
this
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlanMixinProps.Builder protectedResource(IResolvable protectedResource) Sets the value ofCfnMalwareProtectionPlanMixinProps.getProtectedResource()- Parameters:
protectedResource- Information about the protected resource. Presently,S3Bucketis the only supported protected resource.- Returns:
this
-
protectedResource
@Stability(Stable) public CfnMalwareProtectionPlanMixinProps.Builder protectedResource(CfnMalwareProtectionPlanPropsMixin.CFNProtectedResourceProperty protectedResource) Sets the value ofCfnMalwareProtectionPlanMixinProps.getProtectedResource()- Parameters:
protectedResource- Information about the protected resource. Presently,S3Bucketis the only supported protected resource.- Returns:
this
-
role
Sets the value ofCfnMalwareProtectionPlanMixinProps.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. To find the ARN of your IAM role, go to the IAM console, and select the role name for details.- Returns:
this
-
tags
@Stability(Stable) public CfnMalwareProtectionPlanMixinProps.Builder tags(List<? extends CfnMalwareProtectionPlanPropsMixin.TagItemProperty> tags) Sets the value ofCfnMalwareProtectionPlanMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnMalwareProtectionPlanMixinProps>- Returns:
- a new instance of
CfnMalwareProtectionPlanMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-