AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Index.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/IndexStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
30class Index {
31 public:
32 AWS_QBUSINESS_API Index() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDisplayName() const { return m_displayName; }
42 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
43 template <typename DisplayNameT = Aws::String>
45 m_displayNameHasBeenSet = true;
46 m_displayName = std::forward<DisplayNameT>(value);
47 }
48 template <typename DisplayNameT = Aws::String>
50 SetDisplayName(std::forward<DisplayNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIndexId() const { return m_indexId; }
60 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
61 template <typename IndexIdT = Aws::String>
62 void SetIndexId(IndexIdT&& value) {
63 m_indexIdHasBeenSet = true;
64 m_indexId = std::forward<IndexIdT>(value);
65 }
66 template <typename IndexIdT = Aws::String>
68 SetIndexId(std::forward<IndexIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
96 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
97 template <typename UpdatedAtT = Aws::Utils::DateTime>
98 void SetUpdatedAt(UpdatedAtT&& value) {
99 m_updatedAtHasBeenSet = true;
100 m_updatedAt = std::forward<UpdatedAtT>(value);
101 }
102 template <typename UpdatedAtT = Aws::Utils::DateTime>
104 SetUpdatedAt(std::forward<UpdatedAtT>(value));
105 return *this;
106 }
108
110
114 inline IndexStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(IndexStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
120 inline Index& WithStatus(IndexStatus value) {
121 SetStatus(value);
122 return *this;
123 }
125 private:
126 Aws::String m_displayName;
127 bool m_displayNameHasBeenSet = false;
128
129 Aws::String m_indexId;
130 bool m_indexIdHasBeenSet = false;
131
132 Aws::Utils::DateTime m_createdAt{};
133 bool m_createdAtHasBeenSet = false;
134
135 Aws::Utils::DateTime m_updatedAt{};
136 bool m_updatedAtHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace QBusiness
144} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Index.h:77
Index & WithStatus(IndexStatus value)
Definition Index.h:120
bool UpdatedAtHasBeenSet() const
Definition Index.h:96
AWS_QBUSINESS_API Index & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition Index.h:115
Index & WithUpdatedAt(UpdatedAtT &&value)
Definition Index.h:103
void SetIndexId(IndexIdT &&value)
Definition Index.h:62
void SetDisplayName(DisplayNameT &&value)
Definition Index.h:44
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
Index & WithCreatedAt(CreatedAtT &&value)
Definition Index.h:85
bool CreatedAtHasBeenSet() const
Definition Index.h:78
AWS_QBUSINESS_API Index(Aws::Utils::Json::JsonView jsonValue)
Index & WithDisplayName(DisplayNameT &&value)
Definition Index.h:49
bool IndexIdHasBeenSet() const
Definition Index.h:60
void SetCreatedAt(CreatedAtT &&value)
Definition Index.h:80
void SetUpdatedAt(UpdatedAtT &&value)
Definition Index.h:98
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Index.h:95
void SetStatus(IndexStatus value)
Definition Index.h:116
bool DisplayNameHasBeenSet() const
Definition Index.h:42
Index & WithIndexId(IndexIdT &&value)
Definition Index.h:67
IndexStatus GetStatus() const
Definition Index.h:114
const Aws::String & GetDisplayName() const
Definition Index.h:41
AWS_QBUSINESS_API Index()=default
const Aws::String & GetIndexId() const
Definition Index.h:59
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue