AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Room.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Chime {
21namespace Model {
22
28class Room {
29 public:
30 AWS_CHIME_API Room() = default;
31 AWS_CHIME_API Room(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CHIME_API Room& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetRoomId() const { return m_roomId; }
40 inline bool RoomIdHasBeenSet() const { return m_roomIdHasBeenSet; }
41 template <typename RoomIdT = Aws::String>
42 void SetRoomId(RoomIdT&& value) {
43 m_roomIdHasBeenSet = true;
44 m_roomId = std::forward<RoomIdT>(value);
45 }
46 template <typename RoomIdT = Aws::String>
47 Room& WithRoomId(RoomIdT&& value) {
48 SetRoomId(std::forward<RoomIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 Room& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAccountId() const { return m_accountId; }
76 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
77 template <typename AccountIdT = Aws::String>
78 void SetAccountId(AccountIdT&& value) {
79 m_accountIdHasBeenSet = true;
80 m_accountId = std::forward<AccountIdT>(value);
81 }
82 template <typename AccountIdT = Aws::String>
83 Room& WithAccountId(AccountIdT&& value) {
84 SetAccountId(std::forward<AccountIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
94 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
95 template <typename CreatedByT = Aws::String>
96 void SetCreatedBy(CreatedByT&& value) {
97 m_createdByHasBeenSet = true;
98 m_createdBy = std::forward<CreatedByT>(value);
99 }
100 template <typename CreatedByT = Aws::String>
101 Room& WithCreatedBy(CreatedByT&& value) {
102 SetCreatedBy(std::forward<CreatedByT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
112 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
113 template <typename CreatedTimestampT = Aws::Utils::DateTime>
114 void SetCreatedTimestamp(CreatedTimestampT&& value) {
115 m_createdTimestampHasBeenSet = true;
116 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
117 }
118 template <typename CreatedTimestampT = Aws::Utils::DateTime>
119 Room& WithCreatedTimestamp(CreatedTimestampT&& value) {
120 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const { return m_updatedTimestamp; }
130 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
131 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
132 void SetUpdatedTimestamp(UpdatedTimestampT&& value) {
133 m_updatedTimestampHasBeenSet = true;
134 m_updatedTimestamp = std::forward<UpdatedTimestampT>(value);
135 }
136 template <typename UpdatedTimestampT = Aws::Utils::DateTime>
137 Room& WithUpdatedTimestamp(UpdatedTimestampT&& value) {
138 SetUpdatedTimestamp(std::forward<UpdatedTimestampT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_roomId;
144
145 Aws::String m_name;
146
147 Aws::String m_accountId;
148
149 Aws::String m_createdBy;
150
151 Aws::Utils::DateTime m_createdTimestamp{};
152
153 Aws::Utils::DateTime m_updatedTimestamp{};
154 bool m_roomIdHasBeenSet = false;
155 bool m_nameHasBeenSet = false;
156 bool m_accountIdHasBeenSet = false;
157 bool m_createdByHasBeenSet = false;
158 bool m_createdTimestampHasBeenSet = false;
159 bool m_updatedTimestampHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Chime
164} // namespace Aws
const Aws::String & GetCreatedBy() const
Definition Room.h:93
const Aws::String & GetRoomId() const
Definition Room.h:39
bool AccountIdHasBeenSet() const
Definition Room.h:76
void SetAccountId(AccountIdT &&value)
Definition Room.h:78
Room & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Room.h:119
Room & WithName(NameT &&value)
Definition Room.h:65
Room & WithUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Room.h:137
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Room.h:111
const Aws::String & GetAccountId() const
Definition Room.h:75
const Aws::String & GetName() const
Definition Room.h:57
Room & WithAccountId(AccountIdT &&value)
Definition Room.h:83
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
Definition Room.h:129
void SetName(NameT &&value)
Definition Room.h:60
bool RoomIdHasBeenSet() const
Definition Room.h:40
void SetCreatedBy(CreatedByT &&value)
Definition Room.h:96
Room & WithCreatedBy(CreatedByT &&value)
Definition Room.h:101
AWS_CHIME_API Room(Aws::Utils::Json::JsonView jsonValue)
bool CreatedTimestampHasBeenSet() const
Definition Room.h:112
bool CreatedByHasBeenSet() const
Definition Room.h:94
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Room.h:114
AWS_CHIME_API Room & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CHIME_API Room()=default
bool UpdatedTimestampHasBeenSet() const
Definition Room.h:130
bool NameHasBeenSet() const
Definition Room.h:58
void SetRoomId(RoomIdT &&value)
Definition Room.h:42
void SetUpdatedTimestamp(UpdatedTimestampT &&value)
Definition Room.h:132
Room & WithRoomId(RoomIdT &&value)
Definition Room.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue