Class AzureServiceBusDestinationBuilder

java.lang.Object
com.commercetools.api.models.subscription.AzureServiceBusDestinationBuilder
All Implemented Interfaces:
Builder<AzureServiceBusDestination>

public class AzureServiceBusDestinationBuilder extends Object implements Builder<AzureServiceBusDestination>
AzureServiceBusDestinationBuilder
Example to create an instance using the builder pattern

     AzureServiceBusDestination azureServiceBusDestination = AzureServiceBusDestination.builder()
             .connectionString("{connectionString}")
             .build()
 
  • Constructor Details

    • AzureServiceBusDestinationBuilder

      public AzureServiceBusDestinationBuilder()
  • Method Details

    • connectionString

      public AzureServiceBusDestinationBuilder connectionString(String connectionString)

      SharedAccessKey is partially hidden on retrieval for security reasons.

      Parameters:
      connectionString - value to be set
      Returns:
      Builder
    • getConnectionString

      public String getConnectionString()

      SharedAccessKey is partially hidden on retrieval for security reasons.

      Returns:
      connectionString
    • build

      builds AzureServiceBusDestination with checking for non-null required values
      Specified by:
      build in interface Builder<AzureServiceBusDestination>
      Returns:
      AzureServiceBusDestination
    • buildUnchecked

      public AzureServiceBusDestination buildUnchecked()
      builds AzureServiceBusDestination without checking for non-null required values
      Returns:
      AzureServiceBusDestination
    • of

      factory method for an instance of AzureServiceBusDestinationBuilder
      Returns:
      builder
    • of

      create builder for AzureServiceBusDestination instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder