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()linkedAssociationIds(List<String> linkedAssociationIds) Sets the value ofCfnAssociationProps.getLinkedAssociationIds()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 Agent Space. This parameter is required.- Returns:
this
-
configuration
Sets the value ofCfnAssociationProps.getConfiguration()- Parameters:
configuration- The configuration that directs how the Agent Space interacts with the given service. This parameter is required. You can specify only one configuration type per association.Allowed Values :
SourceAws|Aws|GitHub|GitLab|Slack|Dynatrace|ServiceNow|MCPServer|MCPServerNewRelic|MCPServerDatadog|MCPServerSplunk|EventChannel- Returns:
this
-
configuration
@Stability(Stable) public CfnAssociationProps.Builder configuration(CfnAssociation.ServiceConfigurationProperty configuration) Sets the value ofCfnAssociationProps.getConfiguration()- Parameters:
configuration- The configuration that directs how the Agent Space interacts with the given service. This parameter is required. You can specify only one configuration type per association.Allowed Values :
SourceAws|Aws|GitHub|GitLab|Slack|Dynatrace|ServiceNow|MCPServer|MCPServerNewRelic|MCPServerDatadog|MCPServerSplunk|EventChannel- Returns:
this
-
serviceId
Sets the value ofCfnAssociationProps.getServiceId()- Parameters:
serviceId- The identifier for the associated service. This parameter is required. ForSourceAwsandAwsconfigurations, this must beaws. For all other service types, this is a UUID generated from the RegisterService command.- Returns:
this
-
linkedAssociationIds
@Stability(Stable) public CfnAssociationProps.Builder linkedAssociationIds(List<String> linkedAssociationIds) Sets the value ofCfnAssociationProps.getLinkedAssociationIds()- Parameters:
linkedAssociationIds- Set of linked association IDs for parent-child relationships.- 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
-