Class CfnAssociation.MCPServerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnAssociation.MCPServerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssociation.MCPServerConfigurationProperty>
- Enclosing interface:
CfnAssociation.MCPServerConfigurationProperty
@Stability(Stable)
public static final class CfnAssociation.MCPServerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssociation.MCPServerConfigurationProperty>
A builder for
CfnAssociation.MCPServerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getDescription()enableWebhookUpdates(Boolean enableWebhookUpdates) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEnableWebhookUpdates()enableWebhookUpdates(IResolvable enableWebhookUpdates) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEnableWebhookUpdates()Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEndpoint()Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getName()Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getTools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
@Stability(Stable) public CfnAssociation.MCPServerConfigurationProperty.Builder endpoint(String endpoint) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEndpoint()- Parameters:
endpoint- MCP server endpoint URL. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getName()- Parameters:
name- The name of the MCP server. This parameter is required.- Returns:
this
-
tools
@Stability(Stable) public CfnAssociation.MCPServerConfigurationProperty.Builder tools(List<String> tools) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getTools()- Parameters:
tools- List of MCP tools that can be used with the association. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CfnAssociation.MCPServerConfigurationProperty.Builder description(String description) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getDescription()- Parameters:
description- The description of the MCP server.- Returns:
this
-
enableWebhookUpdates
@Stability(Stable) public CfnAssociation.MCPServerConfigurationProperty.Builder enableWebhookUpdates(Boolean enableWebhookUpdates) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEnableWebhookUpdates()- Parameters:
enableWebhookUpdates- When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.- Returns:
this
-
enableWebhookUpdates
@Stability(Stable) public CfnAssociation.MCPServerConfigurationProperty.Builder enableWebhookUpdates(IResolvable enableWebhookUpdates) Sets the value ofCfnAssociation.MCPServerConfigurationProperty.getEnableWebhookUpdates()- Parameters:
enableWebhookUpdates- When set to true, enables the Agent Space to create and update webhooks for receiving notifications and events from the service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAssociation.MCPServerConfigurationProperty>- Returns:
- a new instance of
CfnAssociation.MCPServerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-