Class ZoneResourceIdentifierBuilder

java.lang.Object
com.commercetools.api.models.zone.ZoneResourceIdentifierBuilder
All Implemented Interfaces:
Builder<ZoneResourceIdentifier>

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

     ZoneResourceIdentifier zoneResourceIdentifier = ZoneResourceIdentifier.builder()
             .build()
 
  • Constructor Details

    • ZoneResourceIdentifierBuilder

      public ZoneResourceIdentifierBuilder()
  • Method Details

    • id

      Unique identifier of the referenced Zone. Required if key is absent.

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

      User-defined unique identifier of the referenced Zone. Required if id is absent.

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

      @Nullable public String getId()

      Unique identifier of the referenced Zone. Required if key is absent.

      Returns:
      id
    • getKey

      @Nullable public String getKey()

      User-defined unique identifier of the referenced Zone. Required if id is absent.

      Returns:
      key
    • build

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

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

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

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