AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/importexport/ImportExport_EXPORTS.h>
11#include <aws/importexport/model/JobType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ImportExport {
22namespace Model {
23
29class Job {
30 public:
31 AWS_IMPORTEXPORT_API Job() = default;
32 AWS_IMPORTEXPORT_API Job(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_IMPORTEXPORT_API Job& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_IMPORTEXPORT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_IMPORTEXPORT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
42 template <typename JobIdT = Aws::String>
43 void SetJobId(JobIdT&& value) {
44 m_jobIdHasBeenSet = true;
45 m_jobId = std::forward<JobIdT>(value);
46 }
47 template <typename JobIdT = Aws::String>
48 Job& WithJobId(JobIdT&& value) {
49 SetJobId(std::forward<JobIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
57 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
58 template <typename CreationDateT = Aws::Utils::DateTime>
59 void SetCreationDate(CreationDateT&& value) {
60 m_creationDateHasBeenSet = true;
61 m_creationDate = std::forward<CreationDateT>(value);
62 }
63 template <typename CreationDateT = Aws::Utils::DateTime>
64 Job& WithCreationDate(CreationDateT&& value) {
65 SetCreationDate(std::forward<CreationDateT>(value));
66 return *this;
67 }
69
71
72 inline bool GetIsCanceled() const { return m_isCanceled; }
73 inline bool IsCanceledHasBeenSet() const { return m_isCanceledHasBeenSet; }
74 inline void SetIsCanceled(bool value) {
75 m_isCanceledHasBeenSet = true;
76 m_isCanceled = value;
77 }
78 inline Job& WithIsCanceled(bool value) {
79 SetIsCanceled(value);
80 return *this;
81 }
83
85
86 inline JobType GetJobType() const { return m_jobType; }
87 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
88 inline void SetJobType(JobType value) {
89 m_jobTypeHasBeenSet = true;
90 m_jobType = value;
91 }
92 inline Job& WithJobType(JobType value) {
93 SetJobType(value);
94 return *this;
95 }
97 private:
98 Aws::String m_jobId;
99
100 Aws::Utils::DateTime m_creationDate{};
101
102 bool m_isCanceled{false};
103
104 JobType m_jobType{JobType::NOT_SET};
105 bool m_jobIdHasBeenSet = false;
106 bool m_creationDateHasBeenSet = false;
107 bool m_isCanceledHasBeenSet = false;
108 bool m_jobTypeHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace ImportExport
113} // namespace Aws
AWS_IMPORTEXPORT_API Job(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIsCanceled(bool value)
Definition Job.h:74
AWS_IMPORTEXPORT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetJobId() const
Definition Job.h:40
void SetJobType(JobType value)
Definition Job.h:88
bool CreationDateHasBeenSet() const
Definition Job.h:57
Job & WithCreationDate(CreationDateT &&value)
Definition Job.h:64
AWS_IMPORTEXPORT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
JobType GetJobType() const
Definition Job.h:86
bool IsCanceledHasBeenSet() const
Definition Job.h:73
Job & WithIsCanceled(bool value)
Definition Job.h:78
bool JobIdHasBeenSet() const
Definition Job.h:41
const Aws::Utils::DateTime & GetCreationDate() const
Definition Job.h:56
bool JobTypeHasBeenSet() const
Definition Job.h:87
Job & WithJobId(JobIdT &&value)
Definition Job.h:48
bool GetIsCanceled() const
Definition Job.h:72
void SetJobId(JobIdT &&value)
Definition Job.h:43
Job & WithJobType(JobType value)
Definition Job.h:92
AWS_IMPORTEXPORT_API Job & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IMPORTEXPORT_API Job()=default
void SetCreationDate(CreationDateT &&value)
Definition Job.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream