Class DataProductContractTerms.Builder
- java.lang.Object
-
- com.ibm.cloud.dpx_services.dpx.v1.model.DataProductContractTerms.Builder
-
- Enclosing class:
- DataProductContractTerms
public static class DataProductContractTerms.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataProductContractTerms.Builder
addDocuments(ContractTermsDocument documents)
Adds a new element to documents.DataProductContractTerms.Builder
asset(AssetReference asset)
Set the asset.DataProductContractTerms
build()
Builds a DataProductContractTerms.DataProductContractTerms.Builder
documents(java.util.List<ContractTermsDocument> documents)
Set the documents.DataProductContractTerms.Builder
id(java.lang.String id)
Set the id.
-
-
-
Method Detail
-
build
public DataProductContractTerms build()
Builds a DataProductContractTerms.- Returns:
- the new DataProductContractTerms instance
-
addDocuments
public DataProductContractTerms.Builder addDocuments(ContractTermsDocument documents)
Adds a new element to documents.- Parameters:
documents
- the new element to be added- Returns:
- the DataProductContractTerms builder
-
asset
public DataProductContractTerms.Builder asset(AssetReference asset)
Set the asset.- Parameters:
asset
- the asset- Returns:
- the DataProductContractTerms builder
-
id
public DataProductContractTerms.Builder id(java.lang.String id)
Set the id.- Parameters:
id
- the id- Returns:
- the DataProductContractTerms builder
-
documents
public DataProductContractTerms.Builder documents(java.util.List<ContractTermsDocument> documents)
Set the documents. Existing documents will be replaced.- Parameters:
documents
- the documents- Returns:
- the DataProductContractTerms builder
-
-