Class UpdateDataProductDraftOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.dpx_services.dpx.v1.model.UpdateDataProductDraftOptions.Builder
-
- Enclosing class:
- UpdateDataProductDraftOptions
public static class UpdateDataProductDraftOptions.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(java.lang.String dataProductId, java.lang.String draftId, java.util.List<JsonPatchOperation> jsonPatchInstructions)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateDataProductDraftOptions.Builder
addJsonPatchInstructions(JsonPatchOperation jsonPatchInstructions)
Adds a new element to jsonPatchInstructions.UpdateDataProductDraftOptions
build()
Builds a UpdateDataProductDraftOptions.UpdateDataProductDraftOptions.Builder
dataProductId(java.lang.String dataProductId)
Set the dataProductId.UpdateDataProductDraftOptions.Builder
draftId(java.lang.String draftId)
Set the draftId.UpdateDataProductDraftOptions.Builder
jsonPatchInstructions(java.util.List<JsonPatchOperation> jsonPatchInstructions)
Set the jsonPatchInstructions.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(java.lang.String dataProductId, java.lang.String draftId, java.util.List<JsonPatchOperation> jsonPatchInstructions)
Instantiates a new builder with required properties.- Parameters:
dataProductId
- the dataProductIddraftId
- the draftIdjsonPatchInstructions
- the jsonPatchInstructions
-
-
Method Detail
-
build
public UpdateDataProductDraftOptions build()
Builds a UpdateDataProductDraftOptions.- Returns:
- the new UpdateDataProductDraftOptions instance
-
addJsonPatchInstructions
public UpdateDataProductDraftOptions.Builder addJsonPatchInstructions(JsonPatchOperation jsonPatchInstructions)
Adds a new element to jsonPatchInstructions.- Parameters:
jsonPatchInstructions
- the new element to be added- Returns:
- the UpdateDataProductDraftOptions builder
-
dataProductId
public UpdateDataProductDraftOptions.Builder dataProductId(java.lang.String dataProductId)
Set the dataProductId.- Parameters:
dataProductId
- the dataProductId- Returns:
- the UpdateDataProductDraftOptions builder
-
draftId
public UpdateDataProductDraftOptions.Builder draftId(java.lang.String draftId)
Set the draftId.- Parameters:
draftId
- the draftId- Returns:
- the UpdateDataProductDraftOptions builder
-
jsonPatchInstructions
public UpdateDataProductDraftOptions.Builder jsonPatchInstructions(java.util.List<JsonPatchOperation> jsonPatchInstructions)
Set the jsonPatchInstructions. Existing jsonPatchInstructions will be replaced.- Parameters:
jsonPatchInstructions
- the jsonPatchInstructions- Returns:
- the UpdateDataProductDraftOptions builder
-
-