Class GoogleCloudPubSubDestinationImpl
java.lang.Object
com.commercetools.api.models.subscription.GoogleCloudPubSubDestinationImpl
- All Implemented Interfaces:
Destination
,GoogleCloudPubSubDestination
,io.vrap.rmf.base.client.ModelBase
public class GoogleCloudPubSubDestinationImpl
extends Object
implements GoogleCloudPubSubDestination, io.vrap.rmf.base.client.ModelBase
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 [email protected]
. If used with the CloudEventsFormat, the message conforms to the PubSub Protocol Binding of the Structured Content Mode.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.subscription.GoogleCloudPubSubDestination
GOOGLE_CLOUD_PUB_SUB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ID of the Google Cloud project that contains the Pub/Sub topic.getTopic()
Name of the topic.getType()
int
hashCode()
void
setProjectId
(String projectId) ID of the Google Cloud project that contains the Pub/Sub topic.void
Name of the topic.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.subscription.Destination
withDestination
Methods inherited from interface com.commercetools.api.models.subscription.GoogleCloudPubSubDestination
withGoogleCloudPubSubDestination
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GoogleCloudPubSubDestinationImpl
public GoogleCloudPubSubDestinationImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceDestination
- Returns:
- type
-
getProjectId
ID of the Google Cloud project that contains the Pub/Sub topic.
- Specified by:
getProjectId
in interfaceGoogleCloudPubSubDestination
- Returns:
- projectId
-
getTopic
Name of the topic.
- Specified by:
getTopic
in interfaceGoogleCloudPubSubDestination
- Returns:
- topic
-
setProjectId
Description copied from interface:GoogleCloudPubSubDestination
ID of the Google Cloud project that contains the Pub/Sub topic.
- Specified by:
setProjectId
in interfaceGoogleCloudPubSubDestination
- Parameters:
projectId
- value to be set
-
setTopic
Description copied from interface:GoogleCloudPubSubDestination
Name of the topic.
- Specified by:
setTopic
in interfaceGoogleCloudPubSubDestination
- Parameters:
topic
- value to be set
-
equals
-
hashCode
public int hashCode()
-