Package com.commercetools.api.client
Class ByProjectKeyMcpServersPost
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<ByProjectKeyMcpServersPost,McpServer,McpServerDraft>
com.commercetools.api.client.ByProjectKeyMcpServersPost
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyMcpServersPost>,ClientRequestCommand<McpServer>,CreateHttpRequestCommand,HttpRequestCommand<McpServer>,RequestCommand<McpServer>
public class ByProjectKeyMcpServersPost
extends TypeBodyApiMethod<ByProjectKeyMcpServersPost,McpServer,McpServerDraft>
implements ErrorableTrait<ByProjectKeyMcpServersPost>
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(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyMcpServersPost(ApiHttpClient apiHttpClient, String projectKey, McpServerDraft 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()withBody(McpServerDraft mcpServerDraft) 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
-
ByProjectKeyMcpServersPost
public ByProjectKeyMcpServersPost(ApiHttpClient apiHttpClient, String projectKey, McpServerDraft mcpServerDraft) -
ByProjectKeyMcpServersPost
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<McpServer>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<McpServer>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyMcpServersPost,McpServer>
-
execute
- Specified by:
executein interfaceClientRequestCommand<McpServer>- Specified by:
executein classApiMethod<ByProjectKeyMcpServersPost,McpServer>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBodyin classTypeBodyApiMethod<ByProjectKeyMcpServersPost,McpServer, McpServerDraft>
-
withBody
- Overrides:
withBodyin classTypeBodyApiMethod<ByProjectKeyMcpServersPost,McpServer, McpServerDraft>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-