public final class StatementTemplate extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Digital Asset Links API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StatementTemplate() |
Modifier and Type | Method and Description |
---|---|
StatementTemplate |
clone() |
String |
getRelation()
The relationship being asserted between the source and target.
|
Asset |
getSource()
The source asset that is asserting the statement.
|
Asset |
getTarget()
The target that the source is declaring the relationship with.
|
StatementTemplate |
set(String fieldName,
Object value) |
StatementTemplate |
setRelation(String relation)
The relationship being asserted between the source and target.
|
StatementTemplate |
setSource(Asset source)
The source asset that is asserting the statement.
|
StatementTemplate |
setTarget(Asset target)
The target that the source is declaring the relationship with.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getRelation()
null
for nonepublic StatementTemplate setRelation(String relation)
relation
- relation or null
for nonepublic Asset getSource()
null
for nonepublic StatementTemplate setSource(Asset source)
source
- source or null
for nonepublic Asset getTarget()
null
for nonepublic StatementTemplate setTarget(Asset target)
target
- target or null
for nonepublic StatementTemplate set(String fieldName, Object value)
set
in class GenericJson
public StatementTemplate clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.