AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreatePackageRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoTRequest.h>
11#include <aws/iot/IoT_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace IoT {
20namespace Model {
21
25 public:
26 AWS_IOT_API CreatePackageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePackage"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetPackageName() const { return m_packageName; }
43 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
44 template <typename PackageNameT = Aws::String>
45 void SetPackageName(PackageNameT&& value) {
46 m_packageNameHasBeenSet = true;
47 m_packageName = std::forward<PackageNameT>(value);
48 }
49 template <typename PackageNameT = Aws::String>
50 CreatePackageRequest& WithPackageName(PackageNameT&& value) {
51 SetPackageName(std::forward<PackageNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 CreatePackageRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) {
83 m_tagsHasBeenSet = true;
84 m_tags = std::forward<TagsT>(value);
85 }
86 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 SetTags(std::forward<TagsT>(value));
89 return *this;
90 }
91 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
92 CreatePackageRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::String& GetClientToken() const { return m_clientToken; }
106 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
107 template <typename ClientTokenT = Aws::String>
108 void SetClientToken(ClientTokenT&& value) {
109 m_clientTokenHasBeenSet = true;
110 m_clientToken = std::forward<ClientTokenT>(value);
111 }
112 template <typename ClientTokenT = Aws::String>
113 CreatePackageRequest& WithClientToken(ClientTokenT&& value) {
114 SetClientToken(std::forward<ClientTokenT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_packageName;
120
121 Aws::String m_description;
122
124
126 bool m_packageNameHasBeenSet = false;
127 bool m_descriptionHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129 bool m_clientTokenHasBeenSet = true;
130};
131
132} // namespace Model
133} // namespace IoT
134} // namespace Aws
AWS_IOT_API CreatePackageRequest()=default
const Aws::String & GetClientToken() const
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePackageRequest & WithTags(TagsT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
void SetPackageName(PackageNameT &&value)
CreatePackageRequest & WithPackageName(PackageNameT &&value)
const Aws::String & GetPackageName() const
CreatePackageRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
CreatePackageRequest & WithClientToken(ClientTokenT &&value)
CreatePackageRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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