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 Details

    • Builder

      public Builder()
  • Method Details

    • agentSpaceId

      @Stability(Stable) public CfnAssociationProps.Builder agentSpaceId(String agentSpaceId)
      Parameters:
      agentSpaceId - The unique identifier of the Agent Space. This parameter is required.
      Returns:
      this
    • configuration

      @Stability(Stable) public CfnAssociationProps.Builder configuration(IResolvable configuration)
      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)
      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

      @Stability(Stable) public CfnAssociationProps.Builder serviceId(String serviceId)
      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
    • linkedAssociationIds

      @Stability(Stable) public CfnAssociationProps.Builder linkedAssociationIds(List<String> linkedAssociationIds)
      Parameters:
      linkedAssociationIds - Set of linked association IDs for parent-child relationships.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAssociationProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssociationProps>
      Returns:
      a new instance of CfnAssociationProps
      Throws:
      NullPointerException - if any required attribute was not provided