software.amazon.awssdk.services.cloudwatch.model.PutMetricDataRequest Maven / Gradle / Ivy
Show all versions of cloudwatch Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.cloudwatch.model;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class PutMetricDataRequest extends CloudWatchRequest implements
ToCopyableBuilder {
private static final SdkField NAMESPACE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("Namespace").getter(getter(PutMetricDataRequest::namespace)).setter(setter(Builder::namespace))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Namespace").build()).build();
private static final SdkField> METRIC_DATA_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("MetricData")
.getter(getter(PutMetricDataRequest::metricData))
.setter(setter(Builder::metricData))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MetricData").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(MetricDatum::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField> ENTITY_METRIC_DATA_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("EntityMetricData")
.getter(getter(PutMetricDataRequest::entityMetricData))
.setter(setter(Builder::entityMetricData))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EntityMetricData").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(EntityMetricData::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField STRICT_ENTITY_VALIDATION_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
.memberName("StrictEntityValidation").getter(getter(PutMetricDataRequest::strictEntityValidation))
.setter(setter(Builder::strictEntityValidation))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StrictEntityValidation").build())
.build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NAMESPACE_FIELD,
METRIC_DATA_FIELD, ENTITY_METRIC_DATA_FIELD, STRICT_ENTITY_VALIDATION_FIELD));
private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer();
private final String namespace;
private final List metricData;
private final List entityMetricData;
private final Boolean strictEntityValidation;
private PutMetricDataRequest(BuilderImpl builder) {
super(builder);
this.namespace = builder.namespace;
this.metricData = builder.metricData;
this.entityMetricData = builder.entityMetricData;
this.strictEntityValidation = builder.strictEntityValidation;
}
/**
*
* The namespace for the metric data. You can use ASCII characters for the namespace, except for control characters
* which are not supported.
*
*
* To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace that begins
* with AWS/
*
*
* @return The namespace for the metric data. You can use ASCII characters for the namespace, except for control
* characters which are not supported.
*
* To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace that
* begins with AWS/
*/
public final String namespace() {
return namespace;
}
/**
* For responses, this returns true if the service returned a value for the MetricData property. This DOES NOT check
* that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
* useful because the SDK will never return a null collection or map, but you may need to differentiate between the
* service returning nothing (or null) and the service returning an empty collection or map. For requests, this
* returns true if a value for the property was specified in the request builder, and false if a value was not
* specified.
*/
public final boolean hasMetricData() {
return metricData != null && !(metricData instanceof SdkAutoConstructList);
}
/**
*
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array can
* include no more than 1000 metrics per call.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and MetricData
* metrics.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasMetricData} method.
*
*
* @return The data for the metrics. Use this parameter if your metrics do not contain associated entities. The
* array can include no more than 1000 metrics per call.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*/
public final List metricData() {
return metricData;
}
/**
* For responses, this returns true if the service returned a value for the EntityMetricData property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasEntityMetricData() {
return entityMetricData != null && !(entityMetricData instanceof SdkAutoConstructList);
}
/**
*
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and associated
* metrics.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and MetricData
* metrics.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasEntityMetricData} method.
*
*
* @return Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and
* associated metrics.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*/
public final List entityMetricData() {
return entityMetricData;
}
/**
*
* Whether to accept valid metric data when an invalid entity is sent.
*
*
* -
*
* When set to true
: Any validation error (for entity or metric data) will fail the entire request, and
* no data will be ingested. The failed operation will return a 400 result with the error.
*
*
* -
*
* When set to false
: Validation errors in the entity will not associate the metric with the entity,
* but the metric data will still be accepted and ingested. Validation errors in the metric data will fail the
* entire request, and no data will be ingested.
*
*
* In the case of an invalid entity, the operation will return a 200
status, but an additional response
* header will contain information about the validation errors. The new header, X-Amzn-Failure-Message
* is an enumeration of the following values:
*
*
* -
*
* InvalidEntity
- The provided entity is invalid.
*
*
* -
*
* InvalidKeyAttributes
- The provided KeyAttributes
of an entity is invalid.
*
*
* -
*
* InvalidAttributes
- The provided Attributes
of an entity is invalid.
*
*
* -
*
* InvalidTypeValue
- The provided Type
in the KeyAttributes
of an entity is
* invalid.
*
*
* -
*
* EntitySizeTooLarge
- The number of EntityMetricData
objects allowed is 2.
*
*
* -
*
* MissingRequiredFields
- There are missing required fields in the KeyAttributes
for the
* provided Type
.
*
*
*
*
* For details of the requirements for specifying an entity, see How to add related information to
* telemetry in the CloudWatch User Guide.
*
*
*
*
* This parameter is required when EntityMetricData
is included.
*
*
* @return Whether to accept valid metric data when an invalid entity is sent.
*
* -
*
* When set to true
: Any validation error (for entity or metric data) will fail the entire
* request, and no data will be ingested. The failed operation will return a 400 result with the error.
*
*
* -
*
* When set to false
: Validation errors in the entity will not associate the metric with the
* entity, but the metric data will still be accepted and ingested. Validation errors in the metric data
* will fail the entire request, and no data will be ingested.
*
*
* In the case of an invalid entity, the operation will return a 200
status, but an additional
* response header will contain information about the validation errors. The new header,
* X-Amzn-Failure-Message
is an enumeration of the following values:
*
*
* -
*
* InvalidEntity
- The provided entity is invalid.
*
*
* -
*
* InvalidKeyAttributes
- The provided KeyAttributes
of an entity is invalid.
*
*
* -
*
* InvalidAttributes
- The provided Attributes
of an entity is invalid.
*
*
* -
*
* InvalidTypeValue
- The provided Type
in the KeyAttributes
of an
* entity is invalid.
*
*
* -
*
* EntitySizeTooLarge
- The number of EntityMetricData
objects allowed is 2.
*
*
* -
*
* MissingRequiredFields
- There are missing required fields in the KeyAttributes
* for the provided Type
.
*
*
*
*
* For details of the requirements for specifying an entity, see How to add related information
* to telemetry in the CloudWatch User Guide.
*
*
*
*
* This parameter is required when EntityMetricData
is included.
*/
public final Boolean strictEntityValidation() {
return strictEntityValidation;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(namespace());
hashCode = 31 * hashCode + Objects.hashCode(hasMetricData() ? metricData() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasEntityMetricData() ? entityMetricData() : null);
hashCode = 31 * hashCode + Objects.hashCode(strictEntityValidation());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof PutMetricDataRequest)) {
return false;
}
PutMetricDataRequest other = (PutMetricDataRequest) obj;
return Objects.equals(namespace(), other.namespace()) && hasMetricData() == other.hasMetricData()
&& Objects.equals(metricData(), other.metricData()) && hasEntityMetricData() == other.hasEntityMetricData()
&& Objects.equals(entityMetricData(), other.entityMetricData())
&& Objects.equals(strictEntityValidation(), other.strictEntityValidation());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("PutMetricDataRequest").add("Namespace", namespace())
.add("MetricData", hasMetricData() ? metricData() : null)
.add("EntityMetricData", hasEntityMetricData() ? entityMetricData() : null)
.add("StrictEntityValidation", strictEntityValidation()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "Namespace":
return Optional.ofNullable(clazz.cast(namespace()));
case "MetricData":
return Optional.ofNullable(clazz.cast(metricData()));
case "EntityMetricData":
return Optional.ofNullable(clazz.cast(entityMetricData()));
case "StrictEntityValidation":
return Optional.ofNullable(clazz.cast(strictEntityValidation()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
@Override
public final Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
private static Map> memberNameToFieldInitializer() {
Map> map = new HashMap<>();
map.put("Namespace", NAMESPACE_FIELD);
map.put("MetricData", METRIC_DATA_FIELD);
map.put("EntityMetricData", ENTITY_METRIC_DATA_FIELD);
map.put("StrictEntityValidation", STRICT_ENTITY_VALIDATION_FIELD);
return Collections.unmodifiableMap(map);
}
private static Function
*
* To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace
* that begins with AWS/
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder namespace(String namespace);
/**
*
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array
* can include no more than 1000 metrics per call.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
*
* @param metricData
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The
* array can include no more than 1000 metrics per call.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder metricData(Collection metricData);
/**
*
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array
* can include no more than 1000 metrics per call.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
*
* @param metricData
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The
* array can include no more than 1000 metrics per call.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder metricData(MetricDatum... metricData);
/**
*
* The data for the metrics. Use this parameter if your metrics do not contain associated entities. The array
* can include no more than 1000 metrics per call.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.cloudwatch.model.MetricDatum.Builder} avoiding the need to create one
* manually via {@link software.amazon.awssdk.services.cloudwatch.model.MetricDatum#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.cloudwatch.model.MetricDatum.Builder#build()} is called immediately
* and its result is passed to {@link #metricData(List)}.
*
* @param metricData
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.cloudwatch.model.MetricDatum.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #metricData(java.util.Collection)
*/
Builder metricData(Consumer... metricData);
/**
*
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and associated
* metrics.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
*
* @param entityMetricData
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and
* associated metrics.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder entityMetricData(Collection entityMetricData);
/**
*
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and associated
* metrics.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
*
* @param entityMetricData
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and
* associated metrics.
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder entityMetricData(EntityMetricData... entityMetricData);
/**
*
* Data for metrics that contain associated entity information. You can include up to two
* EntityMetricData
objects, each of which can contain a single Entity
and associated
* metrics.
*
*
* The limit of metrics allowed, 1000, is the sum of both EntityMetricData
and
* MetricData
metrics.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.cloudwatch.model.EntityMetricData.Builder} avoiding the need to create
* one manually via {@link software.amazon.awssdk.services.cloudwatch.model.EntityMetricData#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.cloudwatch.model.EntityMetricData.Builder#build()} is called
* immediately and its result is passed to {@link #entityMetricData(List)}.
*
* @param entityMetricData
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.cloudwatch.model.EntityMetricData.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #entityMetricData(java.util.Collection)
*/
Builder entityMetricData(Consumer... entityMetricData);
/**
*
* Whether to accept valid metric data when an invalid entity is sent.
*
*
* -
*
* When set to true
: Any validation error (for entity or metric data) will fail the entire request,
* and no data will be ingested. The failed operation will return a 400 result with the error.
*
*
* -
*
* When set to false
: Validation errors in the entity will not associate the metric with the
* entity, but the metric data will still be accepted and ingested. Validation errors in the metric data will
* fail the entire request, and no data will be ingested.
*
*
* In the case of an invalid entity, the operation will return a 200
status, but an additional
* response header will contain information about the validation errors. The new header,
* X-Amzn-Failure-Message
is an enumeration of the following values:
*
*
* -
*
* InvalidEntity
- The provided entity is invalid.
*
*
* -
*
* InvalidKeyAttributes
- The provided KeyAttributes
of an entity is invalid.
*
*
* -
*
* InvalidAttributes
- The provided Attributes
of an entity is invalid.
*
*
* -
*
* InvalidTypeValue
- The provided Type
in the KeyAttributes
of an entity
* is invalid.
*
*
* -
*
* EntitySizeTooLarge
- The number of EntityMetricData
objects allowed is 2.
*
*
* -
*
* MissingRequiredFields
- There are missing required fields in the KeyAttributes
for
* the provided Type
.
*
*
*
*
* For details of the requirements for specifying an entity, see How to add related information to
* telemetry in the CloudWatch User Guide.
*
*
*
*
* This parameter is required when EntityMetricData
is included.
*
*
* @param strictEntityValidation
* Whether to accept valid metric data when an invalid entity is sent.
*
* -
*
* When set to true
: Any validation error (for entity or metric data) will fail the entire
* request, and no data will be ingested. The failed operation will return a 400 result with the error.
*
*
* -
*
* When set to false
: Validation errors in the entity will not associate the metric with the
* entity, but the metric data will still be accepted and ingested. Validation errors in the metric data
* will fail the entire request, and no data will be ingested.
*
*
* In the case of an invalid entity, the operation will return a 200
status, but an
* additional response header will contain information about the validation errors. The new header,
* X-Amzn-Failure-Message
is an enumeration of the following values:
*
*
* -
*
* InvalidEntity
- The provided entity is invalid.
*
*
* -
*
* InvalidKeyAttributes
- The provided KeyAttributes
of an entity is invalid.
*
*
* -
*
* InvalidAttributes
- The provided Attributes
of an entity is invalid.
*
*
* -
*
* InvalidTypeValue
- The provided Type
in the KeyAttributes
of an
* entity is invalid.
*
*
* -
*
* EntitySizeTooLarge
- The number of EntityMetricData
objects allowed is 2.
*
*
* -
*
* MissingRequiredFields
- There are missing required fields in the
* KeyAttributes
for the provided Type
.
*
*
*
*
* For details of the requirements for specifying an entity, see How to add related
* information to telemetry in the CloudWatch User Guide.
*
*
*
*
* This parameter is required when EntityMetricData
is included.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder strictEntityValidation(Boolean strictEntityValidation);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends CloudWatchRequest.BuilderImpl implements Builder {
private String namespace;
private List metricData = DefaultSdkAutoConstructList.getInstance();
private List entityMetricData = DefaultSdkAutoConstructList.getInstance();
private Boolean strictEntityValidation;
private BuilderImpl() {
}
private BuilderImpl(PutMetricDataRequest model) {
super(model);
namespace(model.namespace);
metricData(model.metricData);
entityMetricData(model.entityMetricData);
strictEntityValidation(model.strictEntityValidation);
}
public final String getNamespace() {
return namespace;
}
public final void setNamespace(String namespace) {
this.namespace = namespace;
}
@Override
public final Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
public final List getMetricData() {
List result = MetricDataCopier.copyToBuilder(this.metricData);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setMetricData(Collection metricData) {
this.metricData = MetricDataCopier.copyFromBuilder(metricData);
}
@Override
public final Builder metricData(Collection metricData) {
this.metricData = MetricDataCopier.copy(metricData);
return this;
}
@Override
@SafeVarargs
public final Builder metricData(MetricDatum... metricData) {
metricData(Arrays.asList(metricData));
return this;
}
@Override
@SafeVarargs
public final Builder metricData(Consumer... metricData) {
metricData(Stream.of(metricData).map(c -> MetricDatum.builder().applyMutation(c).build())
.collect(Collectors.toList()));
return this;
}
public final List getEntityMetricData() {
List result = EntityMetricDataListCopier.copyToBuilder(this.entityMetricData);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setEntityMetricData(Collection entityMetricData) {
this.entityMetricData = EntityMetricDataListCopier.copyFromBuilder(entityMetricData);
}
@Override
public final Builder entityMetricData(Collection entityMetricData) {
this.entityMetricData = EntityMetricDataListCopier.copy(entityMetricData);
return this;
}
@Override
@SafeVarargs
public final Builder entityMetricData(EntityMetricData... entityMetricData) {
entityMetricData(Arrays.asList(entityMetricData));
return this;
}
@Override
@SafeVarargs
public final Builder entityMetricData(Consumer... entityMetricData) {
entityMetricData(Stream.of(entityMetricData).map(c -> EntityMetricData.builder().applyMutation(c).build())
.collect(Collectors.toList()));
return this;
}
public final Boolean getStrictEntityValidation() {
return strictEntityValidation;
}
public final void setStrictEntityValidation(Boolean strictEntityValidation) {
this.strictEntityValidation = strictEntityValidation;
}
@Override
public final Builder strictEntityValidation(Boolean strictEntityValidation) {
this.strictEntityValidation = strictEntityValidation;
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public PutMetricDataRequest build() {
return new PutMetricDataRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
@Override
public Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
}
}