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

* The exclude period of TimeRangeFilter or RelativeDatesFilter. *

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

* The amount or number of the exclude period. *

*/ private Integer amount; /** *

* The granularity or unit (day, month, year) of the exclude period. *

*/ private String granularity; /** *

* The status of the exclude period. Choose from the following options: *

* */ private String status; /** *

* The amount or number of the exclude period. *

* * @param amount * The amount or number of the exclude period. */ public void setAmount(Integer amount) { this.amount = amount; } /** *

* The amount or number of the exclude period. *

* * @return The amount or number of the exclude period. */ public Integer getAmount() { return this.amount; } /** *

* The amount or number of the exclude period. *

* * @param amount * The amount or number of the exclude period. * @return Returns a reference to this object so that method calls can be chained together. */ public ExcludePeriodConfiguration withAmount(Integer amount) { setAmount(amount); return this; } /** *

* The granularity or unit (day, month, year) of the exclude period. *

* * @param granularity * The granularity or unit (day, month, year) of the exclude period. * @see TimeGranularity */ public void setGranularity(String granularity) { this.granularity = granularity; } /** *

* The granularity or unit (day, month, year) of the exclude period. *

* * @return The granularity or unit (day, month, year) of the exclude period. * @see TimeGranularity */ public String getGranularity() { return this.granularity; } /** *

* The granularity or unit (day, month, year) of the exclude period. *

* * @param granularity * The granularity or unit (day, month, year) of the exclude period. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeGranularity */ public ExcludePeriodConfiguration withGranularity(String granularity) { setGranularity(granularity); return this; } /** *

* The granularity or unit (day, month, year) of the exclude period. *

* * @param granularity * The granularity or unit (day, month, year) of the exclude period. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeGranularity */ public ExcludePeriodConfiguration withGranularity(TimeGranularity granularity) { this.granularity = granularity.toString(); return this; } /** *

* The status of the exclude period. Choose from the following options: *

* * * @param status * The status of the exclude period. Choose from the following options:

*