public class Label extends Object implements NamedResource
Modifier and Type | Class and Description |
---|---|
static class |
Label.Builder
Builder to make label construction easier.
|
Constructor and Description |
---|
Label()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static Label.Builder |
builder()
Returns a builder for the label.
|
HealthStatus |
getApplicationHealthStatus()
Returns the application health status for the label.
|
String |
getCategory()
Returns the category of the key.
|
String |
getKey()
Returns the key of the key.
|
LabelLinks |
getLinks()
Returns the links of the label.
|
String |
getName()
Returns the name of the label.
|
HealthStatus |
getServerHealthStatus()
Returns the server health status for the label.
|
void |
setCategory(String category)
Sets the category of the label.
|
void |
setKey(String key)
Sets the key of the label.
|
void |
setLinks(LabelLinks links)
Sets the links of the label.
|
void |
setName(String name)
Sets the name of the label.
|
String |
toString()
Returns a string representation of the object.
|
public void setKey(String key)
key
- The key of the labelpublic String getKey()
public void setCategory(String category)
category
- The category of the labelpublic String getCategory()
public void setName(String name)
setName
in interface NamedResource
name
- The name of the labelpublic String getName()
getName
in interface NamedResource
public HealthStatus getApplicationHealthStatus()
public HealthStatus getServerHealthStatus()
public void setLinks(LabelLinks links)
links
- The links of the labelpublic LabelLinks getLinks()
public String toString()
public static Label.Builder builder()
Copyright © 2018. All rights reserved.