AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskListEntry.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/TaskStatus.h>
10#include <aws/datasync/model/TaskMode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataSync
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_DATASYNC_API TaskListEntry();
41 AWS_DATASYNC_API TaskListEntry(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
51 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
52 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
53 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
54 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
55 inline TaskListEntry& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
56 inline TaskListEntry& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
57 inline TaskListEntry& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
59
61
64 inline const TaskStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline TaskListEntry& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
69 inline TaskListEntry& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline TaskListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline TaskListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline TaskListEntry& WithName(const char* value) { SetName(value); return *this;}
85
87
92 inline const TaskMode& GetTaskMode() const{ return m_taskMode; }
93 inline bool TaskModeHasBeenSet() const { return m_taskModeHasBeenSet; }
94 inline void SetTaskMode(const TaskMode& value) { m_taskModeHasBeenSet = true; m_taskMode = value; }
95 inline void SetTaskMode(TaskMode&& value) { m_taskModeHasBeenSet = true; m_taskMode = std::move(value); }
96 inline TaskListEntry& WithTaskMode(const TaskMode& value) { SetTaskMode(value); return *this;}
97 inline TaskListEntry& WithTaskMode(TaskMode&& value) { SetTaskMode(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_taskArn;
102 bool m_taskArnHasBeenSet = false;
103
104 TaskStatus m_status;
105 bool m_statusHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 TaskMode m_taskMode;
111 bool m_taskModeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace DataSync
116} // namespace Aws
bool StatusHasBeenSet() const
void SetName(Aws::String &&value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
TaskListEntry & WithName(Aws::String &&value)
TaskListEntry & WithName(const char *value)
bool NameHasBeenSet() const
void SetTaskMode(TaskMode &&value)
AWS_DATASYNC_API TaskListEntry()
bool TaskModeHasBeenSet() const
TaskListEntry & WithTaskMode(TaskMode &&value)
void SetStatus(TaskStatus &&value)
void SetName(const char *value)
AWS_DATASYNC_API TaskListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetTaskArn(Aws::String &&value)
TaskListEntry & WithTaskArn(Aws::String &&value)
void SetTaskMode(const TaskMode &value)
TaskListEntry & WithStatus(const TaskStatus &value)
TaskListEntry & WithTaskArn(const char *value)
void SetName(const Aws::String &value)
void SetTaskArn(const char *value)
const TaskMode & GetTaskMode() const
const TaskStatus & GetStatus() const
void SetTaskArn(const Aws::String &value)
TaskListEntry & WithName(const Aws::String &value)
const Aws::String & GetTaskArn() const
TaskListEntry & WithStatus(TaskStatus &&value)
TaskListEntry & WithTaskArn(const Aws::String &value)
const Aws::String & GetName() const
AWS_DATASYNC_API TaskListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskListEntry & WithTaskMode(const TaskMode &value)
bool TaskArnHasBeenSet() const
void SetStatus(const TaskStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue