@Generated(value="software.amazon.awssdk:codegen") public final class GetRelationalDatabaseMetricDataRequest extends LightsailRequest implements ToCopyableBuilder<GetRelationalDatabaseMetricDataRequest.Builder,GetRelationalDatabaseMetricDataRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetRelationalDatabaseMetricDataRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetRelationalDatabaseMetricDataRequest.Builder |
builder() |
Instant |
endTime()
The end of the time interval from which to get metric data.
|
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() |
RelationalDatabaseMetricName |
metricName()
The name of the metric data to return.
|
String |
metricNameAsString()
The name of the metric data to return.
|
Integer |
period()
The granularity, in seconds, of the returned data points.
|
String |
relationalDatabaseName()
The name of your database from which to get metric data.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetRelationalDatabaseMetricDataRequest.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The start of the time interval from which to get metric data.
|
List<MetricStatistic> |
statistics()
The array of statistics for your metric data request.
|
List<String> |
statisticsAsStrings()
The array of statistics for your metric data request.
|
GetRelationalDatabaseMetricDataRequest.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 for the metric data request.
|
String |
unitAsString()
The unit for the metric data request.
|
overrideConfiguration
copy
public String relationalDatabaseName()
The name of your database from which to get metric data.
public RelationalDatabaseMetricName metricName()
The name of the metric data to return.
If the service returns an enum value that is not available in the current SDK version, metricName
will
return RelationalDatabaseMetricName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from metricNameAsString()
.
RelationalDatabaseMetricName
public String metricNameAsString()
The name of the metric data to return.
If the service returns an enum value that is not available in the current SDK version, metricName
will
return RelationalDatabaseMetricName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from metricNameAsString()
.
RelationalDatabaseMetricName
public Integer period()
The granularity, in seconds, of the returned data points.
public Instant startTime()
The start of the time interval from which to get metric data.
Constraints:
Specified in Universal Coordinated Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the start time.
Constraints:
Specified in Universal Coordinated Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the start time.
public Instant endTime()
The end of the time interval from which to get metric data.
Constraints:
Specified in Universal Coordinated Time (UTC).
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the end time.
Constraints:
Specified in Universal Coordinated Time (UTC).
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input
1538424000
as the end time.
public MetricUnit unit()
The unit for the metric data request.
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 for the metric data request.
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 array of statistics for your metric data request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> statisticsAsStrings()
The array of statistics for your metric data request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public GetRelationalDatabaseMetricDataRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetRelationalDatabaseMetricDataRequest.Builder,GetRelationalDatabaseMetricDataRequest>
toBuilder
in class LightsailRequest
public static GetRelationalDatabaseMetricDataRequest.Builder builder()
public static Class<? extends GetRelationalDatabaseMetricDataRequest.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.