AWS SDK for C++  1.9.159
AWS SDK for C++
CreateApiKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AppSync
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateApiKey"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetApiId() const{ return m_apiId; }
39 
43  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
44 
48  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
49 
53  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
54 
58  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
59 
63  inline CreateApiKeyRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
64 
68  inline CreateApiKeyRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
69 
73  inline CreateApiKeyRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
74 
75 
79  inline const Aws::String& GetDescription() const{ return m_description; }
80 
84  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 
89  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 
94  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 
99  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 
104  inline CreateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 
109  inline CreateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 
114  inline CreateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115 
116 
123  inline long long GetExpires() const{ return m_expires; }
124 
131  inline bool ExpiresHasBeenSet() const { return m_expiresHasBeenSet; }
132 
139  inline void SetExpires(long long value) { m_expiresHasBeenSet = true; m_expires = value; }
140 
147  inline CreateApiKeyRequest& WithExpires(long long value) { SetExpires(value); return *this;}
148 
149  private:
150 
151  Aws::String m_apiId;
152  bool m_apiIdHasBeenSet;
153 
154  Aws::String m_description;
155  bool m_descriptionHasBeenSet;
156 
157  long long m_expires;
158  bool m_expiresHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace AppSync
163 } // namespace Aws
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::CreateApiKeyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApiKeyRequest.h:79
Aws::AppSync::Model::CreateApiKeyRequest::CreateApiKeyRequest
CreateApiKeyRequest()
Aws::AppSync::Model::CreateApiKeyRequest::WithApiId
CreateApiKeyRequest & WithApiId(Aws::String &&value)
Definition: CreateApiKeyRequest.h:68
Aws::AppSync::Model::CreateApiKeyRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: CreateApiKeyRequest.h:43
Aws::AppSync::Model::CreateApiKeyRequest::GetApiId
const Aws::String & GetApiId() const
Definition: CreateApiKeyRequest.h:38
AppSync_EXPORTS.h
Aws::AppSync::Model::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(const Aws::String &value)
Definition: CreateApiKeyRequest.h:104
Aws::AppSync::Model::CreateApiKeyRequest
Definition: CreateApiKeyRequest.h:22
Aws::AppSync::Model::CreateApiKeyRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: CreateApiKeyRequest.h:53
Aws::AppSync::Model::CreateApiKeyRequest::WithApiId
CreateApiKeyRequest & WithApiId(const char *value)
Definition: CreateApiKeyRequest.h:73
Aws::AppSync::Model::CreateApiKeyRequest::ExpiresHasBeenSet
bool ExpiresHasBeenSet() const
Definition: CreateApiKeyRequest.h:131
Aws::AppSync::Model::CreateApiKeyRequest::WithApiId
CreateApiKeyRequest & WithApiId(const Aws::String &value)
Definition: CreateApiKeyRequest.h:63
Aws::AppSync::Model::CreateApiKeyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApiKeyRequest.h:94
Aws::AppSync::Model::CreateApiKeyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApiKeyRequest.h:84
AWSString.h
Aws::AppSync::Model::CreateApiKeyRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: CreateApiKeyRequest.h:48
Aws::AppSync::Model::CreateApiKeyRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApiKeyRequest.h:99
Aws::AppSync::Model::CreateApiKeyRequest::SetApiId
void SetApiId(const char *value)
Definition: CreateApiKeyRequest.h:58
Aws::AppSync::Model::CreateApiKeyRequest::GetExpires
long long GetExpires() const
Definition: CreateApiKeyRequest.h:123
Aws::AppSync::Model::CreateApiKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApiKeyRequest.h:30
Aws::AppSync::Model::CreateApiKeyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApiKeyRequest.h:89
AppSyncRequest.h
Aws::AppSync::Model::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(const char *value)
Definition: CreateApiKeyRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::CreateApiKeyRequest::SetExpires
void SetExpires(long long value)
Definition: CreateApiKeyRequest.h:139
Aws::AppSync::Model::CreateApiKeyRequest::SerializePayload
Aws::String SerializePayload() const override
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::CreateApiKeyRequest::WithDescription
CreateApiKeyRequest & WithDescription(Aws::String &&value)
Definition: CreateApiKeyRequest.h:109
Aws::AppSync::Model::CreateApiKeyRequest::WithExpires
CreateApiKeyRequest & WithExpires(long long value)
Definition: CreateApiKeyRequest.h:147