AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTaskRequest.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/snow-device-management/SnowDeviceManagementRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/snow-device-management/model/Command.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace SnowDeviceManagement
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SNOWDEVICEMANAGEMENT_API CreateTaskRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTask"; }
35
36 AWS_SNOWDEVICEMANAGEMENT_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateTaskRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateTaskRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
59 inline const Command& GetCommand() const{ return m_command; }
60 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
61 inline void SetCommand(const Command& value) { m_commandHasBeenSet = true; m_command = value; }
62 inline void SetCommand(Command&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
63 inline CreateTaskRequest& WithCommand(const Command& value) { SetCommand(value); return *this;}
64 inline CreateTaskRequest& WithCommand(Command&& value) { SetCommand(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateTaskRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
87 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline CreateTaskRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
92 inline CreateTaskRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
93 inline CreateTaskRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
94 inline CreateTaskRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline CreateTaskRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateTaskRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
97 inline CreateTaskRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline CreateTaskRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline CreateTaskRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101
103
106 inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
107 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
108 inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
109 inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
110 inline CreateTaskRequest& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
111 inline CreateTaskRequest& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
112 inline CreateTaskRequest& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
113 inline CreateTaskRequest& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
114 inline CreateTaskRequest& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
116 private:
117
118 Aws::String m_clientToken;
119 bool m_clientTokenHasBeenSet = false;
120
121 Command m_command;
122 bool m_commandHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_targets;
131 bool m_targetsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace SnowDeviceManagement
136} // namespace Aws
CreateTaskRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTaskRequest & WithTargets(const Aws::Vector< Aws::String > &value)
CreateTaskRequest & WithClientToken(const char *value)
CreateTaskRequest & AddTargets(Aws::String &&value)
CreateTaskRequest & WithClientToken(Aws::String &&value)
CreateTaskRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SNOWDEVICEMANAGEMENT_API CreateTaskRequest()
CreateTaskRequest & AddTags(Aws::String &&key, const char *value)
CreateTaskRequest & AddTags(const char *key, Aws::String &&value)
CreateTaskRequest & AddTags(const char *key, const char *value)
AWS_SNOWDEVICEMANAGEMENT_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTargets(Aws::Vector< Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTaskRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateTaskRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateTaskRequest & WithClientToken(const Aws::String &value)
CreateTaskRequest & WithCommand(const Command &value)
CreateTaskRequest & WithDescription(const Aws::String &value)
CreateTaskRequest & WithCommand(Command &&value)
CreateTaskRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateTaskRequest & WithTargets(Aws::Vector< Aws::String > &&value)
CreateTaskRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTaskRequest & WithDescription(Aws::String &&value)
CreateTaskRequest & AddTargets(const char *value)
const Aws::Vector< Aws::String > & GetTargets() const
CreateTaskRequest & AddTargets(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateTaskRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTargets(const Aws::Vector< 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
std::vector< T, Aws::Allocator< T > > Vector