AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
APIKeySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wafv2/WAFV2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
37 public:
38 AWS_WAFV2_API APIKeySummary() = default;
39 AWS_WAFV2_API APIKeySummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::Vector<Aws::String>& GetTokenDomains() const { return m_tokenDomains; }
48 inline bool TokenDomainsHasBeenSet() const { return m_tokenDomainsHasBeenSet; }
49 template <typename TokenDomainsT = Aws::Vector<Aws::String>>
50 void SetTokenDomains(TokenDomainsT&& value) {
51 m_tokenDomainsHasBeenSet = true;
52 m_tokenDomains = std::forward<TokenDomainsT>(value);
53 }
54 template <typename TokenDomainsT = Aws::Vector<Aws::String>>
55 APIKeySummary& WithTokenDomains(TokenDomainsT&& value) {
56 SetTokenDomains(std::forward<TokenDomainsT>(value));
57 return *this;
58 }
59 template <typename TokenDomainsT = Aws::String>
60 APIKeySummary& AddTokenDomains(TokenDomainsT&& value) {
61 m_tokenDomainsHasBeenSet = true;
62 m_tokenDomains.emplace_back(std::forward<TokenDomainsT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetAPIKey() const { return m_aPIKey; }
73 inline bool APIKeyHasBeenSet() const { return m_aPIKeyHasBeenSet; }
74 template <typename APIKeyT = Aws::String>
75 void SetAPIKey(APIKeyT&& value) {
76 m_aPIKeyHasBeenSet = true;
77 m_aPIKey = std::forward<APIKeyT>(value);
78 }
79 template <typename APIKeyT = Aws::String>
80 APIKeySummary& WithAPIKey(APIKeyT&& value) {
81 SetAPIKey(std::forward<APIKeyT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
91 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
92 template <typename CreationTimestampT = Aws::Utils::DateTime>
93 void SetCreationTimestamp(CreationTimestampT&& value) {
94 m_creationTimestampHasBeenSet = true;
95 m_creationTimestamp = std::forward<CreationTimestampT>(value);
96 }
97 template <typename CreationTimestampT = Aws::Utils::DateTime>
98 APIKeySummary& WithCreationTimestamp(CreationTimestampT&& value) {
99 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
100 return *this;
101 }
103
105
108 inline int GetVersion() const { return m_version; }
109 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
110 inline void SetVersion(int value) {
111 m_versionHasBeenSet = true;
112 m_version = value;
113 }
114 inline APIKeySummary& WithVersion(int value) {
115 SetVersion(value);
116 return *this;
117 }
119 private:
120 Aws::Vector<Aws::String> m_tokenDomains;
121
122 Aws::String m_aPIKey;
123
124 Aws::Utils::DateTime m_creationTimestamp{};
125
126 int m_version{0};
127 bool m_tokenDomainsHasBeenSet = false;
128 bool m_aPIKeyHasBeenSet = false;
129 bool m_creationTimestampHasBeenSet = false;
130 bool m_versionHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace WAFV2
135} // 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