AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAPIKeyRequest.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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WAFV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WAFV2_API CreateAPIKeyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAPIKey"; }
33
34 AWS_WAFV2_API Aws::String SerializePayload() const override;
35
37
38
40
49 inline Scope GetScope() const { return m_scope; }
50 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
51 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
52 inline CreateAPIKeyRequest& WithScope(Scope value) { SetScope(value); return *this;}
54
56
62 inline const Aws::Vector<Aws::String>& GetTokenDomains() const { return m_tokenDomains; }
63 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
64 template<typename TokenDomainsT = Aws::Vector<Aws::String>>
65 void SetTokenDomains(TokenDomainsT&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::forward<TokenDomainsT>(value); }
66 template<typename TokenDomainsT = Aws::Vector<Aws::String>>
67 CreateAPIKeyRequest& WithTokenDomains(TokenDomainsT&& value) { SetTokenDomains(std::forward<TokenDomainsT>(value)); return *this;}
68 template<typename TokenDomainsT = Aws::String>
69 CreateAPIKeyRequest& AddTokenDomains(TokenDomainsT&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.emplace_back(std::forward<TokenDomainsT>(value)); return *this; }
71 private:
72
73 Scope m_scope{Scope::NOT_SET};
74 bool m_scopeHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_tokenDomains;
77 bool m_tokenDomainsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace WAFV2
82} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
AWS_WAFV2_API CreateAPIKeyRequest()=default
CreateAPIKeyRequest & AddTokenDomains(TokenDomainsT &&value)
void SetTokenDomains(TokenDomainsT &&value)
const Aws::Vector< Aws::String > & GetTokenDomains() const
CreateAPIKeyRequest & WithTokenDomains(TokenDomainsT &&value)
CreateAPIKeyRequest & WithScope(Scope value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector