AWS SDK for C++  1.9.40
AWS SDK for C++
ApiKey.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppSync
22 {
23 namespace Model
24 {
25 
60  {
61  public:
62  ApiKey();
66 
67 
71  inline const Aws::String& GetId() const{ return m_id; }
72 
76  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 
81  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
82 
86  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
87 
91  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
92 
96  inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
97 
101  inline ApiKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
102 
106  inline ApiKey& WithId(const char* value) { SetId(value); return *this;}
107 
108 
112  inline const Aws::String& GetDescription() const{ return m_description; }
113 
117  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 
122  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
123 
127  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
128 
132  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
133 
137  inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
138 
142  inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
143 
147  inline ApiKey& WithDescription(const char* value) { SetDescription(value); return *this;}
148 
149 
154  inline long long GetExpires() const{ return m_expires; }
155 
160  inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
161 
166  inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
167 
172  inline ApiKey& WithExpires(long long value) { SetExpires(value); return *this;}
173 
174 
179  inline long long GetDeletes() const{ return m_deletes; }
180 
185  inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
186 
191  inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
192 
197  inline ApiKey& WithDeletes(long long value) { SetDeletes(value); return *this;}
198 
199  private:
200 
201  Aws::String m_id;
202  bool m_idHasBeenSet;
203 
204  Aws::String m_description;
205  bool m_descriptionHasBeenSet;
206 
207  long long m_expires;
208  bool m_expiresHasBeenSet;
209 
210  long long m_deletes;
211  bool m_deletesHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace AppSync
216 } // namespace Aws
Aws::AppSync::Model::ApiKey::SetId
void SetId(Aws::String &&value)
Definition: ApiKey.h:86
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(const char *value)
Definition: ApiKey.h:132
Aws::AppSync::Model::ApiKey::DeletesHasBeenSet
bool DeletesHasBeenSet() const
Definition: ApiKey.h:185
Aws::AppSync::Model::ApiKey::GetExpires
long long GetExpires() const
Definition: ApiKey.h:154
Aws::AppSync::Model::ApiKey::ApiKey
ApiKey(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ApiKey::SetId
void SetId(const Aws::String &value)
Definition: ApiKey.h:81
Aws::AppSync::Model::ApiKey::ExpiresHasBeenSet
bool ExpiresHasBeenSet() const
Definition: ApiKey.h:160
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(const Aws::String &value)
Definition: ApiKey.h:122
Aws::AppSync::Model::ApiKey
Definition: ApiKey.h:60
Aws::AppSync::Model::ApiKey::ApiKey
ApiKey()
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(const Aws::String &value)
Definition: ApiKey.h:96
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(Aws::String &&value)
Definition: ApiKey.h:127
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(const char *value)
Definition: ApiKey.h:147
AppSync_EXPORTS.h
Aws::AppSync::Model::ApiKey::WithDeletes
ApiKey & WithDeletes(long long value)
Definition: ApiKey.h:197
Aws::AppSync::Model::ApiKey::SetExpires
void SetExpires(long long value)
Definition: ApiKey.h:166
Aws::AppSync::Model::ApiKey::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ApiKey.h:76
Aws::AppSync::Model::ApiKey::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ApiKey.h:117
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(Aws::String &&value)
Definition: ApiKey.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppSync::Model::ApiKey::SetDeletes
void SetDeletes(long long value)
Definition: ApiKey.h:191
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(Aws::String &&value)
Definition: ApiKey.h:142
Aws::AppSync::Model::ApiKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::ApiKey::GetId
const Aws::String & GetId() const
Definition: ApiKey.h:71
Aws::AppSync::Model::ApiKey::operator=
ApiKey & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ApiKey::WithExpires
ApiKey & WithExpires(long long value)
Definition: ApiKey.h:172
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(const char *value)
Definition: ApiKey.h:106
Aws::AppSync::Model::ApiKey::SetId
void SetId(const char *value)
Definition: ApiKey.h:91
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(const Aws::String &value)
Definition: ApiKey.h:137
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::ApiKey::GetDescription
const Aws::String & GetDescription() const
Definition: ApiKey.h:112
Aws::AppSync::Model::ApiKey::GetDeletes
long long GetDeletes() const
Definition: ApiKey.h:179