Class DataProductPart.Builder
- java.lang.Object
-
- com.ibm.cloud.dpx_services.dpx.v1.model.DataProductPart.Builder
-
- Enclosing class:
- DataProductPart
public static class DataProductPart.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(AssetPartReference asset)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataProductPart.Builder
addDeliveryMethods(DeliveryMethod deliveryMethods)
Adds a new element to deliveryMethods.DataProductPart.Builder
asset(AssetPartReference asset)
Set the asset.DataProductPart
build()
Builds a DataProductPart.DataProductPart.Builder
deliveryMethods(java.util.List<DeliveryMethod> deliveryMethods)
Set the deliveryMethods.DataProductPart.Builder
revision(long revision)
Set the revision.DataProductPart.Builder
updatedAt(java.util.Date updatedAt)
Set the updatedAt.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(AssetPartReference asset)
Instantiates a new builder with required properties.- Parameters:
asset
- the asset
-
-
Method Detail
-
build
public DataProductPart build()
Builds a DataProductPart.- Returns:
- the new DataProductPart instance
-
addDeliveryMethods
public DataProductPart.Builder addDeliveryMethods(DeliveryMethod deliveryMethods)
Adds a new element to deliveryMethods.- Parameters:
deliveryMethods
- the new element to be added- Returns:
- the DataProductPart builder
-
asset
public DataProductPart.Builder asset(AssetPartReference asset)
Set the asset.- Parameters:
asset
- the asset- Returns:
- the DataProductPart builder
-
revision
public DataProductPart.Builder revision(long revision)
Set the revision.- Parameters:
revision
- the revision- Returns:
- the DataProductPart builder
-
updatedAt
public DataProductPart.Builder updatedAt(java.util.Date updatedAt)
Set the updatedAt.- Parameters:
updatedAt
- the updatedAt- Returns:
- the DataProductPart builder
-
deliveryMethods
public DataProductPart.Builder deliveryMethods(java.util.List<DeliveryMethod> deliveryMethods)
Set the deliveryMethods. Existing deliveryMethods will be replaced.- Parameters:
deliveryMethods
- the deliveryMethods- Returns:
- the DataProductPart builder
-
-