@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Label extends Object implements Serializable, Cloneable, StructuredPojo
A single label container. This is used as an element of a label array in multiple contexts, for example, in
RuleLabels
inside a Rule and in Labels
inside a SampledHTTPRequest.
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The label string.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The label string.
|
String |
toString()
Returns a string representation of this object.
|
Label |
withName(String name)
The label string.
|
public void setName(String name)
The label string.
name
- The label string.public String getName()
The label string.
public Label withName(String name)
The label string.
name
- The label string.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.