@Generated(value="software.amazon.awssdk:codegen") public final class GetInstanceMetricDataRequest extends LightsailRequest implements ToCopyableBuilder<GetInstanceMetricDataRequest.Builder,GetInstanceMetricDataRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetInstanceMetricDataRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetInstanceMetricDataRequest.Builder |
builder() |
Instant |
endTime()
The end time of the time period.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceName()
The name of the instance for which you want to get metrics data.
|
InstanceMetricName |
metricName()
The metric name to get data about.
|
String |
metricNameAsString()
The metric name to get data about.
|
Integer |
period()
The time period for which you are requesting data.
|
static Class<? extends GetInstanceMetricDataRequest.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The start time of the time period.
|
List<MetricStatistic> |
statistics()
The instance statistics.
|
List<String> |
statisticsAsStrings()
The instance statistics.
|
GetInstanceMetricDataRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
MetricUnit |
unit()
The unit.
|
String |
unitAsString()
The unit.
|
overrideConfiguration
copy
public String instanceName()
The name of the instance for which you want to get metrics data.
public InstanceMetricName metricName()
The metric name to get data about.
If the service returns an enum value that is not available in the current SDK version, metricName
will
return InstanceMetricName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
metricNameAsString()
.
InstanceMetricName
public String metricNameAsString()
The metric name to get data about.
If the service returns an enum value that is not available in the current SDK version, metricName
will
return InstanceMetricName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
metricNameAsString()
.
InstanceMetricName
public Integer period()
The time period for which you are requesting data.
public Instant startTime()
The start time of the time period.
public Instant endTime()
The end time of the time period.
public MetricUnit unit()
The unit. The list of valid values is below.
If the service returns an enum value that is not available in the current SDK version, unit
will return
MetricUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
MetricUnit
public String unitAsString()
The unit. The list of valid values is below.
If the service returns an enum value that is not available in the current SDK version, unit
will return
MetricUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
unitAsString()
.
MetricUnit
public List<MetricStatistic> statistics()
The instance statistics.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> statisticsAsStrings()
The instance statistics.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public GetInstanceMetricDataRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetInstanceMetricDataRequest.Builder,GetInstanceMetricDataRequest>
toBuilder
in class LightsailRequest
public static GetInstanceMetricDataRequest.Builder builder()
public static Class<? extends GetInstanceMetricDataRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.