Package com.commercetools.api.client
Class ByProjectKeyMcpServersPostString
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyMcpServersPostString,McpServer>
com.commercetools.api.client.ByProjectKeyMcpServersPostString
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyMcpServersPostString>,ClientRequestCommand<McpServer>,CreateHttpRequestCommand,HttpRequestCommand<McpServer>,RequestCommand<McpServer>
public class ByProjectKeyMcpServersPostString
extends StringBodyApiMethod<ByProjectKeyMcpServersPostString,McpServer>
implements ErrorableTrait<ByProjectKeyMcpServersPostString>
Creates a new MCP Server for the Project.
Specific Error Codes:
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.mcp_server.McpServer>> result = apiRoot
.withProjectKey("{projectKey}")
.mcpServers()
.post("")
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyMcpServersPostString(ApiHttpClient apiHttpClient, String projectKey, String mcpServerDraft) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getBody()inthashCode()inttools.jackson.core.type.TypeReference<McpServer>voidsetProjectKey(String projectKey) toString()Methods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyMcpServersPostString
public ByProjectKeyMcpServersPostString(ApiHttpClient apiHttpClient, String projectKey, String mcpServerDraft) -
ByProjectKeyMcpServersPostString
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<McpServer>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<McpServer>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyMcpServersPostString,McpServer>
-
execute
- Specified by:
executein interfaceClientRequestCommand<McpServer>- Specified by:
executein classApiMethod<ByProjectKeyMcpServersPostString,McpServer>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBodyin classStringBodyApiMethod<ByProjectKeyMcpServersPostString,McpServer>
-
withBody
- Overrides:
withBodyin classStringBodyApiMethod<ByProjectKeyMcpServersPostString,McpServer>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-