AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Index.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/qbusiness/model/IndexStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
34 class Index
35 {
36 public:
37 AWS_QBUSINESS_API Index() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDisplayName() const { return m_displayName; }
48 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
49 template<typename DisplayNameT = Aws::String>
50 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
51 template<typename DisplayNameT = Aws::String>
52 Index& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
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) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
63 template<typename IndexIdT = Aws::String>
64 Index& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
72 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
73 template<typename CreatedAtT = Aws::Utils::DateTime>
74 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 Index& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
84 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
85 template<typename UpdatedAtT = Aws::Utils::DateTime>
86 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
87 template<typename UpdatedAtT = Aws::Utils::DateTime>
88 Index& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
90
92
96 inline IndexStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(IndexStatus value) { m_statusHasBeenSet = true; m_status = value; }
99 inline Index& WithStatus(IndexStatus value) { SetStatus(value); return *this;}
101 private:
102
103 Aws::String m_displayName;
104 bool m_displayNameHasBeenSet = false;
105
106 Aws::String m_indexId;
107 bool m_indexIdHasBeenSet = false;
108
109 Aws::Utils::DateTime m_createdAt{};
110 bool m_createdAtHasBeenSet = false;
111
112 Aws::Utils::DateTime m_updatedAt{};
113 bool m_updatedAtHasBeenSet = false;
114
116 bool m_statusHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace QBusiness
121} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Index.h:71
Index & WithStatus(IndexStatus value)
Definition Index.h:99
bool UpdatedAtHasBeenSet() const
Definition Index.h:84
AWS_QBUSINESS_API Index & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Definition Index.h:97
Index & WithUpdatedAt(UpdatedAtT &&value)
Definition Index.h:88
void SetIndexId(IndexIdT &&value)
Definition Index.h:62
void SetDisplayName(DisplayNameT &&value)
Definition Index.h:50
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
Index & WithCreatedAt(CreatedAtT &&value)
Definition Index.h:76
bool CreatedAtHasBeenSet() const
Definition Index.h:72
AWS_QBUSINESS_API Index(Aws::Utils::Json::JsonView jsonValue)
Index & WithDisplayName(DisplayNameT &&value)
Definition Index.h:52
bool IndexIdHasBeenSet() const
Definition Index.h:60
void SetCreatedAt(CreatedAtT &&value)
Definition Index.h:74
void SetUpdatedAt(UpdatedAtT &&value)
Definition Index.h:86
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Index.h:83
void SetStatus(IndexStatus value)
Definition Index.h:98
bool DisplayNameHasBeenSet() const
Definition Index.h:48
Index & WithIndexId(IndexIdT &&value)
Definition Index.h:64
IndexStatus GetStatus() const
Definition Index.h:96
const Aws::String & GetDisplayName() const
Definition Index.h:47
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