AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeleteKeyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/location/LocationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace LocationService {
18namespace Model {
19
23 public:
24 AWS_LOCATIONSERVICE_API DeleteKeyRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeleteKey"; }
31
32 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
33
34 AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetKeyName() const { return m_keyName; }
41 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
42 template <typename KeyNameT = Aws::String>
43 void SetKeyName(KeyNameT&& value) {
44 m_keyNameHasBeenSet = true;
45 m_keyName = std::forward<KeyNameT>(value);
46 }
47 template <typename KeyNameT = Aws::String>
48 DeleteKeyRequest& WithKeyName(KeyNameT&& value) {
49 SetKeyName(std::forward<KeyNameT>(value));
50 return *this;
51 }
53
55
63 inline bool GetForceDelete() const { return m_forceDelete; }
64 inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
65 inline void SetForceDelete(bool value) {
66 m_forceDeleteHasBeenSet = true;
67 m_forceDelete = value;
68 }
69 inline DeleteKeyRequest& WithForceDelete(bool value) {
70 SetForceDelete(value);
71 return *this;
72 }
74 private:
75 Aws::String m_keyName;
76
77 bool m_forceDelete{false};
78 bool m_keyNameHasBeenSet = false;
79 bool m_forceDeleteHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace LocationService
84} // namespace Aws
DeleteKeyRequest & WithKeyName(KeyNameT &&value)
DeleteKeyRequest & WithForceDelete(bool value)
virtual const char * GetServiceRequestName() const override
AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_LOCATIONSERVICE_API DeleteKeyRequest()=default
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String