AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DeletePackageRequest.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 DeletePackageRequest() = 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 "DeletePackage"; }
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 DeletePackageRequest& WithPackageName(PackageNameT&& value) {
50 SetPackageName(std::forward<PackageNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
69 DeletePackageRequest& WithClientToken(ClientTokenT&& value) {
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_packageName;
76
78 bool m_packageNameHasBeenSet = false;
79 bool m_clientTokenHasBeenSet = true;
80};
81
82} // namespace Model
83} // namespace IoT
84} // namespace Aws
const Aws::String & GetPackageName() const
void SetClientToken(ClientTokenT &&value)
DeletePackageRequest & WithClientToken(ClientTokenT &&value)
void SetPackageName(PackageNameT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientToken() const
DeletePackageRequest & WithPackageName(PackageNameT &&value)
AWS_IOT_API DeletePackageRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String