Class ContractTerms.Builder
- java.lang.Object
-
- com.ibm.cloud.dph_services.dph.v1.model.ContractTerms.Builder
-
- Enclosing class:
- ContractTerms
public static class ContractTerms.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
-
-
-
Method Detail
-
build
public ContractTerms build()
Builds a ContractTerms.- Returns:
- the new ContractTerms instance
-
addDocuments
public ContractTerms.Builder addDocuments(ContractTermsDocument documents)
Adds a new element to documents.- Parameters:
documents
- the new element to be added- Returns:
- the ContractTerms builder
-
addOrganization
public ContractTerms.Builder addOrganization(ContractTemplateOrganization organization)
Adds a new element to organization.- Parameters:
organization
- the new element to be added- Returns:
- the ContractTerms builder
-
addRoles
public ContractTerms.Builder addRoles(Roles roles)
Adds a new element to roles.- Parameters:
roles
- the new element to be added- Returns:
- the ContractTerms builder
-
addSla
public ContractTerms.Builder addSla(ContractTemplateSLA sla)
Adds a new element to sla.- Parameters:
sla
- the new element to be added- Returns:
- the ContractTerms builder
-
addSupportAndCommunication
public ContractTerms.Builder addSupportAndCommunication(ContractTemplateSupportAndCommunication supportAndCommunication)
Adds a new element to supportAndCommunication.- Parameters:
supportAndCommunication
- the new element to be added- Returns:
- the ContractTerms builder
-
addCustomProperties
public ContractTerms.Builder addCustomProperties(ContractTemplateCustomProperty customProperties)
Adds a new element to customProperties.- Parameters:
customProperties
- the new element to be added- Returns:
- the ContractTerms builder
-
addSchema
public ContractTerms.Builder addSchema(ContractSchema schema)
Adds a new element to schema.- Parameters:
schema
- the new element to be added- Returns:
- the ContractTerms builder
-
asset
public ContractTerms.Builder asset(AssetReference asset)
Set the asset.- Parameters:
asset
- the asset- Returns:
- the ContractTerms builder
-
id
public ContractTerms.Builder id(java.lang.String id)
Set the id.- Parameters:
id
- the id- Returns:
- the ContractTerms builder
-
documents
public ContractTerms.Builder documents(java.util.List<ContractTermsDocument> documents)
Set the documents. Existing documents will be replaced.- Parameters:
documents
- the documents- Returns:
- the ContractTerms builder
-
errorMsg
public ContractTerms.Builder errorMsg(java.lang.String errorMsg)
Set the errorMsg.- Parameters:
errorMsg
- the errorMsg- Returns:
- the ContractTerms builder
-
overview
public ContractTerms.Builder overview(Overview overview)
Set the overview.- Parameters:
overview
- the overview- Returns:
- the ContractTerms builder
-
description
public ContractTerms.Builder description(Description description)
Set the description.- Parameters:
description
- the description- Returns:
- the ContractTerms builder
-
organization
public ContractTerms.Builder organization(java.util.List<ContractTemplateOrganization> organization)
Set the organization. Existing organization will be replaced.- Parameters:
organization
- the organization- Returns:
- the ContractTerms builder
-
roles
public ContractTerms.Builder roles(java.util.List<Roles> roles)
Set the roles. Existing roles will be replaced.- Parameters:
roles
- the roles- Returns:
- the ContractTerms builder
-
price
public ContractTerms.Builder price(Pricing price)
Set the price.- Parameters:
price
- the price- Returns:
- the ContractTerms builder
-
sla
public ContractTerms.Builder sla(java.util.List<ContractTemplateSLA> sla)
Set the sla. Existing sla will be replaced.- Parameters:
sla
- the sla- Returns:
- the ContractTerms builder
-
supportAndCommunication
public ContractTerms.Builder supportAndCommunication(java.util.List<ContractTemplateSupportAndCommunication> supportAndCommunication)
Set the supportAndCommunication. Existing supportAndCommunication will be replaced.- Parameters:
supportAndCommunication
- the supportAndCommunication- Returns:
- the ContractTerms builder
-
customProperties
public ContractTerms.Builder customProperties(java.util.List<ContractTemplateCustomProperty> customProperties)
Set the customProperties. Existing customProperties will be replaced.- Parameters:
customProperties
- the customProperties- Returns:
- the ContractTerms builder
-
contractTest
public ContractTerms.Builder contractTest(ContractTest contractTest)
Set the contractTest.- Parameters:
contractTest
- the contractTest- Returns:
- the ContractTerms builder
-
schema
public ContractTerms.Builder schema(java.util.List<ContractSchema> schema)
Set the schema. Existing schema will be replaced.- Parameters:
schema
- the schema- Returns:
- the ContractTerms builder
-
-