AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskSummary.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/snow-device-management/model/TaskState.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.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 SnowDeviceManagement
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SNOWDEVICEMANAGEMENT_API TaskSummary();
38 AWS_SNOWDEVICEMANAGEMENT_API TaskSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SNOWDEVICEMANAGEMENT_API TaskSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const TaskState& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const TaskState& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(TaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline TaskSummary& WithState(const TaskState& value) { SetState(value); return *this;}
52 inline TaskSummary& WithState(TaskState&& value) { SetState(std::move(value)); return *this;}
54
56
61 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
62 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
63 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
64 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
65 inline TaskSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
66 inline TaskSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
67 inline TaskSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
68 inline TaskSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
69 inline TaskSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
70 inline TaskSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
71 inline TaskSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
72 inline TaskSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
73 inline TaskSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
75
77
80 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
81 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
82 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
83 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
84 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
85 inline TaskSummary& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
86 inline TaskSummary& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
87 inline TaskSummary& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
89
91
94 inline const Aws::String& GetTaskId() const{ return m_taskId; }
95 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
96 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
97 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
98 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
99 inline TaskSummary& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
100 inline TaskSummary& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
101 inline TaskSummary& WithTaskId(const char* value) { SetTaskId(value); return *this;}
103 private:
104
105 TaskState m_state;
106 bool m_stateHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110
111 Aws::String m_taskArn;
112 bool m_taskArnHasBeenSet = false;
113
114 Aws::String m_taskId;
115 bool m_taskIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace SnowDeviceManagement
120} // namespace Aws
TaskSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition TaskSummary.h:65
TaskSummary & WithTaskId(const char *value)
TaskSummary & WithState(TaskState &&value)
Definition TaskSummary.h:52
void SetTaskArn(const Aws::String &value)
Definition TaskSummary.h:82
TaskSummary & AddTags(Aws::String &&key, const char *value)
Definition TaskSummary.h:72
TaskSummary & AddTags(const Aws::String &key, const Aws::String &value)
Definition TaskSummary.h:67
TaskSummary & WithTaskId(const Aws::String &value)
Definition TaskSummary.h:99
void SetTaskId(const Aws::String &value)
Definition TaskSummary.h:96
const Aws::String & GetTaskArn() const
Definition TaskSummary.h:80
AWS_SNOWDEVICEMANAGEMENT_API TaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition TaskSummary.h:63
TaskSummary & AddTags(const char *key, Aws::String &&value)
Definition TaskSummary.h:71
AWS_SNOWDEVICEMANAGEMENT_API TaskSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWDEVICEMANAGEMENT_API TaskSummary()
TaskSummary & WithTaskArn(const char *value)
Definition TaskSummary.h:87
TaskSummary & WithTaskArn(Aws::String &&value)
Definition TaskSummary.h:86
TaskSummary & WithState(const TaskState &value)
Definition TaskSummary.h:51
const Aws::String & GetTaskId() const
Definition TaskSummary.h:94
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition TaskSummary.h:64
TaskSummary & AddTags(Aws::String &&key, Aws::String &&value)
Definition TaskSummary.h:70
TaskSummary & AddTags(const Aws::String &key, Aws::String &&value)
Definition TaskSummary.h:69
TaskSummary & AddTags(Aws::String &&key, const Aws::String &value)
Definition TaskSummary.h:68
TaskSummary & AddTags(const char *key, const char *value)
Definition TaskSummary.h:73
void SetState(const TaskState &value)
Definition TaskSummary.h:49
TaskSummary & WithTaskArn(const Aws::String &value)
Definition TaskSummary.h:85
TaskSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition TaskSummary.h:66
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition TaskSummary.h:61
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
TaskSummary & WithTaskId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue