AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
APIKeySummary.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_WAFV2_API APIKeySummary() = default;
44 AWS_WAFV2_API APIKeySummary(Aws::Utils::Json::JsonView jsonValue);
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::Vector<Aws::String>& GetTokenDomains() const { return m_tokenDomains; }
54 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
55 template<typename TokenDomainsT = Aws::Vector<Aws::String>>
56 void SetTokenDomains(TokenDomainsT&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::forward<TokenDomainsT>(value); }
57 template<typename TokenDomainsT = Aws::Vector<Aws::String>>
58 APIKeySummary& WithTokenDomains(TokenDomainsT&& value) { SetTokenDomains(std::forward<TokenDomainsT>(value)); return *this;}
59 template<typename TokenDomainsT = Aws::String>
60 APIKeySummary& AddTokenDomains(TokenDomainsT&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.emplace_back(std::forward<TokenDomainsT>(value)); return *this; }
62
64
68 inline const Aws::String& GetAPIKey() const { return m_aPIKey; }
69 inline bool APIKeyHasBeenSet() const { return m_aPIKeyHasBeenSet; }
70 template<typename APIKeyT = Aws::String>
71 void SetAPIKey(APIKeyT&& value) { m_aPIKeyHasBeenSet = true; m_aPIKey = std::forward<APIKeyT>(value); }
72 template<typename APIKeyT = Aws::String>
73 APIKeySummary& WithAPIKey(APIKeyT&& value) { SetAPIKey(std::forward<APIKeyT>(value)); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
81 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
82 template<typename CreationTimestampT = Aws::Utils::DateTime>
83 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
84 template<typename CreationTimestampT = Aws::Utils::DateTime>
85 APIKeySummary& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
87
89
92 inline int GetVersion() const { return m_version; }
93 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
94 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
95 inline APIKeySummary& WithVersion(int value) { SetVersion(value); return *this;}
97 private:
98
99 Aws::Vector<Aws::String> m_tokenDomains;
100 bool m_tokenDomainsHasBeenSet = false;
101
102 Aws::String m_aPIKey;
103 bool m_aPIKeyHasBeenSet = false;
104
105 Aws::Utils::DateTime m_creationTimestamp{};
106 bool m_creationTimestampHasBeenSet = false;
107
108 int m_version{0};
109 bool m_versionHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace WAFV2
114} // namespace Aws
APIKeySummary & WithCreationTimestamp(CreationTimestampT &&value)
AWS_WAFV2_API APIKeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTimestamp(CreationTimestampT &&value)
void SetAPIKey(APIKeyT &&value)
void SetTokenDomains(TokenDomainsT &&value)
AWS_WAFV2_API APIKeySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API APIKeySummary()=default
const Aws::String & GetAPIKey() const
APIKeySummary & WithTokenDomains(TokenDomainsT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
const Aws::Vector< Aws::String > & GetTokenDomains() const
APIKeySummary & AddTokenDomains(TokenDomainsT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
APIKeySummary & WithVersion(int value)
APIKeySummary & WithAPIKey(APIKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue