Class ContractSchemaRelationship.Builder
- java.lang.Object
-
- com.ibm.cloud.dph_services.dph.v1.model.ContractSchemaRelationship.Builder
-
- Enclosing class:
- ContractSchemaRelationship
public static class ContractSchemaRelationship.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractSchemaRelationship.BuilderaddCustomProperties(ContractTemplateCustomProperty customProperties)Adds a new element to customProperties.ContractSchemaRelationship.BuilderaddFrom(java.lang.String from)Adds a new element to from.ContractSchemaRelationship.BuilderaddTo(java.lang.String to)Adds a new element to to.ContractSchemaRelationshipbuild()Builds a ContractSchemaRelationship.ContractSchemaRelationship.BuildercustomProperties(java.util.List<ContractTemplateCustomProperty> customProperties)Set the customProperties.ContractSchemaRelationship.Builderfrom(java.util.List<java.lang.String> from)Set the from.ContractSchemaRelationship.Builderto(java.util.List<java.lang.String> to)Set the to.ContractSchemaRelationship.Buildertype(java.lang.String type)Set the type.
-
-
-
Method Detail
-
build
public ContractSchemaRelationship build()
Builds a ContractSchemaRelationship.- Returns:
- the new ContractSchemaRelationship instance
-
addFrom
public ContractSchemaRelationship.Builder addFrom(java.lang.String from)
Adds a new element to from.- Parameters:
from- the new element to be added- Returns:
- the ContractSchemaRelationship builder
-
addTo
public ContractSchemaRelationship.Builder addTo(java.lang.String to)
Adds a new element to to.- Parameters:
to- the new element to be added- Returns:
- the ContractSchemaRelationship builder
-
addCustomProperties
public ContractSchemaRelationship.Builder addCustomProperties(ContractTemplateCustomProperty customProperties)
Adds a new element to customProperties.- Parameters:
customProperties- the new element to be added- Returns:
- the ContractSchemaRelationship builder
-
type
public ContractSchemaRelationship.Builder type(java.lang.String type)
Set the type.- Parameters:
type- the type- Returns:
- the ContractSchemaRelationship builder
-
from
public ContractSchemaRelationship.Builder from(java.util.List<java.lang.String> from)
Set the from. Existing from will be replaced.- Parameters:
from- the from- Returns:
- the ContractSchemaRelationship builder
-
to
public ContractSchemaRelationship.Builder to(java.util.List<java.lang.String> to)
Set the to. Existing to will be replaced.- Parameters:
to- the to- Returns:
- the ContractSchemaRelationship builder
-
customProperties
public ContractSchemaRelationship.Builder customProperties(java.util.List<ContractTemplateCustomProperty> customProperties)
Set the customProperties. Existing customProperties will be replaced.- Parameters:
customProperties- the customProperties- Returns:
- the ContractSchemaRelationship builder
-
-