AWS SDK for C++  1.9.155
AWS SDK for C++
CreateDeploymentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Amplify
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetAppId() const{ return m_appId; }
44 
48  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
49 
53  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
54 
58  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
59 
63  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
64 
68  inline CreateDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
69 
73  inline CreateDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
74 
78  inline CreateDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
79 
80 
84  inline const Aws::String& GetBranchName() const{ return m_branchName; }
85 
89  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
90 
94  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
95 
99  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
100 
104  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
105 
109  inline CreateDeploymentRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
110 
114  inline CreateDeploymentRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
115 
119  inline CreateDeploymentRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
120 
121 
128  inline const Aws::Map<Aws::String, Aws::String>& GetFileMap() const{ return m_fileMap; }
129 
136  inline bool FileMapHasBeenSet() const { return m_fileMapHasBeenSet; }
137 
144  inline void SetFileMap(const Aws::Map<Aws::String, Aws::String>& value) { m_fileMapHasBeenSet = true; m_fileMap = value; }
145 
152  inline void SetFileMap(Aws::Map<Aws::String, Aws::String>&& value) { m_fileMapHasBeenSet = true; m_fileMap = std::move(value); }
153 
160  inline CreateDeploymentRequest& WithFileMap(const Aws::Map<Aws::String, Aws::String>& value) { SetFileMap(value); return *this;}
161 
168  inline CreateDeploymentRequest& WithFileMap(Aws::Map<Aws::String, Aws::String>&& value) { SetFileMap(std::move(value)); return *this;}
169 
176  inline CreateDeploymentRequest& AddFileMap(const Aws::String& key, const Aws::String& value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(key, value); return *this; }
177 
184  inline CreateDeploymentRequest& AddFileMap(Aws::String&& key, const Aws::String& value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(std::move(key), value); return *this; }
185 
192  inline CreateDeploymentRequest& AddFileMap(const Aws::String& key, Aws::String&& value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(key, std::move(value)); return *this; }
193 
200  inline CreateDeploymentRequest& AddFileMap(Aws::String&& key, Aws::String&& value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(std::move(key), std::move(value)); return *this; }
201 
208  inline CreateDeploymentRequest& AddFileMap(const char* key, Aws::String&& value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(key, std::move(value)); return *this; }
209 
216  inline CreateDeploymentRequest& AddFileMap(Aws::String&& key, const char* value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(std::move(key), value); return *this; }
217 
224  inline CreateDeploymentRequest& AddFileMap(const char* key, const char* value) { m_fileMapHasBeenSet = true; m_fileMap.emplace(key, value); return *this; }
225 
226  private:
227 
228  Aws::String m_appId;
229  bool m_appIdHasBeenSet;
230 
231  Aws::String m_branchName;
232  bool m_branchNameHasBeenSet;
233 
235  bool m_fileMapHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace Amplify
240 } // namespace Aws
Aws::Amplify::Model::CreateDeploymentRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: CreateDeploymentRequest.h:84
Aws::Amplify::Model::CreateDeploymentRequest
Definition: CreateDeploymentRequest.h:27
Amplify_EXPORTS.h
Aws::Amplify::Model::CreateDeploymentRequest::WithBranchName
CreateDeploymentRequest & WithBranchName(const Aws::String &value)
Definition: CreateDeploymentRequest.h:109
Aws::Amplify::Model::CreateDeploymentRequest::WithBranchName
CreateDeploymentRequest & WithBranchName(const char *value)
Definition: CreateDeploymentRequest.h:119
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(const Aws::String &key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:192
Aws::Amplify::Model::CreateDeploymentRequest::SetAppId
void SetAppId(const char *value)
Definition: CreateDeploymentRequest.h:63
Aws::Amplify::Model::CreateDeploymentRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: CreateDeploymentRequest.h:94
Aws::Amplify::Model::CreateDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::CreateDeploymentRequest::SetFileMap
void SetFileMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeploymentRequest.h:144
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(Aws::String &&key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:200
Aws::Amplify::Model::CreateDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDeploymentRequest.h:35
Aws::Amplify::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(const char *value)
Definition: CreateDeploymentRequest.h:78
Aws::Amplify::Model::CreateDeploymentRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:58
Aws::Amplify::Model::CreateDeploymentRequest::SetFileMap
void SetFileMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeploymentRequest.h:152
AmplifyRequest.h
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(const Aws::String &key, const Aws::String &value)
Definition: CreateDeploymentRequest.h:176
Aws::Amplify::Model::CreateDeploymentRequest::FileMapHasBeenSet
bool FileMapHasBeenSet() const
Definition: CreateDeploymentRequest.h:136
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(Aws::String &&key, const Aws::String &value)
Definition: CreateDeploymentRequest.h:184
Aws::Amplify::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(Aws::String &&value)
Definition: CreateDeploymentRequest.h:73
Aws::Amplify::Model::CreateDeploymentRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: CreateDeploymentRequest.h:48
Aws::Amplify::Model::CreateDeploymentRequest::CreateDeploymentRequest
CreateDeploymentRequest()
Aws::Amplify::Model::CreateDeploymentRequest::WithAppId
CreateDeploymentRequest & WithAppId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:68
AWSString.h
Aws::Amplify::Model::CreateDeploymentRequest::WithBranchName
CreateDeploymentRequest & WithBranchName(Aws::String &&value)
Definition: CreateDeploymentRequest.h:114
Aws::Amplify::Model::CreateDeploymentRequest::WithFileMap
CreateDeploymentRequest & WithFileMap(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDeploymentRequest.h:168
Aws::Amplify::Model::CreateDeploymentRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: CreateDeploymentRequest.h:89
Aws::Amplify::Model::CreateDeploymentRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: CreateDeploymentRequest.h:99
Aws::Amplify::Model::CreateDeploymentRequest::GetAppId
const Aws::String & GetAppId() const
Definition: CreateDeploymentRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::CreateDeploymentRequest::SetBranchName
void SetBranchName(const char *value)
Definition: CreateDeploymentRequest.h:104
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::CreateDeploymentRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: CreateDeploymentRequest.h:53
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(Aws::String &&key, const char *value)
Definition: CreateDeploymentRequest.h:216
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(const char *key, Aws::String &&value)
Definition: CreateDeploymentRequest.h:208
Aws::Amplify::Model::CreateDeploymentRequest::AddFileMap
CreateDeploymentRequest & AddFileMap(const char *key, const char *value)
Definition: CreateDeploymentRequest.h:224
AWSMap.h
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Amplify::Model::CreateDeploymentRequest::WithFileMap
CreateDeploymentRequest & WithFileMap(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDeploymentRequest.h:160
Aws::Amplify::Model::CreateDeploymentRequest::GetFileMap
const Aws::Map< Aws::String, Aws::String > & GetFileMap() const
Definition: CreateDeploymentRequest.h:128