AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
JobListEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/JobState.h>
11#include <aws/snowball/model/JobType.h>
12#include <aws/snowball/model/SnowballType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Snowball {
24namespace Model {
25
34 public:
35 AWS_SNOWBALL_API JobListEntry() = default;
36 AWS_SNOWBALL_API JobListEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 template <typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) {
49 m_jobIdHasBeenSet = true;
50 m_jobId = std::forward<JobIdT>(value);
51 }
52 template <typename JobIdT = Aws::String>
53 JobListEntry& WithJobId(JobIdT&& value) {
54 SetJobId(std::forward<JobIdT>(value));
55 return *this;
56 }
58
60
63 inline JobState GetJobState() const { return m_jobState; }
64 inline bool JobStateHasBeenSet() const { return m_jobStateHasBeenSet; }
65 inline void SetJobState(JobState value) {
66 m_jobStateHasBeenSet = true;
67 m_jobState = value;
68 }
70 SetJobState(value);
71 return *this;
72 }
74
76
84 inline bool GetIsMaster() const { return m_isMaster; }
85 inline bool IsMasterHasBeenSet() const { return m_isMasterHasBeenSet; }
86 inline void SetIsMaster(bool value) {
87 m_isMasterHasBeenSet = true;
88 m_isMaster = value;
89 }
90 inline JobListEntry& WithIsMaster(bool value) {
91 SetIsMaster(value);
92 return *this;
93 }
95
97
100 inline JobType GetJobType() const { return m_jobType; }
101 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
102 inline void SetJobType(JobType value) {
103 m_jobTypeHasBeenSet = true;
104 m_jobType = value;
105 }
107 SetJobType(value);
108 return *this;
109 }
111
113
116 inline SnowballType GetSnowballType() const { return m_snowballType; }
117 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
118 inline void SetSnowballType(SnowballType value) {
119 m_snowballTypeHasBeenSet = true;
120 m_snowballType = value;
121 }
123 SetSnowballType(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
133 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
134 template <typename CreationDateT = Aws::Utils::DateTime>
135 void SetCreationDate(CreationDateT&& value) {
136 m_creationDateHasBeenSet = true;
137 m_creationDate = std::forward<CreationDateT>(value);
138 }
139 template <typename CreationDateT = Aws::Utils::DateTime>
140 JobListEntry& WithCreationDate(CreationDateT&& value) {
141 SetCreationDate(std::forward<CreationDateT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 JobListEntry& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_jobId;
166
167 JobState m_jobState{JobState::NOT_SET};
168
169 bool m_isMaster{false};
170
171 JobType m_jobType{JobType::NOT_SET};
172
173 SnowballType m_snowballType{SnowballType::NOT_SET};
174
175 Aws::Utils::DateTime m_creationDate{};
176
177 Aws::String m_description;
178 bool m_jobIdHasBeenSet = false;
179 bool m_jobStateHasBeenSet = false;
180 bool m_isMasterHasBeenSet = false;
181 bool m_jobTypeHasBeenSet = false;
182 bool m_snowballTypeHasBeenSet = false;
183 bool m_creationDateHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace Snowball
189} // namespace Aws
void SetDescription(DescriptionT &&value)
void SetJobState(JobState value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetSnowballType(SnowballType value)
void SetJobType(JobType value)
bool SnowballTypeHasBeenSet() const
const Aws::String & GetDescription() const
SnowballType GetSnowballType() const
bool JobStateHasBeenSet() const
JobListEntry & WithCreationDate(CreationDateT &&value)
JobState GetJobState() const
bool JobIdHasBeenSet() const
void SetJobId(JobIdT &&value)
bool IsMasterHasBeenSet() const
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
JobListEntry & WithJobType(JobType value)
void SetIsMaster(bool value)
JobType GetJobType() const
bool GetIsMaster() const
JobListEntry & WithJobId(JobIdT &&value)
bool DescriptionHasBeenSet() const
AWS_SNOWBALL_API JobListEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobId() const
void SetCreationDate(CreationDateT &&value)
JobListEntry & WithIsMaster(bool value)
JobListEntry & WithDescription(DescriptionT &&value)
AWS_SNOWBALL_API JobListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
JobListEntry & WithSnowballType(SnowballType value)
AWS_SNOWBALL_API JobListEntry()=default
JobListEntry & WithJobState(JobState value)
bool CreationDateHasBeenSet() const
bool JobTypeHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue