All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iotwireless.model.MetricQueryValue Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Wireless module holds the client classes that are used for communicating with AWS IoT Wireless Service

The newest version!
/*
 * Copyright 2019-2024 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.iotwireless.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The aggregated values of the metric. *

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

* The minimum of the values of all data points collected during the aggregation period. *

*/ private Double min; /** *

* The maximum of the values of all the data points collected during the aggregation period. *

*/ private Double max; /** *

* The sum of the values of all data points collected during the aggregation period. *

*/ private Double sum; /** *

* The average of the values of all data points collected during the aggregation period. *

*/ private Double avg; /** *

* The standard deviation of the values of all data points collected during the aggregation period. *

*/ private Double std; /** *

* The 90th percentile of the values of all data points collected during the aggregation period. *

*/ private Double p90; /** *

* The minimum of the values of all data points collected during the aggregation period. *

* * @param min * The minimum of the values of all data points collected during the aggregation period. */ public void setMin(Double min) { this.min = min; } /** *

* The minimum of the values of all data points collected during the aggregation period. *

* * @return The minimum of the values of all data points collected during the aggregation period. */ public Double getMin() { return this.min; } /** *

* The minimum of the values of all data points collected during the aggregation period. *

* * @param min * The minimum of the values of all data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withMin(Double min) { setMin(min); return this; } /** *

* The maximum of the values of all the data points collected during the aggregation period. *

* * @param max * The maximum of the values of all the data points collected during the aggregation period. */ public void setMax(Double max) { this.max = max; } /** *

* The maximum of the values of all the data points collected during the aggregation period. *

* * @return The maximum of the values of all the data points collected during the aggregation period. */ public Double getMax() { return this.max; } /** *

* The maximum of the values of all the data points collected during the aggregation period. *

* * @param max * The maximum of the values of all the data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withMax(Double max) { setMax(max); return this; } /** *

* The sum of the values of all data points collected during the aggregation period. *

* * @param sum * The sum of the values of all data points collected during the aggregation period. */ public void setSum(Double sum) { this.sum = sum; } /** *

* The sum of the values of all data points collected during the aggregation period. *

* * @return The sum of the values of all data points collected during the aggregation period. */ public Double getSum() { return this.sum; } /** *

* The sum of the values of all data points collected during the aggregation period. *

* * @param sum * The sum of the values of all data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withSum(Double sum) { setSum(sum); return this; } /** *

* The average of the values of all data points collected during the aggregation period. *

* * @param avg * The average of the values of all data points collected during the aggregation period. */ public void setAvg(Double avg) { this.avg = avg; } /** *

* The average of the values of all data points collected during the aggregation period. *

* * @return The average of the values of all data points collected during the aggregation period. */ public Double getAvg() { return this.avg; } /** *

* The average of the values of all data points collected during the aggregation period. *

* * @param avg * The average of the values of all data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withAvg(Double avg) { setAvg(avg); return this; } /** *

* The standard deviation of the values of all data points collected during the aggregation period. *

* * @param std * The standard deviation of the values of all data points collected during the aggregation period. */ public void setStd(Double std) { this.std = std; } /** *

* The standard deviation of the values of all data points collected during the aggregation period. *

* * @return The standard deviation of the values of all data points collected during the aggregation period. */ public Double getStd() { return this.std; } /** *

* The standard deviation of the values of all data points collected during the aggregation period. *

* * @param std * The standard deviation of the values of all data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withStd(Double std) { setStd(std); return this; } /** *

* The 90th percentile of the values of all data points collected during the aggregation period. *

* * @param p90 * The 90th percentile of the values of all data points collected during the aggregation period. */ public void setP90(Double p90) { this.p90 = p90; } /** *

* The 90th percentile of the values of all data points collected during the aggregation period. *

* * @return The 90th percentile of the values of all data points collected during the aggregation period. */ public Double getP90() { return this.p90; } /** *

* The 90th percentile of the values of all data points collected during the aggregation period. *

* * @param p90 * The 90th percentile of the values of all data points collected during the aggregation period. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricQueryValue withP90(Double p90) { setP90(p90); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMin() != null) sb.append("Min: ").append(getMin()).append(","); if (getMax() != null) sb.append("Max: ").append(getMax()).append(","); if (getSum() != null) sb.append("Sum: ").append(getSum()).append(","); if (getAvg() != null) sb.append("Avg: ").append(getAvg()).append(","); if (getStd() != null) sb.append("Std: ").append(getStd()).append(","); if (getP90() != null) sb.append("P90: ").append(getP90()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MetricQueryValue == false) return false; MetricQueryValue other = (MetricQueryValue) obj; if (other.getMin() == null ^ this.getMin() == null) return false; if (other.getMin() != null && other.getMin().equals(this.getMin()) == false) return false; if (other.getMax() == null ^ this.getMax() == null) return false; if (other.getMax() != null && other.getMax().equals(this.getMax()) == false) return false; if (other.getSum() == null ^ this.getSum() == null) return false; if (other.getSum() != null && other.getSum().equals(this.getSum()) == false) return false; if (other.getAvg() == null ^ this.getAvg() == null) return false; if (other.getAvg() != null && other.getAvg().equals(this.getAvg()) == false) return false; if (other.getStd() == null ^ this.getStd() == null) return false; if (other.getStd() != null && other.getStd().equals(this.getStd()) == false) return false; if (other.getP90() == null ^ this.getP90() == null) return false; if (other.getP90() != null && other.getP90().equals(this.getP90()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMin() == null) ? 0 : getMin().hashCode()); hashCode = prime * hashCode + ((getMax() == null) ? 0 : getMax().hashCode()); hashCode = prime * hashCode + ((getSum() == null) ? 0 : getSum().hashCode()); hashCode = prime * hashCode + ((getAvg() == null) ? 0 : getAvg().hashCode()); hashCode = prime * hashCode + ((getStd() == null) ? 0 : getStd().hashCode()); hashCode = prime * hashCode + ((getP90() == null) ? 0 : getP90().hashCode()); return hashCode; } @Override public MetricQueryValue clone() { try { return (MetricQueryValue) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iotwireless.model.transform.MetricQueryValueMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy