AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssignedSession.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/model/LogConfiguration.h>
11#include <aws/deadline/model/AssignedSessionAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace deadline
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DEADLINE_API AssignedSession() = default;
38 AWS_DEADLINE_API AssignedSession(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetQueueId() const { return m_queueId; }
48 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
49 template<typename QueueIdT = Aws::String>
50 void SetQueueId(QueueIdT&& value) { m_queueIdHasBeenSet = true; m_queueId = std::forward<QueueIdT>(value); }
51 template<typename QueueIdT = Aws::String>
52 AssignedSession& WithQueueId(QueueIdT&& value) { SetQueueId(std::forward<QueueIdT>(value)); return *this;}
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) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
63 template<typename JobIdT = Aws::String>
64 AssignedSession& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
66
68
71 inline const Aws::Vector<AssignedSessionAction>& GetSessionActions() const { return m_sessionActions; }
72 inline bool SessionActionsHasBeenSet() const { return m_sessionActionsHasBeenSet; }
73 template<typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
74 void SetSessionActions(SessionActionsT&& value) { m_sessionActionsHasBeenSet = true; m_sessionActions = std::forward<SessionActionsT>(value); }
75 template<typename SessionActionsT = Aws::Vector<AssignedSessionAction>>
76 AssignedSession& WithSessionActions(SessionActionsT&& value) { SetSessionActions(std::forward<SessionActionsT>(value)); return *this;}
77 template<typename SessionActionsT = AssignedSessionAction>
78 AssignedSession& AddSessionActions(SessionActionsT&& value) { m_sessionActionsHasBeenSet = true; m_sessionActions.emplace_back(std::forward<SessionActionsT>(value)); return *this; }
80
82
85 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
86 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
87 template<typename LogConfigurationT = LogConfiguration>
88 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
89 template<typename LogConfigurationT = LogConfiguration>
90 AssignedSession& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
92 private:
93
94 Aws::String m_queueId;
95 bool m_queueIdHasBeenSet = false;
96
97 Aws::String m_jobId;
98 bool m_jobIdHasBeenSet = false;
99
100 Aws::Vector<AssignedSessionAction> m_sessionActions;
101 bool m_sessionActionsHasBeenSet = false;
102
103 LogConfiguration m_logConfiguration;
104 bool m_logConfigurationHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace deadline
109} // 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