public static class ObjectRelationship.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ObjectRelationship |
build() |
ObjectRelationship.Builder |
copy(ObjectRelationship model) |
ObjectRelationship.Builder |
key(String key)
Unique id of the object.
|
ObjectRelationship.Builder |
name(String name)
Name of the object.
|
ObjectRelationship.Builder |
parentKey(String parentKey)
Key of the parent object for the resource.
|
ObjectRelationship.Builder |
parentPath(String parentPath)
Full path of the parent object.
|
ObjectRelationship.Builder |
path(String path)
Full path of the object.
|
ObjectRelationship.Builder |
relationshipType(String relationshipType)
Type of relationship with the referencing object.
|
ObjectRelationship.Builder |
timeCreated(Date timeCreated)
The date and time the relationship was created, in the format defined by
RFC3339.
|
ObjectRelationship.Builder |
timeUpdated(Date timeUpdated)
The last time a change was made to this reference.
|
ObjectRelationship.Builder |
typeKey(String typeKey)
Type key of the object.
|
ObjectRelationship.Builder |
typeName(String typeName)
Type name of the object.
|
public ObjectRelationship.Builder relationshipType(String relationshipType)
Type of relationship with the referencing object.
relationshipType
- the value to setpublic ObjectRelationship.Builder key(String key)
Unique id of the object.
key
- the value to setpublic ObjectRelationship.Builder name(String name)
Name of the object.
name
- the value to setpublic ObjectRelationship.Builder typeName(String typeName)
Type name of the object. Type names can be found via the ‘/types’ endpoint.
typeName
- the value to setpublic ObjectRelationship.Builder typeKey(String typeKey)
Type key of the object. Type keys can be found via the ‘/types’ endpoint.
typeKey
- the value to setpublic ObjectRelationship.Builder timeCreated(Date timeCreated)
The date and time the relationship was created, in the format defined by
RFC3339. Example: 2019-03-25T21:10:29.600Z
timeCreated
- the value to setpublic ObjectRelationship.Builder timeUpdated(Date timeUpdated)
The last time a change was made to this reference. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic ObjectRelationship.Builder path(String path)
Full path of the object.
path
- the value to setpublic ObjectRelationship.Builder parentKey(String parentKey)
Key of the parent object for the resource.
parentKey
- the value to setpublic ObjectRelationship.Builder parentPath(String parentPath)
Full path of the parent object.
parentPath
- the value to setpublic ObjectRelationship build()
public ObjectRelationship.Builder copy(ObjectRelationship model)
Copyright © 2016–2024. All rights reserved.