AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
51 inline const Scope& GetScope() const{ return m_scope; }
52 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
53 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
54 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
55 inline CreateAPIKeyRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
56 inline CreateAPIKeyRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
58
60
66 inline const Aws::Vector<Aws::String>& GetTokenDomains() const{ return m_tokenDomains; }
67 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
68 inline void SetTokenDomains(const Aws::Vector<Aws::String>& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = value; }
69 inline void SetTokenDomains(Aws::Vector<Aws::String>&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::move(value); }
71 inline CreateAPIKeyRequest& WithTokenDomains(Aws::Vector<Aws::String>&& value) { SetTokenDomains(std::move(value)); return *this;}
72 inline CreateAPIKeyRequest& AddTokenDomains(const Aws::String& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
73 inline CreateAPIKeyRequest& AddTokenDomains(Aws::String&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(std::move(value)); return *this; }
74 inline CreateAPIKeyRequest& AddTokenDomains(const char* value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
76 private:
77
78 Scope m_scope;
79 bool m_scopeHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_tokenDomains;
82 bool m_tokenDomainsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace WAFV2
87} // namespace Aws
CreateAPIKeyRequest & WithScope(Scope &&value)
virtual const char * GetServiceRequestName() const override
CreateAPIKeyRequest & WithTokenDomains(const Aws::Vector< Aws::String > &value)
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WAFV2_API Aws::String SerializePayload() const override
CreateAPIKeyRequest & WithScope(const Scope &value)
void SetTokenDomains(Aws::Vector< Aws::String > &&value)
CreateAPIKeyRequest & AddTokenDomains(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTokenDomains() const
CreateAPIKeyRequest & WithTokenDomains(Aws::Vector< Aws::String > &&value)
CreateAPIKeyRequest & AddTokenDomains(const char *value)
void SetTokenDomains(const Aws::Vector< Aws::String > &value)
CreateAPIKeyRequest & AddTokenDomains(const Aws::String &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