AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; }
49 inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); }
50 inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); }
51 inline UpdatePackageRequest& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;}
52 inline UpdatePackageRequest& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;}
53 inline UpdatePackageRequest& WithPackageName(const char* value) { SetPackageName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline UpdatePackageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline UpdatePackageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline UpdatePackageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
76 inline const Aws::String& GetDefaultVersionName() const{ return m_defaultVersionName; }
77 inline bool DefaultVersionNameHasBeenSet() const { return m_defaultVersionNameHasBeenSet; }
78 inline void SetDefaultVersionName(const Aws::String& value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName = value; }
79 inline void SetDefaultVersionName(Aws::String&& value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName = std::move(value); }
80 inline void SetDefaultVersionName(const char* value) { m_defaultVersionNameHasBeenSet = true; m_defaultVersionName.assign(value); }
82 inline UpdatePackageRequest& WithDefaultVersionName(Aws::String&& value) { SetDefaultVersionName(std::move(value)); return *this;}
83 inline UpdatePackageRequest& WithDefaultVersionName(const char* value) { SetDefaultVersionName(value); return *this;}
85
87
94 inline bool GetUnsetDefaultVersion() const{ return m_unsetDefaultVersion; }
95 inline bool UnsetDefaultVersionHasBeenSet() const { return m_unsetDefaultVersionHasBeenSet; }
96 inline void SetUnsetDefaultVersion(bool value) { m_unsetDefaultVersionHasBeenSet = true; m_unsetDefaultVersion = value; }
97 inline UpdatePackageRequest& WithUnsetDefaultVersion(bool value) { SetUnsetDefaultVersion(value); return *this;}
99
101
106 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
109 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
110 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
111 inline UpdatePackageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
112 inline UpdatePackageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
113 inline UpdatePackageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
115 private:
116
117 Aws::String m_packageName;
118 bool m_packageNameHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_defaultVersionName;
124 bool m_defaultVersionNameHasBeenSet = false;
125
126 bool m_unsetDefaultVersion;
127 bool m_unsetDefaultVersionHasBeenSet = false;
128
129 Aws::String m_clientToken;
130 bool m_clientTokenHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoT
135} // namespace Aws
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
UpdatePackageRequest & WithPackageName(const Aws::String &value)
UpdatePackageRequest & WithClientToken(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetClientToken() const
virtual const char * GetServiceRequestName() const override
UpdatePackageRequest & WithDescription(const Aws::String &value)
UpdatePackageRequest & WithUnsetDefaultVersion(bool value)
const Aws::String & GetDefaultVersionName() const
UpdatePackageRequest & WithDefaultVersionName(const char *value)
const Aws::String & GetPackageName() const
UpdatePackageRequest & WithDefaultVersionName(Aws::String &&value)
void SetPackageName(const Aws::String &value)
void SetDefaultVersionName(const Aws::String &value)
UpdatePackageRequest & WithClientToken(Aws::String &&value)
UpdatePackageRequest & WithPackageName(const char *value)
UpdatePackageRequest & WithDescription(const char *value)
UpdatePackageRequest & WithDefaultVersionName(const Aws::String &value)
void SetClientToken(const Aws::String &value)
UpdatePackageRequest & WithClientToken(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetDefaultVersionName(Aws::String &&value)
UpdatePackageRequest & WithPackageName(Aws::String &&value)
UpdatePackageRequest & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String