Interface GoogleCloudPubSubDestination
- All Superinterfaces:
Destination
Destination for Google Cloud Pub/Sub that can be used for Pull subscriptions as well as for Push subscriptions. The topic must give the pubsub.topics.publish permission to the service account subscriptions@commercetools-platform.iam.gserviceaccount.com. If used with the CloudEventsFormat, the notification conforms to the PubSub Protocol Binding of the Structured Content Mode.
Example to create an instance using the builder pattern
GoogleCloudPubSubDestination googleCloudPubSubDestination = GoogleCloudPubSubDestination.builder()
.projectId("{projectId}")
.topic("{topic}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GoogleCloudPubSubDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GoogleCloudPubSubDestinationbuilder(GoogleCloudPubSubDestination template) create builder for GoogleCloudPubSubDestination instancecopyDeep()static GoogleCloudPubSubDestinationdeepCopy(GoogleCloudPubSubDestination template) factory method to create a deep copy of GoogleCloudPubSubDestination@NotNull StringID of the Google Cloud project that contains the Pub/Sub topic.@NotNull StringgetTopic()Name of the topic.static GoogleCloudPubSubDestinationof()factory methodstatic GoogleCloudPubSubDestinationof(GoogleCloudPubSubDestination template) factory method to create a shallow copy GoogleCloudPubSubDestinationvoidsetProjectId(String projectId) ID of the Google Cloud project that contains the Pub/Sub topic.voidName of the topic.static com.fasterxml.jackson.core.type.TypeReference<GoogleCloudPubSubDestination>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.subscription.Destination
getType, withDestination
-
Field Details
-
GOOGLE_CLOUD_PUB_SUB
discriminator value for GoogleCloudPubSubDestination- See Also:
-
-
Method Details
-
getProjectId
ID of the Google Cloud project that contains the Pub/Sub topic.
- Returns:
- projectId
-
getTopic
Name of the topic.
- Returns:
- topic
-
setProjectId
ID of the Google Cloud project that contains the Pub/Sub topic.
- Parameters:
projectId- value to be set
-
setTopic
Name of the topic.
- Parameters:
topic- value to be set
-
of
factory method- Returns:
- instance of GoogleCloudPubSubDestination
-
of
factory method to create a shallow copy GoogleCloudPubSubDestination- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GoogleCloudPubSubDestination copyDeep()- Specified by:
copyDeepin interfaceDestination
-
deepCopy
@Nullable static GoogleCloudPubSubDestination deepCopy(@Nullable GoogleCloudPubSubDestination template) factory method to create a deep copy of GoogleCloudPubSubDestination- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GoogleCloudPubSubDestination- Returns:
- builder
-
builder
create builder for GoogleCloudPubSubDestination instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGoogleCloudPubSubDestination
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-