Class CfnAssessmentTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.inspector.CfnAssessmentTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTargetProps>
- Enclosing interface:
CfnAssessmentTargetProps
@Stability(Stable)
public static final class CfnAssessmentTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssessmentTargetProps>
A builder for
CfnAssessmentTargetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassessmentTargetName
(String assessmentTargetName) Sets the value ofCfnAssessmentTargetProps.getAssessmentTargetName()
build()
Builds the configured instance.resourceGroupArn
(String resourceGroupArn) Sets the value ofCfnAssessmentTargetProps.getResourceGroupArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assessmentTargetName
@Stability(Stable) public CfnAssessmentTargetProps.Builder assessmentTargetName(String assessmentTargetName) Sets the value ofCfnAssessmentTargetProps.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 CfnAssessmentTargetProps.Builder resourceGroupArn(String resourceGroupArn) Sets the value ofCfnAssessmentTargetProps.getResourceGroupArn()
- Parameters:
resourceGroupArn
- The ARN that specifies the resource group that is used to create the assessment target. IfresourceGroupArn
is 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssessmentTargetProps>
- Returns:
- a new instance of
CfnAssessmentTargetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-