AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeleteAPIKeyRequest.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/model/Scope.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WAFV2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WAFV2_API DeleteAPIKeyRequest() = 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 "DeleteAPIKey"; }
32
33 AWS_WAFV2_API Aws::String SerializePayload() const override;
34
36
37
39
48 inline Scope GetScope() const { return m_scope; }
49 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
50 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
51 inline DeleteAPIKeyRequest& WithScope(Scope value) { SetScope(value); return *this;}
53
55
58 inline const Aws::String& GetAPIKey() const { return m_aPIKey; }
59 inline bool APIKeyHasBeenSet() const { return m_aPIKeyHasBeenSet; }
60 template<typename APIKeyT = Aws::String>
61 void SetAPIKey(APIKeyT&& value) { m_aPIKeyHasBeenSet = true; m_aPIKey = std::forward<APIKeyT>(value); }
62 template<typename APIKeyT = Aws::String>
63 DeleteAPIKeyRequest& WithAPIKey(APIKeyT&& value) { SetAPIKey(std::forward<APIKeyT>(value)); return *this;}
65 private:
66
67 Scope m_scope{Scope::NOT_SET};
68 bool m_scopeHasBeenSet = false;
69
70 Aws::String m_aPIKey;
71 bool m_aPIKeyHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace WAFV2
76} // namespace Aws
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
AWS_WAFV2_API DeleteAPIKeyRequest()=default
DeleteAPIKeyRequest & WithScope(Scope value)
DeleteAPIKeyRequest & WithAPIKey(APIKeyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String