Class UpdateDeliveryMethodOptions.Builder

  • Enclosing class:
    UpdateDeliveryMethodOptions

    public static class UpdateDeliveryMethodOptions.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String catalogId,
                       java.lang.String deliveryMethodId,
                       java.util.List<JsonPatchOperation> jsonPatchOperation)
        Instantiates a new builder with required properties.
        Parameters:
        catalogId - the catalogId
        deliveryMethodId - the deliveryMethodId
        jsonPatchOperation - the jsonPatchOperation
    • Method Detail

      • build

        public UpdateDeliveryMethodOptions build()
        Builds a UpdateDeliveryMethodOptions.
        Returns:
        the new UpdateDeliveryMethodOptions instance
      • addJsonPatchOperation

        public UpdateDeliveryMethodOptions.Builder addJsonPatchOperation​(JsonPatchOperation jsonPatchOperation)
        Adds a new element to jsonPatchOperation.
        Parameters:
        jsonPatchOperation - the new element to be added
        Returns:
        the UpdateDeliveryMethodOptions builder
      • catalogId

        public UpdateDeliveryMethodOptions.Builder catalogId​(java.lang.String catalogId)
        Set the catalogId.
        Parameters:
        catalogId - the catalogId
        Returns:
        the UpdateDeliveryMethodOptions builder
      • deliveryMethodId

        public UpdateDeliveryMethodOptions.Builder deliveryMethodId​(java.lang.String deliveryMethodId)
        Set the deliveryMethodId.
        Parameters:
        deliveryMethodId - the deliveryMethodId
        Returns:
        the UpdateDeliveryMethodOptions builder
      • jsonPatchOperation

        public UpdateDeliveryMethodOptions.Builder jsonPatchOperation​(java.util.List<JsonPatchOperation> jsonPatchOperation)
        Set the jsonPatchOperation. Existing jsonPatchOperation will be replaced.
        Parameters:
        jsonPatchOperation - the jsonPatchOperation
        Returns:
        the UpdateDeliveryMethodOptions builder