public static class Relationship.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(Map<String,Object> attributes)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
Relationship.Builder |
attributes(Map<String,Object> attributes)
Set the attributes.
|
Relationship |
build()
Builds a Relationship.
|
Relationship.Builder |
fromRecordId(String fromRecordId)
Set the fromRecordId.
|
Relationship.Builder |
fromRecordNumber(String fromRecordNumber)
Set the fromRecordNumber.
|
Relationship.Builder |
fromRecordSource(String fromRecordSource)
Set the fromRecordSource.
|
Relationship.Builder |
fromRecordType(String fromRecordType)
Set the fromRecordType.
|
Relationship.Builder |
id(String id)
Set the id.
|
Relationship.Builder |
toRecordId(String toRecordId)
Set the toRecordId.
|
Relationship.Builder |
toRecordNumber(String toRecordNumber)
Set the toRecordNumber.
|
Relationship.Builder |
toRecordSource(String toRecordSource)
Set the toRecordSource.
|
Relationship.Builder |
toRecordType(String toRecordType)
Set the toRecordType.
|
Relationship.Builder |
type(String type)
Set the type.
|
Relationship.Builder |
typeName(String typeName)
Set the typeName.
|
public Relationship build()
public Relationship.Builder type(String type)
type
- the typepublic Relationship.Builder id(String id)
id
- the idpublic Relationship.Builder attributes(Map<String,Object> attributes)
attributes
- the attributespublic Relationship.Builder typeName(String typeName)
typeName
- the typeNamepublic Relationship.Builder fromRecordId(String fromRecordId)
fromRecordId
- the fromRecordIdpublic Relationship.Builder fromRecordSource(String fromRecordSource)
fromRecordSource
- the fromRecordSourcepublic Relationship.Builder fromRecordNumber(String fromRecordNumber)
fromRecordNumber
- the fromRecordNumberpublic Relationship.Builder fromRecordType(String fromRecordType)
fromRecordType
- the fromRecordTypepublic Relationship.Builder toRecordId(String toRecordId)
toRecordId
- the toRecordIdpublic Relationship.Builder toRecordSource(String toRecordSource)
toRecordSource
- the toRecordSourcepublic Relationship.Builder toRecordType(String toRecordType)
toRecordType
- the toRecordTypepublic Relationship.Builder toRecordNumber(String toRecordNumber)
toRecordNumber
- the toRecordNumberCopyright © 2021 IBM Cloud. All rights reserved.