Class CfnAssessmentTargetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.inspector.CfnAssessmentTargetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTargetMixinProps>
- Enclosing interface:
CfnAssessmentTargetMixinProps
@Stability(Stable)
public static final class CfnAssessmentTargetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTargetMixinProps>
A builder for
CfnAssessmentTargetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetName(String assessmentTargetName) Sets the value ofCfnAssessmentTargetMixinProps.getAssessmentTargetName()build()Builds the configured instance.resourceGroupArn(String resourceGroupArn) Sets the value ofCfnAssessmentTargetMixinProps.getResourceGroupArn()resourceGroupArn(IResourceGroupRef resourceGroupArn) Sets the value ofCfnAssessmentTargetMixinProps.getResourceGroupArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentTargetName
@Stability(Stable) public CfnAssessmentTargetMixinProps.Builder assessmentTargetName(String assessmentTargetName) Sets the value ofCfnAssessmentTargetMixinProps.getAssessmentTargetName()- Parameters:
assessmentTargetName- The name of the Amazon Inspector assessment target. The name must be unique within the AWS account .- Returns:
this
-
resourceGroupArn
@Stability(Stable) public CfnAssessmentTargetMixinProps.Builder resourceGroupArn(String resourceGroupArn) Sets the value ofCfnAssessmentTargetMixinProps.getResourceGroupArn()- Parameters:
resourceGroupArn- The ARN that specifies the resource group that is used to create the assessment target. IfresourceGroupArnis not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.- Returns:
this
-
resourceGroupArn
@Stability(Stable) public CfnAssessmentTargetMixinProps.Builder resourceGroupArn(IResourceGroupRef resourceGroupArn) Sets the value ofCfnAssessmentTargetMixinProps.getResourceGroupArn()- Parameters:
resourceGroupArn- The ARN that specifies the resource group that is used to create the assessment target. IfresourceGroupArnis not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssessmentTargetMixinProps>- Returns:
- a new instance of
CfnAssessmentTargetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-