AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobListEntry.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/model/JobState.h>
10#include <aws/snowball/model/JobType.h>
11#include <aws/snowball/model/SnowballType.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Snowball
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_SNOWBALL_API JobListEntry();
41 AWS_SNOWBALL_API JobListEntry(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetJobId() const{ return m_jobId; }
52 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
54 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
55 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
56 inline JobListEntry& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
57 inline JobListEntry& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
58 inline JobListEntry& WithJobId(const char* value) { SetJobId(value); return *this;}
60
62
65 inline const JobState& GetJobState() const{ return m_jobState; }
66 inline bool JobStateHasBeenSet() const { return m_jobStateHasBeenSet; }
67 inline void SetJobState(const JobState& value) { m_jobStateHasBeenSet = true; m_jobState = value; }
68 inline void SetJobState(JobState&& value) { m_jobStateHasBeenSet = true; m_jobState = std::move(value); }
69 inline JobListEntry& WithJobState(const JobState& value) { SetJobState(value); return *this;}
70 inline JobListEntry& WithJobState(JobState&& value) { SetJobState(std::move(value)); return *this;}
72
74
82 inline bool GetIsMaster() const{ return m_isMaster; }
83 inline bool IsMasterHasBeenSet() const { return m_isMasterHasBeenSet; }
84 inline void SetIsMaster(bool value) { m_isMasterHasBeenSet = true; m_isMaster = value; }
85 inline JobListEntry& WithIsMaster(bool value) { SetIsMaster(value); return *this;}
87
89
92 inline const JobType& GetJobType() const{ return m_jobType; }
93 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
94 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
95 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
96 inline JobListEntry& WithJobType(const JobType& value) { SetJobType(value); return *this;}
97 inline JobListEntry& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
99
101
104 inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
105 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
106 inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
107 inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
108 inline JobListEntry& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
109 inline JobListEntry& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
117 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
118 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
119 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
120 inline JobListEntry& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
121 inline JobListEntry& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
123
125
129 inline const Aws::String& GetDescription() const{ return m_description; }
130 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
131 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
133 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
134 inline JobListEntry& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 inline JobListEntry& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
136 inline JobListEntry& WithDescription(const char* value) { SetDescription(value); return *this;}
138 private:
139
140 Aws::String m_jobId;
141 bool m_jobIdHasBeenSet = false;
142
143 JobState m_jobState;
144 bool m_jobStateHasBeenSet = false;
145
146 bool m_isMaster;
147 bool m_isMasterHasBeenSet = false;
148
149 JobType m_jobType;
150 bool m_jobTypeHasBeenSet = false;
151
152 SnowballType m_snowballType;
153 bool m_snowballTypeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_creationDate;
156 bool m_creationDateHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Snowball
164} // namespace Aws
AWS_SNOWBALL_API JobListEntry()
JobListEntry & WithJobId(const char *value)
const JobState & GetJobState() const
void SetSnowballType(SnowballType &&value)
const Aws::Utils::DateTime & GetCreationDate() const
const SnowballType & GetSnowballType() const
JobListEntry & WithDescription(const Aws::String &value)
void SetJobState(const JobState &value)
bool SnowballTypeHasBeenSet() const
JobListEntry & WithJobType(const JobType &value)
void SetSnowballType(const SnowballType &value)
const Aws::String & GetDescription() const
JobListEntry & WithJobType(JobType &&value)
JobListEntry & WithJobId(Aws::String &&value)
JobListEntry & WithJobState(const JobState &value)
JobListEntry & WithDescription(Aws::String &&value)
const JobType & GetJobType() const
bool JobStateHasBeenSet() const
bool JobIdHasBeenSet() const
JobListEntry & WithCreationDate(const Aws::Utils::DateTime &value)
void SetJobId(const char *value)
void SetJobState(JobState &&value)
void SetJobType(const JobType &value)
bool IsMasterHasBeenSet() const
void SetJobType(JobType &&value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(Aws::String &&value)
void SetJobId(const Aws::String &value)
JobListEntry & WithSnowballType(const SnowballType &value)
void SetIsMaster(bool value)
void SetJobId(Aws::String &&value)
bool GetIsMaster() const
bool DescriptionHasBeenSet() const
AWS_SNOWBALL_API JobListEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetJobId() const
void SetCreationDate(const Aws::Utils::DateTime &value)
JobListEntry & WithSnowballType(SnowballType &&value)
JobListEntry & WithIsMaster(bool value)
void SetDescription(const char *value)
AWS_SNOWBALL_API JobListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
JobListEntry & WithDescription(const char *value)
void SetCreationDate(Aws::Utils::DateTime &&value)
JobListEntry & WithJobId(const Aws::String &value)
bool CreationDateHasBeenSet() const
bool JobTypeHasBeenSet() const
JobListEntry & WithCreationDate(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
JobListEntry & WithJobState(JobState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue