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

* Represents a database table in Timestream. Tables contain one or more related time series. You can modify the * retention duration of the memory store and the magnetic store for a table. *

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

* The Amazon Resource Name that uniquely identifies this table. *

*/ private String arn; /** *

* The name of the Timestream table. *

*/ private String tableName; /** *

* The name of the Timestream database that contains this table. *

*/ private String databaseName; /** *

* The current state of the table: *

* */ private String tableStatus; /** *

* The retention duration for the memory store and magnetic store. *

*/ private RetentionProperties retentionProperties; /** *

* The time when the Timestream table was created. *

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

* The time when the Timestream table was last updated. *

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

* Contains properties to set on the table when enabling magnetic store writes. *

*/ private MagneticStoreWriteProperties magneticStoreWriteProperties; /** *

* The schema of the table. *

*/ private Schema schema; /** *

* The Amazon Resource Name that uniquely identifies this table. *

* * @param arn * The Amazon Resource Name that uniquely identifies this table. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name that uniquely identifies this table. *

* * @return The Amazon Resource Name that uniquely identifies this table. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name that uniquely identifies this table. *

* * @param arn * The Amazon Resource Name that uniquely identifies this table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withArn(String arn) { setArn(arn); return this; } /** *

* The name of the Timestream table. *

* * @param tableName * The name of the Timestream table. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The name of the Timestream table. *

* * @return The name of the Timestream table. */ public String getTableName() { return this.tableName; } /** *

* The name of the Timestream table. *

* * @param tableName * The name of the Timestream table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withTableName(String tableName) { setTableName(tableName); return this; } /** *

* The name of the Timestream database that contains this table. *

* * @param databaseName * The name of the Timestream database that contains this table. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

* The name of the Timestream database that contains this table. *

* * @return The name of the Timestream database that contains this table. */ public String getDatabaseName() { return this.databaseName; } /** *

* The name of the Timestream database that contains this table. *

* * @param databaseName * The name of the Timestream database that contains this table. * @return Returns a reference to this object so that method calls can be chained together. */ public Table withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

* The current state of the table: *

* * * @param tableStatus * The current state of the table:

*