Package com.commercetools.api.client
Class ByProjectKeySubscriptionsPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeySubscriptionsPost,Subscription,SubscriptionDraft>
com.commercetools.api.client.ByProjectKeySubscriptionsPost
- All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeySubscriptionsPost>
,ErrorableTrait<ByProjectKeySubscriptionsPost>
,io.vrap.rmf.base.client.ClientRequestCommand<Subscription>
,io.vrap.rmf.base.client.CreateHttpRequestCommand
,io.vrap.rmf.base.client.RequestCommand<Subscription>
public class ByProjectKeySubscriptionsPost
extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeySubscriptionsPost,Subscription,SubscriptionDraft>
implements Deprecatable201Trait<ByProjectKeySubscriptionsPost>, ErrorableTrait<ByProjectKeySubscriptionsPost>
A test message is sent to ensure the correct configuration of the Destination. If the message cannot be delivered, the Subscription will not be created. The payload of the test message is a notification of type ResourceCreated for the resourceTypeId
subscription
.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.subscription.Subscription>> result = apiRoot
.withProjectKey("{projectKey}")
.subscriptions()
.post(null)
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionByProjectKeySubscriptionsPost
(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, SubscriptionDraft subscriptionDraft) -
Method Summary
Modifier and TypeMethodDescriptionboolean
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Subscription>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<Subscription>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
void
setProjectKey
(String projectKey) toString()
withBody
(SubscriptionDraft subscriptionDraft) 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, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface com.commercetools.api.client.Deprecatable201Trait
asDeprecatable201Trait, asDeprecatable201TraitToBaseType
Methods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeySubscriptionsPost
public ByProjectKeySubscriptionsPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, SubscriptionDraft subscriptionDraft) -
ByProjectKeySubscriptionsPost
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<Subscription> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<Subscription>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeySubscriptionsPost,
Subscription>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Subscription>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<Subscription>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeySubscriptionsPost,
Subscription>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeySubscriptionsPost,
Subscription, SubscriptionDraft>
-
withBody
- Overrides:
withBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeySubscriptionsPost,
Subscription, SubscriptionDraft>
-
equals
-
hashCode
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-