Class GoogleCloudPubSubDestinationBuilder
java.lang.Object
com.commercetools.api.models.subscription.GoogleCloudPubSubDestinationBuilder
- All Implemented Interfaces:
Builder<GoogleCloudPubSubDestination>
public class GoogleCloudPubSubDestinationBuilder
extends Object
implements Builder<GoogleCloudPubSubDestination>
GoogleCloudPubSubDestinationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GoogleCloudPubSubDestination googleCloudPubSubDestination = GoogleCloudPubSubDestination.builder()
.projectId("{projectId}")
.topic("{topic}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds GoogleCloudPubSubDestination with checking for non-null required valuesbuilds GoogleCloudPubSubDestination without checking for non-null required valuesID of the Google Cloud project that contains the Pub/Sub topic.getTopic()
Name of the topic.of()
factory method for an instance of GoogleCloudPubSubDestinationBuilderof
(GoogleCloudPubSubDestination template) create builder for GoogleCloudPubSubDestination instanceID of the Google Cloud project that contains the Pub/Sub topic.Name of the topic.
-
Constructor Details
-
GoogleCloudPubSubDestinationBuilder
public GoogleCloudPubSubDestinationBuilder()
-
-
Method Details
-
projectId
ID of the Google Cloud project that contains the Pub/Sub topic.
- Parameters:
projectId
- value to be set- Returns:
- Builder
-
topic
Name of the topic.
- Parameters:
topic
- value to be set- Returns:
- Builder
-
getProjectId
ID of the Google Cloud project that contains the Pub/Sub topic.
- Returns:
- projectId
-
getTopic
Name of the topic.
- Returns:
- topic
-
build
builds GoogleCloudPubSubDestination with checking for non-null required values- Specified by:
build
in interfaceBuilder<GoogleCloudPubSubDestination>
- Returns:
- GoogleCloudPubSubDestination
-
buildUnchecked
builds GoogleCloudPubSubDestination without checking for non-null required values- Returns:
- GoogleCloudPubSubDestination
-
of
factory method for an instance of GoogleCloudPubSubDestinationBuilder- Returns:
- builder
-
of
create builder for GoogleCloudPubSubDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-