AWS SDK for C++  1.9.156
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 
59  {
60  public:
61  ApiKey();
65 
66 
70  inline const Aws::String& GetId() const{ return m_id; }
71 
75  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 
80  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
81 
85  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
86 
90  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
91 
95  inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;}
96 
100  inline ApiKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
101 
105  inline ApiKey& WithId(const char* value) { SetId(value); return *this;}
106 
107 
111  inline const Aws::String& GetDescription() const{ return m_description; }
112 
116  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 
121  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
122 
126  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
127 
131  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
132 
136  inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
137 
141  inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
142 
146  inline ApiKey& WithDescription(const char* value) { SetDescription(value); return *this;}
147 
148 
153  inline long long GetExpires() const{ return m_expires; }
154 
159  inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
160 
165  inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
166 
171  inline ApiKey& WithExpires(long long value) { SetExpires(value); return *this;}
172 
173 
178  inline long long GetDeletes() const{ return m_deletes; }
179 
184  inline bool DeletesHasBeenSet() const { return m_deletesHasBeenSet; }
185 
190  inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
191 
196  inline ApiKey& WithDeletes(long long value) { SetDeletes(value); return *this;}
197 
198  private:
199 
200  Aws::String m_id;
201  bool m_idHasBeenSet;
202 
203  Aws::String m_description;
204  bool m_descriptionHasBeenSet;
205 
206  long long m_expires;
207  bool m_expiresHasBeenSet;
208 
209  long long m_deletes;
210  bool m_deletesHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace AppSync
215 } // namespace Aws
Aws::AppSync::Model::ApiKey::SetId
void SetId(Aws::String &&value)
Definition: ApiKey.h:85
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(const char *value)
Definition: ApiKey.h:131
Aws::AppSync::Model::ApiKey::DeletesHasBeenSet
bool DeletesHasBeenSet() const
Definition: ApiKey.h:184
Aws::AppSync::Model::ApiKey::GetExpires
long long GetExpires() const
Definition: ApiKey.h:153
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:80
Aws::AppSync::Model::ApiKey::ExpiresHasBeenSet
bool ExpiresHasBeenSet() const
Definition: ApiKey.h:159
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(const Aws::String &value)
Definition: ApiKey.h:121
Aws::AppSync::Model::ApiKey
Definition: ApiKey.h:59
Aws::AppSync::Model::ApiKey::ApiKey
ApiKey()
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(const Aws::String &value)
Definition: ApiKey.h:95
Aws::AppSync::Model::ApiKey::SetDescription
void SetDescription(Aws::String &&value)
Definition: ApiKey.h:126
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(const char *value)
Definition: ApiKey.h:146
AppSync_EXPORTS.h
Aws::AppSync::Model::ApiKey::WithDeletes
ApiKey & WithDeletes(long long value)
Definition: ApiKey.h:196
Aws::AppSync::Model::ApiKey::SetExpires
void SetExpires(long long value)
Definition: ApiKey.h:165
Aws::AppSync::Model::ApiKey::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ApiKey.h:75
Aws::AppSync::Model::ApiKey::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ApiKey.h:116
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(Aws::String &&value)
Definition: ApiKey.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::ApiKey::SetDeletes
void SetDeletes(long long value)
Definition: ApiKey.h:190
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(Aws::String &&value)
Definition: ApiKey.h:141
Aws::AppSync::Model::ApiKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::ApiKey::GetId
const Aws::String & GetId() const
Definition: ApiKey.h:70
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:171
Aws::AppSync::Model::ApiKey::WithId
ApiKey & WithId(const char *value)
Definition: ApiKey.h:105
Aws::AppSync::Model::ApiKey::SetId
void SetId(const char *value)
Definition: ApiKey.h:90
Aws::AppSync::Model::ApiKey::WithDescription
ApiKey & WithDescription(const Aws::String &value)
Definition: ApiKey.h:136
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
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:111
Aws::AppSync::Model::ApiKey::GetDeletes
long long GetDeletes() const
Definition: ApiKey.h:178