Class StoreResourceIdentifierBuilder

java.lang.Object
com.commercetools.api.models.store.StoreResourceIdentifierBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StoreResourceIdentifier>

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

     StoreResourceIdentifier storeResourceIdentifier = StoreResourceIdentifier.builder()
             .build()
 
  • Constructor Details

    • StoreResourceIdentifierBuilder

      public StoreResourceIdentifierBuilder()
  • Method Details

    • id

      Unique ID of the referenced Store. Either id or key is required.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • key

      Unique key of the referenced Store. Either id or key is required.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getId

      @Nullable public String getId()

      Unique ID of the referenced Store. Either id or key is required.

      Returns:
      id
    • getKey

      @Nullable public String getKey()

      Unique key of the referenced Store. Either id or key is required.

      Returns:
      key
    • build

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

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

      public static StoreResourceIdentifierBuilder of()
      factory method for an instance of StoreResourceIdentifierBuilder
      Returns:
      builder
    • of

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