Class GoogleCloudPubSubDestinationBuilder

java.lang.Object
com.commercetools.api.models.subscription.GoogleCloudPubSubDestinationBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<GoogleCloudPubSubDestination>

public class GoogleCloudPubSubDestinationBuilder extends Object implements io.vrap.rmf.base.client.Builder<GoogleCloudPubSubDestination>
GoogleCloudPubSubDestinationBuilder
Example to create an instance using the builder pattern

     GoogleCloudPubSubDestination googleCloudPubSubDestination = GoogleCloudPubSubDestination.builder()
             .projectId("{projectId}")
             .topic("{topic}")
             .build()
 
  • Constructor Details

    • GoogleCloudPubSubDestinationBuilder

      public GoogleCloudPubSubDestinationBuilder()
  • Method Details

    • projectId

      public GoogleCloudPubSubDestinationBuilder projectId(String 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

      public String getProjectId()

      ID of the Google Cloud project that contains the Pub/Sub topic.

      Returns:
      projectId
    • getTopic

      public String getTopic()

      Name of the topic.

      Returns:
      topic
    • build

      builds GoogleCloudPubSubDestination with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<GoogleCloudPubSubDestination>
      Returns:
      GoogleCloudPubSubDestination
    • buildUnchecked

      public 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