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

com.amazonaws.services.xray.model.GetTimeSeriesServiceStatisticsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS X-Ray module holds the client classes that are used for communicating with AWS X-Ray Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.xray.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The start of the time frame for which to aggregate statistics. *

*/ private java.util.Date startTime; /** *

* The end of the time frame for which to aggregate statistics. *

*/ private java.util.Date endTime; /** *

* The case-sensitive name of the group for which to pull statistics from. *

*/ private String groupName; /** *

* The Amazon Resource Name (ARN) of the group for which to pull statistics from. *

*/ private String groupARN; /** *

* A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and edge * functions. If no selector expression is specified, edge statistics are returned. *

*/ private String entitySelectorExpression; /** *

* Aggregation period in seconds. *

*/ private Integer period; /** *

* The forecasted high and low fault count values. Forecast enabled requests require the EntitySelectorExpression ID * be provided. *

*/ private Boolean forecastStatistics; /** *

* Pagination token. *

*/ private String nextToken; /** *

* The start of the time frame for which to aggregate statistics. *

* * @param startTime * The start of the time frame for which to aggregate statistics. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start of the time frame for which to aggregate statistics. *

* * @return The start of the time frame for which to aggregate statistics. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start of the time frame for which to aggregate statistics. *

* * @param startTime * The start of the time frame for which to aggregate statistics. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end of the time frame for which to aggregate statistics. *

* * @param endTime * The end of the time frame for which to aggregate statistics. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end of the time frame for which to aggregate statistics. *

* * @return The end of the time frame for which to aggregate statistics. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end of the time frame for which to aggregate statistics. *

* * @param endTime * The end of the time frame for which to aggregate statistics. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The case-sensitive name of the group for which to pull statistics from. *

* * @param groupName * The case-sensitive name of the group for which to pull statistics from. */ public void setGroupName(String groupName) { this.groupName = groupName; } /** *

* The case-sensitive name of the group for which to pull statistics from. *

* * @return The case-sensitive name of the group for which to pull statistics from. */ public String getGroupName() { return this.groupName; } /** *

* The case-sensitive name of the group for which to pull statistics from. *

* * @param groupName * The case-sensitive name of the group for which to pull statistics from. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withGroupName(String groupName) { setGroupName(groupName); return this; } /** *

* The Amazon Resource Name (ARN) of the group for which to pull statistics from. *

* * @param groupARN * The Amazon Resource Name (ARN) of the group for which to pull statistics from. */ public void setGroupARN(String groupARN) { this.groupARN = groupARN; } /** *

* The Amazon Resource Name (ARN) of the group for which to pull statistics from. *

* * @return The Amazon Resource Name (ARN) of the group for which to pull statistics from. */ public String getGroupARN() { return this.groupARN; } /** *

* The Amazon Resource Name (ARN) of the group for which to pull statistics from. *

* * @param groupARN * The Amazon Resource Name (ARN) of the group for which to pull statistics from. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withGroupARN(String groupARN) { setGroupARN(groupARN); return this; } /** *

* A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and edge * functions. If no selector expression is specified, edge statistics are returned. *

* * @param entitySelectorExpression * A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and * edge functions. If no selector expression is specified, edge statistics are returned. */ public void setEntitySelectorExpression(String entitySelectorExpression) { this.entitySelectorExpression = entitySelectorExpression; } /** *

* A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and edge * functions. If no selector expression is specified, edge statistics are returned. *

* * @return A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and * edge functions. If no selector expression is specified, edge statistics are returned. */ public String getEntitySelectorExpression() { return this.entitySelectorExpression; } /** *

* A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and edge * functions. If no selector expression is specified, edge statistics are returned. *

* * @param entitySelectorExpression * A filter expression defining entities that will be aggregated for statistics. Supports ID, service, and * edge functions. If no selector expression is specified, edge statistics are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withEntitySelectorExpression(String entitySelectorExpression) { setEntitySelectorExpression(entitySelectorExpression); return this; } /** *

* Aggregation period in seconds. *

* * @param period * Aggregation period in seconds. */ public void setPeriod(Integer period) { this.period = period; } /** *

* Aggregation period in seconds. *

* * @return Aggregation period in seconds. */ public Integer getPeriod() { return this.period; } /** *

* Aggregation period in seconds. *

* * @param period * Aggregation period in seconds. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withPeriod(Integer period) { setPeriod(period); return this; } /** *

* The forecasted high and low fault count values. Forecast enabled requests require the EntitySelectorExpression ID * be provided. *

* * @param forecastStatistics * The forecasted high and low fault count values. Forecast enabled requests require the * EntitySelectorExpression ID be provided. */ public void setForecastStatistics(Boolean forecastStatistics) { this.forecastStatistics = forecastStatistics; } /** *

* The forecasted high and low fault count values. Forecast enabled requests require the EntitySelectorExpression ID * be provided. *

* * @return The forecasted high and low fault count values. Forecast enabled requests require the * EntitySelectorExpression ID be provided. */ public Boolean getForecastStatistics() { return this.forecastStatistics; } /** *

* The forecasted high and low fault count values. Forecast enabled requests require the EntitySelectorExpression ID * be provided. *

* * @param forecastStatistics * The forecasted high and low fault count values. Forecast enabled requests require the * EntitySelectorExpression ID be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withForecastStatistics(Boolean forecastStatistics) { setForecastStatistics(forecastStatistics); return this; } /** *

* The forecasted high and low fault count values. Forecast enabled requests require the EntitySelectorExpression ID * be provided. *

* * @return The forecasted high and low fault count values. Forecast enabled requests require the * EntitySelectorExpression ID be provided. */ public Boolean isForecastStatistics() { return this.forecastStatistics; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Pagination token. *

* * @return Pagination token. */ public String getNextToken() { return this.nextToken; } /** *

* Pagination token. *

* * @param nextToken * Pagination token. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTimeSeriesServiceStatisticsRequest withNextToken(String nextToken) { setNextToken(nextToken); 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 (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getGroupName() != null) sb.append("GroupName: ").append(getGroupName()).append(","); if (getGroupARN() != null) sb.append("GroupARN: ").append(getGroupARN()).append(","); if (getEntitySelectorExpression() != null) sb.append("EntitySelectorExpression: ").append(getEntitySelectorExpression()).append(","); if (getPeriod() != null) sb.append("Period: ").append(getPeriod()).append(","); if (getForecastStatistics() != null) sb.append("ForecastStatistics: ").append(getForecastStatistics()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTimeSeriesServiceStatisticsRequest == false) return false; GetTimeSeriesServiceStatisticsRequest other = (GetTimeSeriesServiceStatisticsRequest) obj; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getGroupName() == null ^ this.getGroupName() == null) return false; if (other.getGroupName() != null && other.getGroupName().equals(this.getGroupName()) == false) return false; if (other.getGroupARN() == null ^ this.getGroupARN() == null) return false; if (other.getGroupARN() != null && other.getGroupARN().equals(this.getGroupARN()) == false) return false; if (other.getEntitySelectorExpression() == null ^ this.getEntitySelectorExpression() == null) return false; if (other.getEntitySelectorExpression() != null && other.getEntitySelectorExpression().equals(this.getEntitySelectorExpression()) == false) return false; if (other.getPeriod() == null ^ this.getPeriod() == null) return false; if (other.getPeriod() != null && other.getPeriod().equals(this.getPeriod()) == false) return false; if (other.getForecastStatistics() == null ^ this.getForecastStatistics() == null) return false; if (other.getForecastStatistics() != null && other.getForecastStatistics().equals(this.getForecastStatistics()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode()); hashCode = prime * hashCode + ((getGroupARN() == null) ? 0 : getGroupARN().hashCode()); hashCode = prime * hashCode + ((getEntitySelectorExpression() == null) ? 0 : getEntitySelectorExpression().hashCode()); hashCode = prime * hashCode + ((getPeriod() == null) ? 0 : getPeriod().hashCode()); hashCode = prime * hashCode + ((getForecastStatistics() == null) ? 0 : getForecastStatistics().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetTimeSeriesServiceStatisticsRequest clone() { return (GetTimeSeriesServiceStatisticsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy