1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace LookoutMetrics
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Contains information about the column used to track time in a source data
28    * file.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25/TimestampColumn">AWS
30    * API Reference</a></p>
31    */
32   class AWS_LOOKOUTMETRICS_API TimestampColumn
33   {
34   public:
35     TimestampColumn();
36     TimestampColumn(Aws::Utils::Json::JsonView jsonValue);
37     TimestampColumn& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The name of the timestamp column.</p>
43      */
GetColumnName()44     inline const Aws::String& GetColumnName() const{ return m_columnName; }
45 
46     /**
47      * <p>The name of the timestamp column.</p>
48      */
ColumnNameHasBeenSet()49     inline bool ColumnNameHasBeenSet() const { return m_columnNameHasBeenSet; }
50 
51     /**
52      * <p>The name of the timestamp column.</p>
53      */
SetColumnName(const Aws::String & value)54     inline void SetColumnName(const Aws::String& value) { m_columnNameHasBeenSet = true; m_columnName = value; }
55 
56     /**
57      * <p>The name of the timestamp column.</p>
58      */
SetColumnName(Aws::String && value)59     inline void SetColumnName(Aws::String&& value) { m_columnNameHasBeenSet = true; m_columnName = std::move(value); }
60 
61     /**
62      * <p>The name of the timestamp column.</p>
63      */
SetColumnName(const char * value)64     inline void SetColumnName(const char* value) { m_columnNameHasBeenSet = true; m_columnName.assign(value); }
65 
66     /**
67      * <p>The name of the timestamp column.</p>
68      */
WithColumnName(const Aws::String & value)69     inline TimestampColumn& WithColumnName(const Aws::String& value) { SetColumnName(value); return *this;}
70 
71     /**
72      * <p>The name of the timestamp column.</p>
73      */
WithColumnName(Aws::String && value)74     inline TimestampColumn& WithColumnName(Aws::String&& value) { SetColumnName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the timestamp column.</p>
78      */
WithColumnName(const char * value)79     inline TimestampColumn& WithColumnName(const char* value) { SetColumnName(value); return *this;}
80 
81 
82     /**
83      * <p>The format of the timestamp column.</p>
84      */
GetColumnFormat()85     inline const Aws::String& GetColumnFormat() const{ return m_columnFormat; }
86 
87     /**
88      * <p>The format of the timestamp column.</p>
89      */
ColumnFormatHasBeenSet()90     inline bool ColumnFormatHasBeenSet() const { return m_columnFormatHasBeenSet; }
91 
92     /**
93      * <p>The format of the timestamp column.</p>
94      */
SetColumnFormat(const Aws::String & value)95     inline void SetColumnFormat(const Aws::String& value) { m_columnFormatHasBeenSet = true; m_columnFormat = value; }
96 
97     /**
98      * <p>The format of the timestamp column.</p>
99      */
SetColumnFormat(Aws::String && value)100     inline void SetColumnFormat(Aws::String&& value) { m_columnFormatHasBeenSet = true; m_columnFormat = std::move(value); }
101 
102     /**
103      * <p>The format of the timestamp column.</p>
104      */
SetColumnFormat(const char * value)105     inline void SetColumnFormat(const char* value) { m_columnFormatHasBeenSet = true; m_columnFormat.assign(value); }
106 
107     /**
108      * <p>The format of the timestamp column.</p>
109      */
WithColumnFormat(const Aws::String & value)110     inline TimestampColumn& WithColumnFormat(const Aws::String& value) { SetColumnFormat(value); return *this;}
111 
112     /**
113      * <p>The format of the timestamp column.</p>
114      */
WithColumnFormat(Aws::String && value)115     inline TimestampColumn& WithColumnFormat(Aws::String&& value) { SetColumnFormat(std::move(value)); return *this;}
116 
117     /**
118      * <p>The format of the timestamp column.</p>
119      */
WithColumnFormat(const char * value)120     inline TimestampColumn& WithColumnFormat(const char* value) { SetColumnFormat(value); return *this;}
121 
122   private:
123 
124     Aws::String m_columnName;
125     bool m_columnNameHasBeenSet;
126 
127     Aws::String m_columnFormat;
128     bool m_columnFormatHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace LookoutMetrics
133 } // namespace Aws
134