Class CfnScraper.RoleConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.aps.CfnScraper.RoleConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScraper.RoleConfigurationProperty>
- Enclosing interface:
CfnScraper.RoleConfigurationProperty
@Stability(Stable)
public static final class CfnScraper.RoleConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScraper.RoleConfigurationProperty>
A builder for
CfnScraper.RoleConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sourceRoleArn(String sourceRoleArn) Sets the value ofCfnScraper.RoleConfigurationProperty.getSourceRoleArn()targetRoleArn(String targetRoleArn) Sets the value ofCfnScraper.RoleConfigurationProperty.getTargetRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceRoleArn
@Stability(Stable) public CfnScraper.RoleConfigurationProperty.Builder sourceRoleArn(String sourceRoleArn) Sets the value ofCfnScraper.RoleConfigurationProperty.getSourceRoleArn()- Parameters:
sourceRoleArn- The ARN of the source role.- Returns:
this
-
targetRoleArn
@Stability(Stable) public CfnScraper.RoleConfigurationProperty.Builder targetRoleArn(String targetRoleArn) Sets the value ofCfnScraper.RoleConfigurationProperty.getTargetRoleArn()- Parameters:
targetRoleArn- The ARN of the target role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScraper.RoleConfigurationProperty>- Returns:
- a new instance of
CfnScraper.RoleConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-