AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Amplify
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_AMPLIFY_API CreateDeploymentRequest() = default;
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_AMPLIFY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template<typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
48 template<typename AppIdT = Aws::String>
49 CreateDeploymentRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetBranchName() const { return m_branchName; }
57 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
58 template<typename BranchNameT = Aws::String>
59 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
60 template<typename BranchNameT = Aws::String>
61 CreateDeploymentRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
63
65
71 inline const Aws::Map<Aws::String, Aws::String>& GetFileMap() const { return m_fileMap; }
72 inline bool FileMapHasBeenSet() const { return m_fileMapHasBeenSet; }
73 template<typename FileMapT = Aws::Map<Aws::String, Aws::String>>
74 void SetFileMap(FileMapT&& value) { m_fileMapHasBeenSet = true; m_fileMap = std::forward<FileMapT>(value); }
75 template<typename FileMapT = Aws::Map<Aws::String, Aws::String>>
76 CreateDeploymentRequest& WithFileMap(FileMapT&& value) { SetFileMap(std::forward<FileMapT>(value)); return *this;}
77 template<typename FileMapKeyT = Aws::String, typename FileMapValueT = Aws::String>
78 CreateDeploymentRequest& AddFileMap(FileMapKeyT&& key, FileMapValueT&& value) {
79 m_fileMapHasBeenSet = true; m_fileMap.emplace(std::forward<FileMapKeyT>(key), std::forward<FileMapValueT>(value)); return *this;
80 }
82 private:
83
84 Aws::String m_appId;
85 bool m_appIdHasBeenSet = false;
86
87 Aws::String m_branchName;
88 bool m_branchNameHasBeenSet = false;
89
91 bool m_fileMapHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Amplify
96} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetFileMap() const
CreateDeploymentRequest & WithBranchName(BranchNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & AddFileMap(FileMapKeyT &&key, FileMapValueT &&value)
CreateDeploymentRequest & WithFileMap(FileMapT &&value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithAppId(AppIdT &&value)
AWS_AMPLIFY_API CreateDeploymentRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String