AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename JobIdT = Aws::String>
54 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
55 template<typename JobIdT = Aws::String>
56 JobListEntry& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
58
60
63 inline JobState GetJobState() const { return m_jobState; }
64 inline bool JobStateHasBeenSet() const { return m_jobStateHasBeenSet; }
65 inline void SetJobState(JobState value) { m_jobStateHasBeenSet = true; m_jobState = value; }
66 inline JobListEntry& WithJobState(JobState value) { SetJobState(value); return *this;}
68
70
78 inline bool GetIsMaster() const { return m_isMaster; }
79 inline bool IsMasterHasBeenSet() const { return m_isMasterHasBeenSet; }
80 inline void SetIsMaster(bool value) { m_isMasterHasBeenSet = true; m_isMaster = value; }
81 inline JobListEntry& WithIsMaster(bool value) { SetIsMaster(value); return *this;}
83
85
88 inline JobType GetJobType() const { return m_jobType; }
89 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
90 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
91 inline JobListEntry& WithJobType(JobType value) { SetJobType(value); return *this;}
93
95
98 inline SnowballType GetSnowballType() const { return m_snowballType; }
99 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
100 inline void SetSnowballType(SnowballType value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
101 inline JobListEntry& WithSnowballType(SnowballType value) { SetSnowballType(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
109 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
110 template<typename CreationDateT = Aws::Utils::DateTime>
111 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
112 template<typename CreationDateT = Aws::Utils::DateTime>
113 JobListEntry& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
115
117
121 inline const Aws::String& GetDescription() const { return m_description; }
122 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
123 template<typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
125 template<typename DescriptionT = Aws::String>
126 JobListEntry& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
128 private:
129
130 Aws::String m_jobId;
131 bool m_jobIdHasBeenSet = false;
132
133 JobState m_jobState{JobState::NOT_SET};
134 bool m_jobStateHasBeenSet = false;
135
136 bool m_isMaster{false};
137 bool m_isMasterHasBeenSet = false;
138
139 JobType m_jobType{JobType::NOT_SET};
140 bool m_jobTypeHasBeenSet = false;
141
142 SnowballType m_snowballType{SnowballType::NOT_SET};
143 bool m_snowballTypeHasBeenSet = false;
144
145 Aws::Utils::DateTime m_creationDate{};
146 bool m_creationDateHasBeenSet = false;
147
148 Aws::String m_description;
149 bool m_descriptionHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Snowball
154} // 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