AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiKey.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppSync
22{
23namespace Model
24{
25
58 class ApiKey
59 {
60 public:
61 AWS_APPSYNC_API ApiKey() = default;
62 AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue);
63 AWS_APPSYNC_API ApiKey& operator=(Aws::Utils::Json::JsonView jsonValue);
64 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
65
66
68
71 inline const Aws::String& GetId() const { return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 template<typename IdT = Aws::String>
74 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
75 template<typename IdT = Aws::String>
76 ApiKey& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 ApiKey& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
96 inline long long GetExpires() const { return m_expires; }
97 inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
98 inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
99 inline ApiKey& WithExpires(long long value) { SetExpires(value); return *this;}
101
103
107 inline long long GetDeletes() const { return m_deletes; }
108 inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
109 inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
110 inline ApiKey& WithDeletes(long long value) { SetDeletes(value); return *this;}
112 private:
113
114 Aws::String m_id;
115 bool m_idHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 long long m_expires{0};
121 bool m_expiresHasBeenSet = false;
122
123 long long m_deletes{0};
124 bool m_deletesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AppSync
129} // namespace Aws
ApiKey & WithDescription(DescriptionT &&value)
Definition ApiKey.h:88
void SetDescription(DescriptionT &&value)
Definition ApiKey.h:86
bool IdHasBeenSet() const
Definition ApiKey.h:72
AWS_APPSYNC_API ApiKey(Aws::Utils::Json::JsonView jsonValue)
bool DeletesHasBeenSet() const
Definition ApiKey.h:108
void SetExpires(long long value)
Definition ApiKey.h:98
ApiKey & WithExpires(long long value)
Definition ApiKey.h:99
AWS_APPSYNC_API ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition ApiKey.h:71
long long GetDeletes() const
Definition ApiKey.h:107
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKey & WithDeletes(long long value)
Definition ApiKey.h:110
void SetId(IdT &&value)
Definition ApiKey.h:74
AWS_APPSYNC_API ApiKey()=default
bool ExpiresHasBeenSet() const
Definition ApiKey.h:97
ApiKey & WithId(IdT &&value)
Definition ApiKey.h:76
const Aws::String & GetDescription() const
Definition ApiKey.h:83
long long GetExpires() const
Definition ApiKey.h:96
void SetDeletes(long long value)
Definition ApiKey.h:109
bool DescriptionHasBeenSet() const
Definition ApiKey.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue