AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; }
50 inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); }
51 inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); }
52 inline AssignedSession& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;}
53 inline AssignedSession& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;}
54 inline AssignedSession& WithQueueId(const char* value) { SetQueueId(value); return *this;}
56
58
61 inline const Aws::String& GetJobId() const{ return m_jobId; }
62 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
63 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
64 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
65 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
66 inline AssignedSession& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
67 inline AssignedSession& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
68 inline AssignedSession& WithJobId(const char* value) { SetJobId(value); return *this;}
70
72
75 inline const Aws::Vector<AssignedSessionAction>& GetSessionActions() const{ return m_sessionActions; }
76 inline bool SessionActionsHasBeenSet() const { return m_sessionActionsHasBeenSet; }
77 inline void SetSessionActions(const Aws::Vector<AssignedSessionAction>& value) { m_sessionActionsHasBeenSet = true; m_sessionActions = value; }
78 inline void SetSessionActions(Aws::Vector<AssignedSessionAction>&& value) { m_sessionActionsHasBeenSet = true; m_sessionActions = std::move(value); }
81 inline AssignedSession& AddSessionActions(const AssignedSessionAction& value) { m_sessionActionsHasBeenSet = true; m_sessionActions.push_back(value); return *this; }
82 inline AssignedSession& AddSessionActions(AssignedSessionAction&& value) { m_sessionActionsHasBeenSet = true; m_sessionActions.push_back(std::move(value)); return *this; }
84
86
89 inline const LogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
90 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
91 inline void SetLogConfiguration(const LogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
92 inline void SetLogConfiguration(LogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
93 inline AssignedSession& WithLogConfiguration(const LogConfiguration& value) { SetLogConfiguration(value); return *this;}
94 inline AssignedSession& WithLogConfiguration(LogConfiguration&& value) { SetLogConfiguration(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_queueId;
99 bool m_queueIdHasBeenSet = false;
100
101 Aws::String m_jobId;
102 bool m_jobIdHasBeenSet = false;
103
104 Aws::Vector<AssignedSessionAction> m_sessionActions;
105 bool m_sessionActionsHasBeenSet = false;
106
107 LogConfiguration m_logConfiguration;
108 bool m_logConfigurationHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace deadline
113} // namespace Aws
AssignedSession & WithJobId(Aws::String &&value)
void SetSessionActions(Aws::Vector< AssignedSessionAction > &&value)
void SetSessionActions(const Aws::Vector< AssignedSessionAction > &value)
const Aws::String & GetJobId() const
const LogConfiguration & GetLogConfiguration() const
AssignedSession & AddSessionActions(AssignedSessionAction &&value)
AssignedSession & WithSessionActions(const Aws::Vector< AssignedSessionAction > &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetQueueId() const
AssignedSession & WithQueueId(const Aws::String &value)
AssignedSession & WithJobId(const char *value)
AssignedSession & WithSessionActions(Aws::Vector< AssignedSessionAction > &&value)
void SetQueueId(const Aws::String &value)
AssignedSession & WithLogConfiguration(const LogConfiguration &value)
AWS_DEADLINE_API AssignedSession(Aws::Utils::Json::JsonView jsonValue)
void SetLogConfiguration(const LogConfiguration &value)
AssignedSession & WithLogConfiguration(LogConfiguration &&value)
void SetQueueId(Aws::String &&value)
void SetJobId(Aws::String &&value)
AssignedSession & AddSessionActions(const AssignedSessionAction &value)
AWS_DEADLINE_API AssignedSession & operator=(Aws::Utils::Json::JsonView jsonValue)
AssignedSession & WithQueueId(const char *value)
AssignedSession & WithQueueId(Aws::String &&value)
void SetJobId(const Aws::String &value)
AssignedSession & WithJobId(const Aws::String &value)
void SetLogConfiguration(LogConfiguration &&value)
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