@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Group extends Object implements Serializable, Cloneable, StructuredPojo
One level of grouped data in the results.
Constructor and Description |
---|
Group() |
Modifier and Type | Method and Description |
---|---|
Group |
addMetricsEntry(String key,
MetricValue value)
Add a single Metrics entry
|
Group |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
Group |
clone() |
boolean |
equals(Object obj) |
List<String> |
getKeys()
The keys that are included in this group.
|
Map<String,MetricValue> |
getMetrics()
The metrics that are included in this group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKeys(Collection<String> keys)
The keys that are included in this group.
|
void |
setMetrics(Map<String,MetricValue> metrics)
The metrics that are included in this group.
|
String |
toString()
Returns a string representation of this object.
|
Group |
withKeys(Collection<String> keys)
The keys that are included in this group.
|
Group |
withKeys(String... keys)
The keys that are included in this group.
|
Group |
withMetrics(Map<String,MetricValue> metrics)
The metrics that are included in this group.
|
public List<String> getKeys()
The keys that are included in this group.
public void setKeys(Collection<String> keys)
The keys that are included in this group.
keys
- The keys that are included in this group.public Group withKeys(String... keys)
The keys that are included in this group.
NOTE: This method appends the values to the existing list (if any). Use
setKeys(java.util.Collection)
or withKeys(java.util.Collection)
if you want to override the
existing values.
keys
- The keys that are included in this group.public Group withKeys(Collection<String> keys)
The keys that are included in this group.
keys
- The keys that are included in this group.public Map<String,MetricValue> getMetrics()
The metrics that are included in this group.
public void setMetrics(Map<String,MetricValue> metrics)
The metrics that are included in this group.
metrics
- The metrics that are included in this group.public Group withMetrics(Map<String,MetricValue> metrics)
The metrics that are included in this group.
metrics
- The metrics that are included in this group.public Group addMetricsEntry(String key, MetricValue value)
public Group clearMetricsEntries()
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.