Class CreateDataProductDraftOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.dpx_services.dpx.v1.model.CreateDataProductDraftOptions.Builder
-
- Enclosing class:
- CreateDataProductDraftOptions
public static class CreateDataProductDraftOptions.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(java.lang.String dataProductId, AssetReference asset)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(java.lang.String dataProductId, AssetReference asset)
Instantiates a new builder with required properties.- Parameters:
dataProductId
- the dataProductIdasset
- the asset
-
-
Method Detail
-
build
public CreateDataProductDraftOptions build()
Builds a CreateDataProductDraftOptions.- Returns:
- the new CreateDataProductDraftOptions instance
-
addTags
public CreateDataProductDraftOptions.Builder addTags(java.lang.String tags)
Adds a new element to tags.- Parameters:
tags
- the new element to be added- Returns:
- the CreateDataProductDraftOptions builder
-
addUseCases
public CreateDataProductDraftOptions.Builder addUseCases(UseCase useCases)
Adds a new element to useCases.- Parameters:
useCases
- the new element to be added- Returns:
- the CreateDataProductDraftOptions builder
-
addTypes
public CreateDataProductDraftOptions.Builder addTypes(java.lang.String types)
Adds a new element to types.- Parameters:
types
- the new element to be added- Returns:
- the CreateDataProductDraftOptions builder
-
addPartsOut
public CreateDataProductDraftOptions.Builder addPartsOut(DataProductPart partsOut)
Adds a new element to partsOut.- Parameters:
partsOut
- the new element to be added- Returns:
- the CreateDataProductDraftOptions builder
-
addContractTerms
public CreateDataProductDraftOptions.Builder addContractTerms(DataProductContractTerms contractTerms)
Adds a new element to contractTerms.- Parameters:
contractTerms
- the new element to be added- Returns:
- the CreateDataProductDraftOptions builder
-
dataProductId
public CreateDataProductDraftOptions.Builder dataProductId(java.lang.String dataProductId)
Set the dataProductId.- Parameters:
dataProductId
- the dataProductId- Returns:
- the CreateDataProductDraftOptions builder
-
asset
public CreateDataProductDraftOptions.Builder asset(AssetReference asset)
Set the asset.- Parameters:
asset
- the asset- Returns:
- the CreateDataProductDraftOptions builder
-
version
public CreateDataProductDraftOptions.Builder version(java.lang.String version)
Set the version.- Parameters:
version
- the version- Returns:
- the CreateDataProductDraftOptions builder
-
state
public CreateDataProductDraftOptions.Builder state(java.lang.String state)
Set the state.- Parameters:
state
- the state- Returns:
- the CreateDataProductDraftOptions builder
-
dataProduct
public CreateDataProductDraftOptions.Builder dataProduct(DataProductIdentity dataProduct)
Set the dataProduct.- Parameters:
dataProduct
- the dataProduct- Returns:
- the CreateDataProductDraftOptions builder
-
name
public CreateDataProductDraftOptions.Builder name(java.lang.String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateDataProductDraftOptions builder
-
description
public CreateDataProductDraftOptions.Builder description(java.lang.String description)
Set the description.- Parameters:
description
- the description- Returns:
- the CreateDataProductDraftOptions builder
-
tags
public CreateDataProductDraftOptions.Builder tags(java.util.List<java.lang.String> tags)
Set the tags. Existing tags will be replaced.- Parameters:
tags
- the tags- Returns:
- the CreateDataProductDraftOptions builder
-
useCases
public CreateDataProductDraftOptions.Builder useCases(java.util.List<UseCase> useCases)
Set the useCases. Existing useCases will be replaced.- Parameters:
useCases
- the useCases- Returns:
- the CreateDataProductDraftOptions builder
-
domain
public CreateDataProductDraftOptions.Builder domain(Domain domain)
Set the domain.- Parameters:
domain
- the domain- Returns:
- the CreateDataProductDraftOptions builder
-
types
public CreateDataProductDraftOptions.Builder types(java.util.List<java.lang.String> types)
Set the types. Existing types will be replaced.- Parameters:
types
- the types- Returns:
- the CreateDataProductDraftOptions builder
-
partsOut
public CreateDataProductDraftOptions.Builder partsOut(java.util.List<DataProductPart> partsOut)
Set the partsOut. Existing partsOut will be replaced.- Parameters:
partsOut
- the partsOut- Returns:
- the CreateDataProductDraftOptions builder
-
contractTerms
public CreateDataProductDraftOptions.Builder contractTerms(java.util.List<DataProductContractTerms> contractTerms)
Set the contractTerms. Existing contractTerms will be replaced.- Parameters:
contractTerms
- the contractTerms- Returns:
- the CreateDataProductDraftOptions builder
-
isRestricted
public CreateDataProductDraftOptions.Builder isRestricted(java.lang.Boolean isRestricted)
Set the isRestricted.- Parameters:
isRestricted
- the isRestricted- Returns:
- the CreateDataProductDraftOptions builder
-
-