* A list of vertices connected to the start entity(ies) in the lineage graph. *
*/ private java.util.List* A list of edges that connect vertices in the response. *
*/ private java.util.List
* Limits the number of vertices in the response. Use the NextToken
in a response to to retrieve the
* next page of results.
*
* A list of vertices connected to the start entity(ies) in the lineage graph. *
* * @return A list of vertices connected to the start entity(ies) in the lineage graph. */ public java.util.List* A list of vertices connected to the start entity(ies) in the lineage graph. *
* * @param vertices * A list of vertices connected to the start entity(ies) in the lineage graph. */ public void setVertices(java.util.Collection* A list of vertices connected to the start entity(ies) in the lineage graph. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVertices(java.util.Collection)} or {@link #withVertices(java.util.Collection)} if you want to override * the existing values. *
* * @param vertices * A list of vertices connected to the start entity(ies) in the lineage graph. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLineageResult withVertices(Vertex... vertices) { if (this.vertices == null) { setVertices(new java.util.ArrayList* A list of vertices connected to the start entity(ies) in the lineage graph. *
* * @param vertices * A list of vertices connected to the start entity(ies) in the lineage graph. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLineageResult withVertices(java.util.Collection* A list of edges that connect vertices in the response. *
* * @return A list of edges that connect vertices in the response. */ public java.util.List* A list of edges that connect vertices in the response. *
* * @param edges * A list of edges that connect vertices in the response. */ public void setEdges(java.util.Collection* A list of edges that connect vertices in the response. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEdges(java.util.Collection)} or {@link #withEdges(java.util.Collection)} if you want to override the * existing values. *
* * @param edges * A list of edges that connect vertices in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLineageResult withEdges(Edge... edges) { if (this.edges == null) { setEdges(new java.util.ArrayList* A list of edges that connect vertices in the response. *
* * @param edges * A list of edges that connect vertices in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLineageResult withEdges(java.util.Collection
* Limits the number of vertices in the response. Use the NextToken
in a response to to retrieve the
* next page of results.
*
NextToken
in a response to to retrieve
* the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Limits the number of vertices in the response. Use the NextToken
in a response to to retrieve the
* next page of results.
*
NextToken
in a response to to
* retrieve the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Limits the number of vertices in the response. Use the NextToken
in a response to to retrieve the
* next page of results.
*
NextToken
in a response to to retrieve
* the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryLineageResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getVertices() != null)
sb.append("Vertices: ").append(getVertices()).append(",");
if (getEdges() != null)
sb.append("Edges: ").append(getEdges()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof QueryLineageResult == false)
return false;
QueryLineageResult other = (QueryLineageResult) obj;
if (other.getVertices() == null ^ this.getVertices() == null)
return false;
if (other.getVertices() != null && other.getVertices().equals(this.getVertices()) == false)
return false;
if (other.getEdges() == null ^ this.getEdges() == null)
return false;
if (other.getEdges() != null && other.getEdges().equals(this.getEdges()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVertices() == null) ? 0 : getVertices().hashCode());
hashCode = prime * hashCode + ((getEdges() == null) ? 0 : getEdges().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public QueryLineageResult clone() {
try {
return (QueryLineageResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}