public class Parent
extends java.lang.Object
implements java.io.Serializable
A parent label for a label. A label can have 0, 1, or more parents.
Constructor and Description |
---|
Parent() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the parent label.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the parent label.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Parent |
withName(java.lang.String name)
The name of the parent label.
|
public java.lang.String getName()
The name of the parent label.
The name of the parent label.
public void setName(java.lang.String name)
The name of the parent label.
name
- The name of the parent label.
public Parent withName(java.lang.String name)
The name of the parent label.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the parent label.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.