AWS SDK for C++  1.9.158
AWS SDK for C++
TaskListEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DataSync
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
49 
53  inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
54 
58  inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
59 
63  inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
64 
68  inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
69 
73  inline TaskListEntry& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
74 
78  inline TaskListEntry& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
79 
83  inline TaskListEntry& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
84 
85 
89  inline const TaskStatus& GetStatus() const{ return m_status; }
90 
94  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 
99  inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
100 
104  inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 
109  inline TaskListEntry& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
110 
114  inline TaskListEntry& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
115 
116 
120  inline const Aws::String& GetName() const{ return m_name; }
121 
125  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 
130  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
131 
135  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
136 
140  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
141 
145  inline TaskListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
146 
150  inline TaskListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
151 
155  inline TaskListEntry& WithName(const char* value) { SetName(value); return *this;}
156 
157  private:
158 
159  Aws::String m_taskArn;
160  bool m_taskArnHasBeenSet;
161 
162  TaskStatus m_status;
163  bool m_statusHasBeenSet;
164 
165  Aws::String m_name;
166  bool m_nameHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace DataSync
171 } // namespace Aws
Aws::DataSync::Model::TaskListEntry::GetTaskArn
const Aws::String & GetTaskArn() const
Definition: TaskListEntry.h:48
Aws::DataSync::Model::TaskListEntry::WithStatus
TaskListEntry & WithStatus(const TaskStatus &value)
Definition: TaskListEntry.h:109
Aws::DataSync::Model::TaskListEntry
Definition: TaskListEntry.h:37
Aws::DataSync::Model::TaskListEntry::TaskArnHasBeenSet
bool TaskArnHasBeenSet() const
Definition: TaskListEntry.h:53
Aws::DataSync::Model::TaskListEntry::WithTaskArn
TaskListEntry & WithTaskArn(Aws::String &&value)
Definition: TaskListEntry.h:78
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
TaskStatus.h
Aws::DataSync::Model::TaskListEntry::SetStatus
void SetStatus(const TaskStatus &value)
Definition: TaskListEntry.h:99
Aws::DataSync::Model::TaskListEntry::WithStatus
TaskListEntry & WithStatus(TaskStatus &&value)
Definition: TaskListEntry.h:114
Aws::DataSync::Model::TaskListEntry::SetStatus
void SetStatus(TaskStatus &&value)
Definition: TaskListEntry.h:104
Aws::DataSync::Model::TaskListEntry::SetName
void SetName(const Aws::String &value)
Definition: TaskListEntry.h:130
Aws::DataSync::Model::TaskListEntry::GetStatus
const TaskStatus & GetStatus() const
Definition: TaskListEntry.h:89
Aws::DataSync::Model::TaskListEntry::GetName
const Aws::String & GetName() const
Definition: TaskListEntry.h:120
Aws::DataSync::Model::TaskListEntry::SetTaskArn
void SetTaskArn(const Aws::String &value)
Definition: TaskListEntry.h:58
Aws::DataSync::Model::TaskListEntry::NameHasBeenSet
bool NameHasBeenSet() const
Definition: TaskListEntry.h:125
Aws::DataSync::Model::TaskStatus
TaskStatus
Definition: TaskStatus.h:17
Aws::DataSync::Model::TaskListEntry::WithName
TaskListEntry & WithName(const Aws::String &value)
Definition: TaskListEntry.h:145
Aws::DataSync::Model::TaskListEntry::SetTaskArn
void SetTaskArn(const char *value)
Definition: TaskListEntry.h:68
Aws::DataSync::Model::TaskListEntry::TaskListEntry
TaskListEntry()
Aws::DataSync::Model::TaskListEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataSync::Model::TaskListEntry::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: TaskListEntry.h:94
Aws::DataSync::Model::TaskListEntry::WithTaskArn
TaskListEntry & WithTaskArn(const Aws::String &value)
Definition: TaskListEntry.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
DataSync_EXPORTS.h
Aws::DataSync::Model::TaskListEntry::TaskListEntry
TaskListEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::TaskListEntry::WithTaskArn
TaskListEntry & WithTaskArn(const char *value)
Definition: TaskListEntry.h:83
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DataSync::Model::TaskListEntry::SetName
void SetName(Aws::String &&value)
Definition: TaskListEntry.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::TaskListEntry::operator=
TaskListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::TaskListEntry::SetName
void SetName(const char *value)
Definition: TaskListEntry.h:140
Aws::DataSync::Model::TaskListEntry::SetTaskArn
void SetTaskArn(Aws::String &&value)
Definition: TaskListEntry.h:63
Aws::DataSync::Model::TaskListEntry::WithName
TaskListEntry & WithName(Aws::String &&value)
Definition: TaskListEntry.h:150
Aws::DataSync::Model::TaskListEntry::WithName
TaskListEntry & WithName(const char *value)
Definition: TaskListEntry.h:155