Class CfnAssociationProps.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociationProps>
- Enclosing interface:
CfnAssociationProps
@Stability(Stable)
public static final class CfnAssociationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociationProps>
A builder for
CfnAssociationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) Sets the value ofCfnAssociationProps.getAgentSpaceId()build()Builds the configured instance.configuration(IResolvable configuration) Sets the value ofCfnAssociationProps.getConfiguration()configuration(CfnAssociation.ServiceConfigurationProperty configuration) Sets the value ofCfnAssociationProps.getConfiguration()Sets the value ofCfnAssociationProps.getServiceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentSpaceId
Sets the value ofCfnAssociationProps.getAgentSpaceId()- Parameters:
agentSpaceId- The unique identifier of the AgentSpace. This parameter is required.- Returns:
this
-
configuration
Sets the value ofCfnAssociationProps.getConfiguration()- Parameters:
configuration- The configuration that directs how AgentSpace interacts with the given service. This parameter is required.- Returns:
this
-
configuration
@Stability(Stable) public CfnAssociationProps.Builder configuration(CfnAssociation.ServiceConfigurationProperty configuration) Sets the value ofCfnAssociationProps.getConfiguration()- Parameters:
configuration- The configuration that directs how AgentSpace interacts with the given service. This parameter is required.- Returns:
this
-
serviceId
Sets the value ofCfnAssociationProps.getServiceId()- Parameters:
serviceId- The identifier for the associated service. This parameter is required. For SourceAws and Aws configurations, this must be 'aws'. For all other service types, this is a UUID generated from the RegisterService command- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociationProps>- Returns:
- a new instance of
CfnAssociationProps - Throws:
NullPointerException- if any required attribute was not provided
-