AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AssignedSession.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/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/AssignedSessionAction.h>
11#include <aws/deadline/model/LogConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline {
23namespace Model {
24
31 public:
32 AWS_DEADLINE_API AssignedSession() = default;
33 AWS_DEADLINE_API AssignedSession(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetQueueId() const { return m_queueId; }
42 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
43 template <typename QueueIdT = Aws::String>
44 void SetQueueId(QueueIdT&& value) {
45 m_queueIdHasBeenSet = true;
46 m_queueId = std::forward<QueueIdT>(value);
47 }
48 template <typename QueueIdT = Aws::String>
49 AssignedSession& WithQueueId(QueueIdT&& value) {
50 SetQueueId(std::forward<QueueIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetJobId() const { return m_jobId; }
60 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
61 template <typename JobIdT = Aws::String>
62 void SetJobId(JobIdT&& value) {
63 m_jobIdHasBeenSet = true;
64 m_jobId = std::forward<JobIdT>(value);
65 }
66 template <typename JobIdT = Aws::String>
67 AssignedSession& WithJobId(JobIdT&& value) {
68 SetJobId(std::forward<JobIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<AssignedSessionAction>& GetSessionActions() const { return m_sessionActions; }
78 inline bool SessionActionsHasBeenSet() const { return m_sessionActionsHasBeenSet; }
79 template <typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
80 void SetSessionActions(SessionActionsT&& value) {
81 m_sessionActionsHasBeenSet = true;
82 m_sessionActions = std::forward<SessionActionsT>(value);
83 }
84 template <typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
85 AssignedSession& WithSessionActions(SessionActionsT&& value) {
86 SetSessionActions(std::forward<SessionActionsT>(value));
87 return *this;
88 }
89 template <typename SessionActionsT = AssignedSessionAction>
90 AssignedSession& AddSessionActions(SessionActionsT&& value) {
91 m_sessionActionsHasBeenSet = true;
92 m_sessionActions.emplace_back(std::forward<SessionActionsT>(value));
93 return *this;
94 }
96
98
101 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
102 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
103 template <typename LogConfigurationT = LogConfiguration>
104 void SetLogConfiguration(LogConfigurationT&& value) {
105 m_logConfigurationHasBeenSet = true;
106 m_logConfiguration = std::forward<LogConfigurationT>(value);
107 }
108 template <typename LogConfigurationT = LogConfiguration>
109 AssignedSession& WithLogConfiguration(LogConfigurationT&& value) {
110 SetLogConfiguration(std::forward<LogConfigurationT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_queueId;
116
117 Aws::String m_jobId;
118
119 Aws::Vector<AssignedSessionAction> m_sessionActions;
120
121 LogConfiguration m_logConfiguration;
122 bool m_queueIdHasBeenSet = false;
123 bool m_jobIdHasBeenSet = false;
124 bool m_sessionActionsHasBeenSet = false;
125 bool m_logConfigurationHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace deadline
130} // 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
AssignedSession & WithJobId(JobIdT &&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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue