AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePackageRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOT_API UpdatePackageRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdatePackage"; }
36
37 AWS_IOT_API Aws::String SerializePayload() const override;
38
39 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetPackageName() const { return m_packageName; }
47 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
48 template<typename PackageNameT = Aws::String>
49 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
50 template<typename PackageNameT = Aws::String>
51 UpdatePackageRequest& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 UpdatePackageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
72 inline const Aws::String& GetDefaultVersionName() const { return m_defaultVersionName; }
73 inline bool DefaultVersionNameHasBeenSet() const { return m_defaultVersionNameHasBeenSet; }
74 template<typename DefaultVersionNameT = Aws::String>
75 void SetDefaultVersionName(DefaultVersionNameT&& value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName = std::forward<DefaultVersionNameT>(value); }
76 template<typename DefaultVersionNameT = Aws::String>
77 UpdatePackageRequest& WithDefaultVersionName(DefaultVersionNameT&& value) { SetDefaultVersionName(std::forward<DefaultVersionNameT>(value)); return *this;}
79
81
88 inline bool GetUnsetDefaultVersion() const { return m_unsetDefaultVersion; }
89 inline bool UnsetDefaultVersionHasBeenSet() const { return m_unsetDefaultVersionHasBeenSet; }
90 inline void SetUnsetDefaultVersion(bool value) { m_unsetDefaultVersionHasBeenSet = true; m_unsetDefaultVersion = value; }
91 inline UpdatePackageRequest& WithUnsetDefaultVersion(bool value) { SetUnsetDefaultVersion(value); return *this;}
93
95
100 inline const Aws::String& GetClientToken() const { return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 template<typename ClientTokenT = Aws::String>
103 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
104 template<typename ClientTokenT = Aws::String>
105 UpdatePackageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
107 private:
108
109 Aws::String m_packageName;
110 bool m_packageNameHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_defaultVersionName;
116 bool m_defaultVersionNameHasBeenSet = false;
117
118 bool m_unsetDefaultVersion{false};
119 bool m_unsetDefaultVersionHasBeenSet = false;
120
122 bool m_clientTokenHasBeenSet = true;
123 };
124
125} // namespace Model
126} // namespace IoT
127} // 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