AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
BatchGetSessionError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/BatchGetSessionErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
30 public:
31 AWS_DEADLINE_API BatchGetSessionError() = default;
34 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFarmId() const { return m_farmId; }
41 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
42 template <typename FarmIdT = Aws::String>
43 void SetFarmId(FarmIdT&& value) {
44 m_farmIdHasBeenSet = true;
45 m_farmId = std::forward<FarmIdT>(value);
46 }
47 template <typename FarmIdT = Aws::String>
48 BatchGetSessionError& WithFarmId(FarmIdT&& value) {
49 SetFarmId(std::forward<FarmIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetQueueId() const { return m_queueId; }
59 inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; }
60 template <typename QueueIdT = Aws::String>
61 void SetQueueId(QueueIdT&& value) {
62 m_queueIdHasBeenSet = true;
63 m_queueId = std::forward<QueueIdT>(value);
64 }
65 template <typename QueueIdT = Aws::String>
66 BatchGetSessionError& WithQueueId(QueueIdT&& value) {
67 SetQueueId(std::forward<QueueIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetJobId() const { return m_jobId; }
77 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
78 template <typename JobIdT = Aws::String>
79 void SetJobId(JobIdT&& value) {
80 m_jobIdHasBeenSet = true;
81 m_jobId = std::forward<JobIdT>(value);
82 }
83 template <typename JobIdT = Aws::String>
85 SetJobId(std::forward<JobIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetSessionId() const { return m_sessionId; }
95 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
96 template <typename SessionIdT = Aws::String>
97 void SetSessionId(SessionIdT&& value) {
98 m_sessionIdHasBeenSet = true;
99 m_sessionId = std::forward<SessionIdT>(value);
100 }
101 template <typename SessionIdT = Aws::String>
102 BatchGetSessionError& WithSessionId(SessionIdT&& value) {
103 SetSessionId(std::forward<SessionIdT>(value));
104 return *this;
105 }
107
109
112 inline BatchGetSessionErrorCode GetCode() const { return m_code; }
113 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
115 m_codeHasBeenSet = true;
116 m_code = value;
117 }
119 SetCode(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetMessage() const { return m_message; }
129 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
130 template <typename MessageT = Aws::String>
131 void SetMessage(MessageT&& value) {
132 m_messageHasBeenSet = true;
133 m_message = std::forward<MessageT>(value);
134 }
135 template <typename MessageT = Aws::String>
137 SetMessage(std::forward<MessageT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_farmId;
143
144 Aws::String m_queueId;
145
146 Aws::String m_jobId;
147
148 Aws::String m_sessionId;
149
151
152 Aws::String m_message;
153 bool m_farmIdHasBeenSet = false;
154 bool m_queueIdHasBeenSet = false;
155 bool m_jobIdHasBeenSet = false;
156 bool m_sessionIdHasBeenSet = false;
157 bool m_codeHasBeenSet = false;
158 bool m_messageHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace deadline
163} // namespace Aws
BatchGetSessionError & WithFarmId(FarmIdT &&value)
AWS_DEADLINE_API BatchGetSessionError(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionError & WithSessionId(SessionIdT &&value)
BatchGetSessionError & WithQueueId(QueueIdT &&value)
BatchGetSessionError & WithCode(BatchGetSessionErrorCode value)
AWS_DEADLINE_API BatchGetSessionError()=default
AWS_DEADLINE_API BatchGetSessionError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetSessionError & WithMessage(MessageT &&value)
void SetCode(BatchGetSessionErrorCode value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetSessionError & WithJobId(JobIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue