/* * 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.lookoutmetrics.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 UpdateMetricSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ARN of the dataset to update. *
*/ private String metricSetArn; /** ** The dataset's description. *
*/ private String metricSetDescription; /** ** The metric list. *
*/ private java.util.List* After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only * supported for S3, Redshift, Athena and datasources. *
*/ private Integer offset; /** ** The timestamp column. *
*/ private TimestampColumn timestampColumn; /** ** The dimension list. *
*/ private java.util.List* The dataset's interval. *
*/ private String metricSetFrequency; private MetricSource metricSource; /** ** Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the * dimension and one of its values that you want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR operation. *
*/ private java.util.List* The ARN of the dataset to update. *
* * @param metricSetArn * The ARN of the dataset to update. */ public void setMetricSetArn(String metricSetArn) { this.metricSetArn = metricSetArn; } /** ** The ARN of the dataset to update. *
* * @return The ARN of the dataset to update. */ public String getMetricSetArn() { return this.metricSetArn; } /** ** The ARN of the dataset to update. *
* * @param metricSetArn * The ARN of the dataset to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withMetricSetArn(String metricSetArn) { setMetricSetArn(metricSetArn); return this; } /** ** The dataset's description. *
* * @param metricSetDescription * The dataset's description. */ public void setMetricSetDescription(String metricSetDescription) { this.metricSetDescription = metricSetDescription; } /** ** The dataset's description. *
* * @return The dataset's description. */ public String getMetricSetDescription() { return this.metricSetDescription; } /** ** The dataset's description. *
* * @param metricSetDescription * The dataset's description. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withMetricSetDescription(String metricSetDescription) { setMetricSetDescription(metricSetDescription); return this; } /** ** The metric list. *
* * @return The metric list. */ public java.util.List* The metric list. *
* * @param metricList * The metric list. */ public void setMetricList(java.util.Collection* The metric list. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricList(java.util.Collection)} or {@link #withMetricList(java.util.Collection)} if you want to * override the existing values. *
* * @param metricList * The metric list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withMetricList(Metric... metricList) { if (this.metricList == null) { setMetricList(new java.util.ArrayList* The metric list. *
* * @param metricList * The metric list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withMetricList(java.util.Collection* After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only * supported for S3, Redshift, Athena and datasources. *
* * @param offset * After an interval ends, the amount of seconds that the detector waits before importing data. Offset is * only supported for S3, Redshift, Athena and datasources. */ public void setOffset(Integer offset) { this.offset = offset; } /** ** After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only * supported for S3, Redshift, Athena and datasources. *
* * @return After an interval ends, the amount of seconds that the detector waits before importing data. Offset is * only supported for S3, Redshift, Athena and datasources. */ public Integer getOffset() { return this.offset; } /** ** After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only * supported for S3, Redshift, Athena and datasources. *
* * @param offset * After an interval ends, the amount of seconds that the detector waits before importing data. Offset is * only supported for S3, Redshift, Athena and datasources. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withOffset(Integer offset) { setOffset(offset); return this; } /** ** The timestamp column. *
* * @param timestampColumn * The timestamp column. */ public void setTimestampColumn(TimestampColumn timestampColumn) { this.timestampColumn = timestampColumn; } /** ** The timestamp column. *
* * @return The timestamp column. */ public TimestampColumn getTimestampColumn() { return this.timestampColumn; } /** ** The timestamp column. *
* * @param timestampColumn * The timestamp column. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withTimestampColumn(TimestampColumn timestampColumn) { setTimestampColumn(timestampColumn); return this; } /** ** The dimension list. *
* * @return The dimension list. */ public java.util.List* The dimension list. *
* * @param dimensionList * The dimension list. */ public void setDimensionList(java.util.Collection* The dimension list. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDimensionList(java.util.Collection)} or {@link #withDimensionList(java.util.Collection)} if you want * to override the existing values. *
* * @param dimensionList * The dimension list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withDimensionList(String... dimensionList) { if (this.dimensionList == null) { setDimensionList(new java.util.ArrayList* The dimension list. *
* * @param dimensionList * The dimension list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withDimensionList(java.util.Collection* The dataset's interval. *
* * @param metricSetFrequency * The dataset's interval. * @see Frequency */ public void setMetricSetFrequency(String metricSetFrequency) { this.metricSetFrequency = metricSetFrequency; } /** ** The dataset's interval. *
* * @return The dataset's interval. * @see Frequency */ public String getMetricSetFrequency() { return this.metricSetFrequency; } /** ** The dataset's interval. *
* * @param metricSetFrequency * The dataset's interval. * @return Returns a reference to this object so that method calls can be chained together. * @see Frequency */ public UpdateMetricSetRequest withMetricSetFrequency(String metricSetFrequency) { setMetricSetFrequency(metricSetFrequency); return this; } /** ** The dataset's interval. *
* * @param metricSetFrequency * The dataset's interval. * @return Returns a reference to this object so that method calls can be chained together. * @see Frequency */ public UpdateMetricSetRequest withMetricSetFrequency(Frequency metricSetFrequency) { this.metricSetFrequency = metricSetFrequency.toString(); return this; } /** * @param metricSource */ public void setMetricSource(MetricSource metricSource) { this.metricSource = metricSource; } /** * @return */ public MetricSource getMetricSource() { return this.metricSource; } /** * @param metricSource * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withMetricSource(MetricSource metricSource) { setMetricSource(metricSource); return this; } /** ** Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the * dimension and one of its values that you want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR operation. *
* * @return Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of * the dimension and one of its values that you want to include. When multiple dimensions or values are * specified, the dimensions are joined with an AND operation and the values are joined with an OR * operation. */ public java.util.List* Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the * dimension and one of its values that you want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR operation. *
* * @param dimensionFilterList * Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of * the dimension and one of its values that you want to include. When multiple dimensions or values are * specified, the dimensions are joined with an AND operation and the values are joined with an OR operation. */ public void setDimensionFilterList(java.util.Collection* Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the * dimension and one of its values that you want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDimensionFilterList(java.util.Collection)} or {@link #withDimensionFilterList(java.util.Collection)} * if you want to override the existing values. *
* * @param dimensionFilterList * Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of * the dimension and one of its values that you want to include. When multiple dimensions or values are * specified, the dimensions are joined with an AND operation and the values are joined with an OR operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withDimensionFilterList(MetricSetDimensionFilter... dimensionFilterList) { if (this.dimensionFilterList == null) { setDimensionFilterList(new java.util.ArrayList* Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the * dimension and one of its values that you want to include. When multiple dimensions or values are specified, the * dimensions are joined with an AND operation and the values are joined with an OR operation. *
* * @param dimensionFilterList * Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of * the dimension and one of its values that you want to include. When multiple dimensions or values are * specified, the dimensions are joined with an AND operation and the values are joined with an OR operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateMetricSetRequest withDimensionFilterList(java.util.Collection