AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateRoomRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Chime {
16namespace Model {
17
21 public:
22 AWS_CHIME_API CreateRoomRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateRoom"; }
29
30 AWS_CHIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAccountId() const { return m_accountId; }
37 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
44 CreateRoomRequest& WithAccountId(AccountIdT&& value) {
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
62 CreateRoomRequest& WithName(NameT&& value) {
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
73 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
74 template <typename ClientRequestTokenT = Aws::String>
75 void SetClientRequestToken(ClientRequestTokenT&& value) {
76 m_clientRequestTokenHasBeenSet = true;
77 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
78 }
79 template <typename ClientRequestTokenT = Aws::String>
80 CreateRoomRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
81 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_accountId;
87
88 Aws::String m_name;
89
90 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
91 bool m_accountIdHasBeenSet = false;
92 bool m_nameHasBeenSet = false;
93 bool m_clientRequestTokenHasBeenSet = true;
94};
95
96} // namespace Model
97} // namespace Chime
98} // namespace Aws
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API CreateRoomRequest()=default
const Aws::String & GetClientRequestToken() const
CreateRoomRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetAccountId(AccountIdT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAccountId() const
const Aws::String & GetName() const
CreateRoomRequest & WithAccountId(AccountIdT &&value)
CreateRoomRequest & WithName(NameT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String