AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTokenDomains(const Aws::Vector<Aws::String>& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = value; }
56 inline void SetTokenDomains(Aws::Vector<Aws::String>&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains = std::move(value); }
57 inline APIKeySummary& WithTokenDomains(const Aws::Vector<Aws::String>& value) { SetTokenDomains(value); return *this;}
58 inline APIKeySummary& WithTokenDomains(Aws::Vector<Aws::String>&& value) { SetTokenDomains(std::move(value)); return *this;}
59 inline APIKeySummary& AddTokenDomains(const Aws::String& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
60 inline APIKeySummary& AddTokenDomains(Aws::String&& value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(std::move(value)); return *this; }
61 inline APIKeySummary& AddTokenDomains(const char* value) { m_tokenDomainsHasBeenSet = true; m_tokenDomains.push_back(value); return *this; }
63
65
69 inline const Aws::String& GetAPIKey() const{ return m_aPIKey; }
70 inline bool APIKeyHasBeenSet() const { return m_aPIKeyHasBeenSet; }
71 inline void SetAPIKey(const Aws::String& value) { m_aPIKeyHasBeenSet = true; m_aPIKey = value; }
72 inline void SetAPIKey(Aws::String&& value) { m_aPIKeyHasBeenSet = true; m_aPIKey = std::move(value); }
73 inline void SetAPIKey(const char* value) { m_aPIKeyHasBeenSet = true; m_aPIKey.assign(value); }
74 inline APIKeySummary& WithAPIKey(const Aws::String& value) { SetAPIKey(value); return *this;}
75 inline APIKeySummary& WithAPIKey(Aws::String&& value) { SetAPIKey(std::move(value)); return *this;}
76 inline APIKeySummary& WithAPIKey(const char* value) { SetAPIKey(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
84 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
85 inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
86 inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
88 inline APIKeySummary& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;}
90
92
95 inline int GetVersion() const{ return m_version; }
96 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
97 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
98 inline APIKeySummary& WithVersion(int value) { SetVersion(value); return *this;}
100 private:
101
102 Aws::Vector<Aws::String> m_tokenDomains;
103 bool m_tokenDomainsHasBeenSet = false;
104
105 Aws::String m_aPIKey;
106 bool m_aPIKeyHasBeenSet = false;
107
108 Aws::Utils::DateTime m_creationTimestamp;
109 bool m_creationTimestampHasBeenSet = false;
110
111 int m_version;
112 bool m_versionHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace WAFV2
117} // namespace Aws
AWS_WAFV2_API APIKeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
APIKeySummary & WithAPIKey(const Aws::String &value)
void SetAPIKey(const char *value)
void SetTokenDomains(const Aws::Vector< Aws::String > &value)
APIKeySummary & AddTokenDomains(const Aws::String &value)
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
APIKeySummary & WithCreationTimestamp(Aws::Utils::DateTime &&value)
void SetAPIKey(Aws::String &&value)
AWS_WAFV2_API APIKeySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAPIKey() const
APIKeySummary & WithCreationTimestamp(const Aws::Utils::DateTime &value)
APIKeySummary & WithTokenDomains(Aws::Vector< Aws::String > &&value)
APIKeySummary & WithAPIKey(const char *value)
APIKeySummary & WithTokenDomains(const Aws::Vector< Aws::String > &value)
APIKeySummary & WithAPIKey(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
APIKeySummary & AddTokenDomains(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTokenDomains() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTokenDomains(Aws::Vector< Aws::String > &&value)
APIKeySummary & WithVersion(int value)
APIKeySummary & AddTokenDomains(const char *value)
void SetAPIKey(const Aws::String &value)
void SetCreationTimestamp(const Aws::Utils::DateTime &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