/* * 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 dimension type field with date type columns. *

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

* The custom field ID. *

*/ private String fieldId; /** *

* The column that is used in the DateDimensionField. *

*/ private ColumnIdentifier column; /** *

* The date granularity of the DateDimensionField. Choose one of the following options: *

* */ private String dateGranularity; /** *

* The custom hierarchy ID. *

*/ private String hierarchyId; /** *

* The format configuration of the field. *

*/ private DateTimeFormatConfiguration formatConfiguration; /** *

* The custom field ID. *

* * @param fieldId * The custom field ID. */ public void setFieldId(String fieldId) { this.fieldId = fieldId; } /** *

* The custom field ID. *

* * @return The custom field ID. */ public String getFieldId() { return this.fieldId; } /** *

* The custom field ID. *

* * @param fieldId * The custom field ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DateDimensionField withFieldId(String fieldId) { setFieldId(fieldId); return this; } /** *

* The column that is used in the DateDimensionField. *

* * @param column * The column that is used in the DateDimensionField. */ public void setColumn(ColumnIdentifier column) { this.column = column; } /** *

* The column that is used in the DateDimensionField. *

* * @return The column that is used in the DateDimensionField. */ public ColumnIdentifier getColumn() { return this.column; } /** *

* The column that is used in the DateDimensionField. *

* * @param column * The column that is used in the DateDimensionField. * @return Returns a reference to this object so that method calls can be chained together. */ public DateDimensionField withColumn(ColumnIdentifier column) { setColumn(column); return this; } /** *

* The date granularity of the DateDimensionField. Choose one of the following options: *

* * * @param dateGranularity * The date granularity of the DateDimensionField. Choose one of the following options:

*