AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdatePackageRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API UpdatePackageRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdatePackage"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetPackageName() const { return m_packageName; }
42 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
43 template <typename PackageNameT = Aws::String>
44 void SetPackageName(PackageNameT&& value) {
45 m_packageNameHasBeenSet = true;
46 m_packageName = std::forward<PackageNameT>(value);
47 }
48 template <typename PackageNameT = Aws::String>
49 UpdatePackageRequest& WithPackageName(PackageNameT&& value) {
50 SetPackageName(std::forward<PackageNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 UpdatePackageRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetDefaultVersionName() const { return m_defaultVersionName; }
80 inline bool DefaultVersionNameHasBeenSet() const { return m_defaultVersionNameHasBeenSet; }
81 template <typename DefaultVersionNameT = Aws::String>
82 void SetDefaultVersionName(DefaultVersionNameT&& value) {
83 m_defaultVersionNameHasBeenSet = true;
84 m_defaultVersionName = std::forward<DefaultVersionNameT>(value);
85 }
86 template <typename DefaultVersionNameT = Aws::String>
87 UpdatePackageRequest& WithDefaultVersionName(DefaultVersionNameT&& value) {
88 SetDefaultVersionName(std::forward<DefaultVersionNameT>(value));
89 return *this;
90 }
92
94
101 inline bool GetUnsetDefaultVersion() const { return m_unsetDefaultVersion; }
102 inline bool UnsetDefaultVersionHasBeenSet() const { return m_unsetDefaultVersionHasBeenSet; }
103 inline void SetUnsetDefaultVersion(bool value) {
104 m_unsetDefaultVersionHasBeenSet = true;
105 m_unsetDefaultVersion = value;
106 }
109 return *this;
110 }
112
114
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
127 UpdatePackageRequest& WithClientToken(ClientTokenT&& value) {
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_packageName;
134
135 Aws::String m_description;
136
137 Aws::String m_defaultVersionName;
138
139 bool m_unsetDefaultVersion{false};
140
142 bool m_packageNameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_defaultVersionNameHasBeenSet = false;
145 bool m_unsetDefaultVersionHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147};
148
149} // namespace Model
150} // namespace IoT
151} // namespace Aws
const Aws::String & GetDescription() const
AWS_IOT_API UpdatePackageRequest()=default
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetClientToken() const
void SetDefaultVersionName(DefaultVersionNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdatePackageRequest & WithUnsetDefaultVersion(bool value)
const Aws::String & GetDefaultVersionName() const
UpdatePackageRequest & WithDescription(DescriptionT &&value)
UpdatePackageRequest & WithPackageName(PackageNameT &&value)
const Aws::String & GetPackageName() const
void SetDescription(DescriptionT &&value)
UpdatePackageRequest & WithClientToken(ClientTokenT &&value)
void SetPackageName(PackageNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
UpdatePackageRequest & WithDefaultVersionName(DefaultVersionNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String