AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateQAppSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qapps/QAppsRequest.h>
10#include <aws/qapps/QApps_EXPORTS.h>
11#include <aws/qapps/model/CardValue.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QApps {
17namespace Model {
18
22 public:
23 AWS_QAPPS_API UpdateQAppSessionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateQAppSession"; }
30
31 AWS_QAPPS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSessionId() const { return m_sessionId; }
59 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
60 template <typename SessionIdT = Aws::String>
61 void SetSessionId(SessionIdT&& value) {
62 m_sessionIdHasBeenSet = true;
63 m_sessionId = std::forward<SessionIdT>(value);
64 }
65 template <typename SessionIdT = Aws::String>
67 SetSessionId(std::forward<SessionIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<CardValue>& GetValues() const { return m_values; }
77 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
78 template <typename ValuesT = Aws::Vector<CardValue>>
79 void SetValues(ValuesT&& value) {
80 m_valuesHasBeenSet = true;
81 m_values = std::forward<ValuesT>(value);
82 }
83 template <typename ValuesT = Aws::Vector<CardValue>>
85 SetValues(std::forward<ValuesT>(value));
86 return *this;
87 }
88 template <typename ValuesT = CardValue>
90 m_valuesHasBeenSet = true;
91 m_values.emplace_back(std::forward<ValuesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_instanceId;
97
98 Aws::String m_sessionId;
99
100 Aws::Vector<CardValue> m_values;
101 bool m_instanceIdHasBeenSet = false;
102 bool m_sessionIdHasBeenSet = false;
103 bool m_valuesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace QApps
108} // namespace Aws
AWS_QAPPS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateQAppSessionRequest & WithInstanceId(InstanceIdT &&value)
UpdateQAppSessionRequest & WithSessionId(SessionIdT &&value)
AWS_QAPPS_API UpdateQAppSessionRequest()=default
const Aws::Vector< CardValue > & GetValues() const
UpdateQAppSessionRequest & AddValues(ValuesT &&value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateQAppSessionRequest & WithValues(ValuesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector