@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetMetricRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFleetMetricRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFleetMetricRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAggregationField()
The field to aggregate.
|
AggregationType |
getAggregationType()
The type of the aggregation query.
|
String |
getDescription()
The fleet metric description.
|
String |
getIndexName()
The name of the index to search.
|
String |
getMetricName()
The name of the fleet metric to create.
|
Integer |
getPeriod()
The time in seconds between fleet metric emissions.
|
String |
getQueryString()
The search query string.
|
String |
getQueryVersion()
The query version.
|
List<Tag> |
getTags()
Metadata, which can be used to manage the fleet metric.
|
String |
getUnit()
Used to support unit transformation such as milliseconds to seconds.
|
int |
hashCode() |
void |
setAggregationField(String aggregationField)
The field to aggregate.
|
void |
setAggregationType(AggregationType aggregationType)
The type of the aggregation query.
|
void |
setDescription(String description)
The fleet metric description.
|
void |
setIndexName(String indexName)
The name of the index to search.
|
void |
setMetricName(String metricName)
The name of the fleet metric to create.
|
void |
setPeriod(Integer period)
The time in seconds between fleet metric emissions.
|
void |
setQueryString(String queryString)
The search query string.
|
void |
setQueryVersion(String queryVersion)
The query version.
|
void |
setTags(Collection<Tag> tags)
Metadata, which can be used to manage the fleet metric.
|
void |
setUnit(String unit)
Used to support unit transformation such as milliseconds to seconds.
|
String |
toString()
Returns a string representation of this object.
|
CreateFleetMetricRequest |
withAggregationField(String aggregationField)
The field to aggregate.
|
CreateFleetMetricRequest |
withAggregationType(AggregationType aggregationType)
The type of the aggregation query.
|
CreateFleetMetricRequest |
withDescription(String description)
The fleet metric description.
|
CreateFleetMetricRequest |
withIndexName(String indexName)
The name of the index to search.
|
CreateFleetMetricRequest |
withMetricName(String metricName)
The name of the fleet metric to create.
|
CreateFleetMetricRequest |
withPeriod(Integer period)
The time in seconds between fleet metric emissions.
|
CreateFleetMetricRequest |
withQueryString(String queryString)
The search query string.
|
CreateFleetMetricRequest |
withQueryVersion(String queryVersion)
The query version.
|
CreateFleetMetricRequest |
withTags(Collection<Tag> tags)
Metadata, which can be used to manage the fleet metric.
|
CreateFleetMetricRequest |
withTags(Tag... tags)
Metadata, which can be used to manage the fleet metric.
|
CreateFleetMetricRequest |
withUnit(FleetMetricUnit unit)
Used to support unit transformation such as milliseconds to seconds.
|
CreateFleetMetricRequest |
withUnit(String unit)
Used to support unit transformation such as milliseconds to seconds.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setMetricName(String metricName)
The name of the fleet metric to create.
metricName
- The name of the fleet metric to create.public String getMetricName()
The name of the fleet metric to create.
public CreateFleetMetricRequest withMetricName(String metricName)
The name of the fleet metric to create.
metricName
- The name of the fleet metric to create.public void setQueryString(String queryString)
The search query string.
queryString
- The search query string.public String getQueryString()
The search query string.
public CreateFleetMetricRequest withQueryString(String queryString)
The search query string.
queryString
- The search query string.public void setAggregationType(AggregationType aggregationType)
The type of the aggregation query.
aggregationType
- The type of the aggregation query.public AggregationType getAggregationType()
The type of the aggregation query.
public CreateFleetMetricRequest withAggregationType(AggregationType aggregationType)
The type of the aggregation query.
aggregationType
- The type of the aggregation query.public void setPeriod(Integer period)
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
period
- The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple
of 60.public Integer getPeriod()
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
public CreateFleetMetricRequest withPeriod(Integer period)
The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
period
- The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple
of 60.public void setAggregationField(String aggregationField)
The field to aggregate.
aggregationField
- The field to aggregate.public String getAggregationField()
The field to aggregate.
public CreateFleetMetricRequest withAggregationField(String aggregationField)
The field to aggregate.
aggregationField
- The field to aggregate.public void setDescription(String description)
The fleet metric description.
description
- The fleet metric description.public String getDescription()
The fleet metric description.
public CreateFleetMetricRequest withDescription(String description)
The fleet metric description.
description
- The fleet metric description.public void setQueryVersion(String queryVersion)
The query version.
queryVersion
- The query version.public String getQueryVersion()
The query version.
public CreateFleetMetricRequest withQueryVersion(String queryVersion)
The query version.
queryVersion
- The query version.public void setIndexName(String indexName)
The name of the index to search.
indexName
- The name of the index to search.public String getIndexName()
The name of the index to search.
public CreateFleetMetricRequest withIndexName(String indexName)
The name of the index to search.
indexName
- The name of the index to search.public void setUnit(String unit)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
unit
- Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW
metric. Default to null.FleetMetricUnit
public String getUnit()
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
FleetMetricUnit
public CreateFleetMetricRequest withUnit(String unit)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
unit
- Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW
metric. Default to null.FleetMetricUnit
public CreateFleetMetricRequest withUnit(FleetMetricUnit unit)
Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
unit
- Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW
metric. Default to null.FleetMetricUnit
public List<Tag> getTags()
Metadata, which can be used to manage the fleet metric.
public void setTags(Collection<Tag> tags)
Metadata, which can be used to manage the fleet metric.
tags
- Metadata, which can be used to manage the fleet metric.public CreateFleetMetricRequest withTags(Tag... tags)
Metadata, which can be used to manage the fleet metric.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Metadata, which can be used to manage the fleet metric.public CreateFleetMetricRequest withTags(Collection<Tag> tags)
Metadata, which can be used to manage the fleet metric.
tags
- Metadata, which can be used to manage the fleet metric.public String toString()
toString
in class Object
Object.toString()
public CreateFleetMetricRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()