Class CfnAssociation.AWSResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociation.AWSResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.AWSResourceProperty>
- Enclosing interface:
CfnAssociation.AWSResourceProperty
@Stability(Stable)
public static final class CfnAssociation.AWSResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.AWSResourceProperty>
A builder for
CfnAssociation.AWSResourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceArn(String resourceArn) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceArn()resourceMetadata(Object resourceMetadata) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceMetadata()resourceType(String resourceType) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceArn
@Stability(Stable) public CfnAssociation.AWSResourceProperty.Builder resourceArn(String resourceArn) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the resource. This parameter is required.- Returns:
this
-
resourceMetadata
@Stability(Stable) public CfnAssociation.AWSResourceProperty.Builder resourceMetadata(Object resourceMetadata) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceMetadata()- Parameters:
resourceMetadata- Additional metadata for the resource.- Returns:
this
-
resourceType
@Stability(Stable) public CfnAssociation.AWSResourceProperty.Builder resourceType(String resourceType) Sets the value ofCfnAssociation.AWSResourceProperty.getResourceType()- Parameters:
resourceType- Resource type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociation.AWSResourceProperty>- Returns:
- a new instance of
CfnAssociation.AWSResourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-