/* * Copyright 2018-2023 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 com.amazonaws.services.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* An error corresponding to the unsuccessful processing of a single metric data query. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MetricDataError implements Serializable, Cloneable, StructuredPojo { /** *

* The query identifier. *

*/ private String id; /** *

* The query error code. Can be one of: *

* */ private String code; /** *

* The error message associated with the current query error. *

*/ private String message; /** *

* The query identifier. *

* * @param id * The query identifier. */ public void setId(String id) { this.id = id; } /** *

* The query identifier. *

* * @return The query identifier. */ public String getId() { return this.id; } /** *

* The query identifier. *

* * @param id * The query identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricDataError withId(String id) { setId(id); return this; } /** *

* The query error code. Can be one of: *

* * * @param code * The query error code. Can be one of:

*