Class UpdateDraftContractTermsDocumentOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.dpx_services.dpx.v1.model.UpdateDraftContractTermsDocumentOptions.Builder
-
- Enclosing class:
- UpdateDraftContractTermsDocumentOptions
public static class UpdateDraftContractTermsDocumentOptions.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.lang.String contractTermsId, java.lang.String documentId, 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 UpdateDraftContractTermsDocumentOptions.Builder
addJsonPatchInstructions(JsonPatchOperation jsonPatchInstructions)
Adds a new element to jsonPatchInstructions.UpdateDraftContractTermsDocumentOptions
build()
Builds a UpdateDraftContractTermsDocumentOptions.UpdateDraftContractTermsDocumentOptions.Builder
contractTermsId(java.lang.String contractTermsId)
Set the contractTermsId.UpdateDraftContractTermsDocumentOptions.Builder
dataProductId(java.lang.String dataProductId)
Set the dataProductId.UpdateDraftContractTermsDocumentOptions.Builder
documentId(java.lang.String documentId)
Set the documentId.UpdateDraftContractTermsDocumentOptions.Builder
draftId(java.lang.String draftId)
Set the draftId.UpdateDraftContractTermsDocumentOptions.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.lang.String contractTermsId, java.lang.String documentId, java.util.List<JsonPatchOperation> jsonPatchInstructions)
Instantiates a new builder with required properties.- Parameters:
dataProductId
- the dataProductIddraftId
- the draftIdcontractTermsId
- the contractTermsIddocumentId
- the documentIdjsonPatchInstructions
- the jsonPatchInstructions
-
-
Method Detail
-
build
public UpdateDraftContractTermsDocumentOptions build()
Builds a UpdateDraftContractTermsDocumentOptions.- Returns:
- the new UpdateDraftContractTermsDocumentOptions instance
-
addJsonPatchInstructions
public UpdateDraftContractTermsDocumentOptions.Builder addJsonPatchInstructions(JsonPatchOperation jsonPatchInstructions)
Adds a new element to jsonPatchInstructions.- Parameters:
jsonPatchInstructions
- the new element to be added- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
dataProductId
public UpdateDraftContractTermsDocumentOptions.Builder dataProductId(java.lang.String dataProductId)
Set the dataProductId.- Parameters:
dataProductId
- the dataProductId- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
draftId
public UpdateDraftContractTermsDocumentOptions.Builder draftId(java.lang.String draftId)
Set the draftId.- Parameters:
draftId
- the draftId- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
contractTermsId
public UpdateDraftContractTermsDocumentOptions.Builder contractTermsId(java.lang.String contractTermsId)
Set the contractTermsId.- Parameters:
contractTermsId
- the contractTermsId- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
documentId
public UpdateDraftContractTermsDocumentOptions.Builder documentId(java.lang.String documentId)
Set the documentId.- Parameters:
documentId
- the documentId- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
jsonPatchInstructions
public UpdateDraftContractTermsDocumentOptions.Builder jsonPatchInstructions(java.util.List<JsonPatchOperation> jsonPatchInstructions)
Set the jsonPatchInstructions. Existing jsonPatchInstructions will be replaced.- Parameters:
jsonPatchInstructions
- the jsonPatchInstructions- Returns:
- the UpdateDraftContractTermsDocumentOptions builder
-
-