Class UpdateDeliveryMethodOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.dph_services.dph.v1.model.UpdateDeliveryMethodOptions.Builder
-
- Enclosing class:
- UpdateDeliveryMethodOptions
public static class UpdateDeliveryMethodOptions.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(java.lang.String catalogId, java.lang.String deliveryMethodId, java.util.List<JsonPatchOperation> jsonPatchOperation)Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateDeliveryMethodOptions.BuilderaddJsonPatchOperation(JsonPatchOperation jsonPatchOperation)Adds a new element to jsonPatchOperation.UpdateDeliveryMethodOptionsbuild()Builds a UpdateDeliveryMethodOptions.UpdateDeliveryMethodOptions.BuildercatalogId(java.lang.String catalogId)Set the catalogId.UpdateDeliveryMethodOptions.BuilderdeliveryMethodId(java.lang.String deliveryMethodId)Set the deliveryMethodId.UpdateDeliveryMethodOptions.BuilderjsonPatchOperation(java.util.List<JsonPatchOperation> jsonPatchOperation)Set the jsonPatchOperation.
-
-
-
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 catalogIddeliveryMethodId- the deliveryMethodIdjsonPatchOperation- 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
-
-