Class CfnService.MCPServerDetailsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnService.MCPServerDetailsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.MCPServerDetailsProperty>
- Enclosing interface:
CfnService.MCPServerDetailsProperty
@Stability(Stable)
public static final class CfnService.MCPServerDetailsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.MCPServerDetailsProperty>
A builder for
CfnService.MCPServerDetailsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationConfig(IResolvable authorizationConfig) Sets the value ofCfnService.MCPServerDetailsProperty.getAuthorizationConfig()authorizationConfig(CfnService.MCPServerAuthorizationConfigProperty authorizationConfig) Sets the value ofCfnService.MCPServerDetailsProperty.getAuthorizationConfig()build()Builds the configured instance.description(String description) Sets the value ofCfnService.MCPServerDetailsProperty.getDescription()Sets the value ofCfnService.MCPServerDetailsProperty.getEndpoint()Sets the value ofCfnService.MCPServerDetailsProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationConfig
@Stability(Stable) public CfnService.MCPServerDetailsProperty.Builder authorizationConfig(IResolvable authorizationConfig) Sets the value ofCfnService.MCPServerDetailsProperty.getAuthorizationConfig()- Parameters:
authorizationConfig- MCP server authorization configuration. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public CfnService.MCPServerDetailsProperty.Builder authorizationConfig(CfnService.MCPServerAuthorizationConfigProperty authorizationConfig) Sets the value ofCfnService.MCPServerDetailsProperty.getAuthorizationConfig()- Parameters:
authorizationConfig- MCP server authorization configuration. This parameter is required.- Returns:
this
-
endpoint
Sets the value ofCfnService.MCPServerDetailsProperty.getEndpoint()- Parameters:
endpoint- MCP server endpoint URL. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnService.MCPServerDetailsProperty.getName()- Parameters:
name- MCP server name. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CfnService.MCPServerDetailsProperty.Builder description(String description) Sets the value ofCfnService.MCPServerDetailsProperty.getDescription()- Parameters:
description- Optional description for the MCP server.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.MCPServerDetailsProperty>- Returns:
- a new instance of
CfnService.MCPServerDetailsProperty - Throws:
NullPointerException- if any required attribute was not provided
-