AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePackageRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API CreatePackageRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePackage"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetPackageName() const{ return m_packageName; }
48 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
49 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
50 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
51 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
52 inline CreatePackageRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
53 inline CreatePackageRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
54 inline CreatePackageRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
56
58
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreatePackageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreatePackageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreatePackageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
79 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
80 inline CreatePackageRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
81 inline CreatePackageRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
82 inline CreatePackageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
83 inline CreatePackageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
84 inline CreatePackageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
85 inline CreatePackageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
86 inline CreatePackageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
87 inline CreatePackageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
88 inline CreatePackageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90
92
97 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
100 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
101 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
102 inline CreatePackageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
103 inline CreatePackageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
104 inline CreatePackageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
106 private:
107
108 Aws::String m_packageName;
109 bool m_packageNameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116
117 Aws::String m_clientToken;
118 bool m_clientTokenHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace IoT
123} // namespace Aws
void SetClientToken(const Aws::String &value)
CreatePackageRequest & WithClientToken(Aws::String &&value)
const Aws::String & GetClientToken() const
AWS_IOT_API Aws::String SerializePayload() const override
void SetPackageName(const Aws::String &value)
CreatePackageRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePackageRequest & WithDescription(const Aws::String &value)
CreatePackageRequest & AddTags(const char *key, Aws::String &&value)
CreatePackageRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetPackageName() const
CreatePackageRequest & WithPackageName(Aws::String &&value)
const Aws::String & GetDescription() const
CreatePackageRequest & WithClientToken(const char *value)
CreatePackageRequest & WithDescription(Aws::String &&value)
CreatePackageRequest & WithDescription(const char *value)
CreatePackageRequest & AddTags(Aws::String &&key, const char *value)
CreatePackageRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePackageRequest & WithClientToken(const Aws::String &value)
CreatePackageRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetDescription(const Aws::String &value)
CreatePackageRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePackageRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePackageRequest & WithPackageName(const Aws::String &value)
CreatePackageRequest & WithPackageName(const char *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