AWS SDK for C++

AWS SDK for C++ Version 1.11.908

Loading...
Searching...
No Matches
AssignedSession.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/AssignedSessionAction.h>
12#include <aws/deadline/model/LogConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline {
24namespace Model {
25
32 public:
33 AWS_DEADLINE_API AssignedSession() = default;
34 AWS_DEADLINE_API AssignedSession(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetQueueId() const { return m_queueId; }
43 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
44 template <typename QueueIdT = Aws::String>
45 void SetQueueId(QueueIdT&& value) {
46 m_queueIdHasBeenSet = true;
47 m_queueId = std::forward<QueueIdT>(value);
48 }
49 template <typename QueueIdT = Aws::String>
50 AssignedSession& WithQueueId(QueueIdT&& value) {
51 SetQueueId(std::forward<QueueIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetJobId() const { return m_jobId; }
61 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
62 template <typename JobIdT = Aws::String>
63 void SetJobId(JobIdT&& value) {
64 m_jobIdHasBeenSet = true;
65 m_jobId = std::forward<JobIdT>(value);
66 }
67 template <typename JobIdT = Aws::String>
68 AssignedSession& WithJobId(JobIdT&& value) {
69 SetJobId(std::forward<JobIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<AssignedSessionAction>& GetSessionActions() const { return m_sessionActions; }
79 inline bool SessionActionsHasBeenSet() const { return m_sessionActionsHasBeenSet; }
80 template <typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
81 void SetSessionActions(SessionActionsT&& value) {
82 m_sessionActionsHasBeenSet = true;
83 m_sessionActions = std::forward<SessionActionsT>(value);
84 }
85 template <typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
86 AssignedSession& WithSessionActions(SessionActionsT&& value) {
87 SetSessionActions(std::forward<SessionActionsT>(value));
88 return *this;
89 }
90 template <typename SessionActionsT = AssignedSessionAction>
91 AssignedSession& AddSessionActions(SessionActionsT&& value) {
92 m_sessionActionsHasBeenSet = true;
93 m_sessionActions.emplace_back(std::forward<SessionActionsT>(value));
94 return *this;
95 }
97
99
102 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
103 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
104 template <typename LogConfigurationT = LogConfiguration>
105 void SetLogConfiguration(LogConfigurationT&& value) {
106 m_logConfigurationHasBeenSet = true;
107 m_logConfiguration = std::forward<LogConfigurationT>(value);
108 }
109 template <typename LogConfigurationT = LogConfiguration>
110 AssignedSession& WithLogConfiguration(LogConfigurationT&& value) {
111 SetLogConfiguration(std::forward<LogConfigurationT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
122 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
123 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
124 void SetMetadata(MetadataT&& value) {
125 m_metadataHasBeenSet = true;
126 m_metadata = std::forward<MetadataT>(value);
127 }
128 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
129 AssignedSession& WithMetadata(MetadataT&& value) {
130 SetMetadata(std::forward<MetadataT>(value));
131 return *this;
132 }
133 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
134 AssignedSession& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
135 m_metadataHasBeenSet = true;
136 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_queueId;
142
143 Aws::String m_jobId;
144
145 Aws::Vector<AssignedSessionAction> m_sessionActions;
146
147 LogConfiguration m_logConfiguration;
148
150 bool m_queueIdHasBeenSet = false;
151 bool m_jobIdHasBeenSet = false;
152 bool m_sessionActionsHasBeenSet = false;
153 bool m_logConfigurationHasBeenSet = false;
154 bool m_metadataHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace deadline
159} // namespace Aws
AssignedSession & AddSessionActions(SessionActionsT &&value)
const Aws::String & GetJobId() const
const LogConfiguration & GetLogConfiguration() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogConfiguration(LogConfigurationT &&value)
const Aws::String & GetQueueId() const
AssignedSession & WithQueueId(QueueIdT &&value)
void SetSessionActions(SessionActionsT &&value)
AWS_DEADLINE_API AssignedSession()=default
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AssignedSession & WithJobId(JobIdT &&value)
AssignedSession & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
AssignedSession & WithMetadata(MetadataT &&value)
AssignedSession & WithSessionActions(SessionActionsT &&value)
AWS_DEADLINE_API AssignedSession(Aws::Utils::Json::JsonView jsonValue)
AssignedSession & WithLogConfiguration(LogConfigurationT &&value)
AWS_DEADLINE_API AssignedSession & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AssignedSessionAction > & GetSessionActions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue