AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opsworks/model/DeploymentCommand.h>
12#include <utility>
13
14namespace Aws
15{
16namespace OpsWorks
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPSWORKS_API CreateDeploymentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
33
34 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetStackId() const { return m_stackId; }
44 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
45 template<typename StackIdT = Aws::String>
46 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
47 template<typename StackIdT = Aws::String>
48 CreateDeploymentRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetAppId() const { return m_appId; }
57 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
58 template<typename AppIdT = Aws::String>
59 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
60 template<typename AppIdT = Aws::String>
61 CreateDeploymentRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
69 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
70 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
71 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
72 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
73 CreateDeploymentRequest& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
74 template<typename InstanceIdsT = Aws::String>
75 CreateDeploymentRequest& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetLayerIds() const { return m_layerIds; }
83 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
84 template<typename LayerIdsT = Aws::Vector<Aws::String>>
85 void SetLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::forward<LayerIdsT>(value); }
86 template<typename LayerIdsT = Aws::Vector<Aws::String>>
87 CreateDeploymentRequest& WithLayerIds(LayerIdsT&& value) { SetLayerIds(std::forward<LayerIdsT>(value)); return *this;}
88 template<typename LayerIdsT = Aws::String>
89 CreateDeploymentRequest& AddLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet = true; m_layerIds.emplace_back(std::forward<LayerIdsT>(value)); return *this; }
91
93
97 inline const DeploymentCommand& GetCommand() const { return m_command; }
98 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
99 template<typename CommandT = DeploymentCommand>
100 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
101 template<typename CommandT = DeploymentCommand>
102 CreateDeploymentRequest& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
104
106
109 inline const Aws::String& GetComment() const { return m_comment; }
110 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
111 template<typename CommentT = Aws::String>
112 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
113 template<typename CommentT = Aws::String>
114 CreateDeploymentRequest& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
116
118
129 inline const Aws::String& GetCustomJson() const { return m_customJson; }
130 inline bool CustomJsonHasBeenSet() const { return m_customJsonHasBeenSet; }
131 template<typename CustomJsonT = Aws::String>
132 void SetCustomJson(CustomJsonT&& value) { m_customJsonHasBeenSet = true; m_customJson = std::forward<CustomJsonT>(value); }
133 template<typename CustomJsonT = Aws::String>
134 CreateDeploymentRequest& WithCustomJson(CustomJsonT&& value) { SetCustomJson(std::forward<CustomJsonT>(value)); return *this;}
136 private:
137
138 Aws::String m_stackId;
139 bool m_stackIdHasBeenSet = false;
140
141 Aws::String m_appId;
142 bool m_appIdHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_instanceIds;
145 bool m_instanceIdsHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_layerIds;
148 bool m_layerIdsHasBeenSet = false;
149
150 DeploymentCommand m_command;
151 bool m_commandHasBeenSet = false;
152
153 Aws::String m_comment;
154 bool m_commentHasBeenSet = false;
155
156 Aws::String m_customJson;
157 bool m_customJsonHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace OpsWorks
162} // namespace Aws
CreateDeploymentRequest & WithAppId(AppIdT &&value)
CreateDeploymentRequest & WithInstanceIds(InstanceIdsT &&value)
CreateDeploymentRequest & WithCommand(CommandT &&value)
CreateDeploymentRequest & WithStackId(StackIdT &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
const Aws::Vector< Aws::String > & GetLayerIds() const
AWS_OPSWORKS_API CreateDeploymentRequest()=default
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithLayerIds(LayerIdsT &&value)
CreateDeploymentRequest & AddLayerIds(LayerIdsT &&value)
CreateDeploymentRequest & WithCustomJson(CustomJsonT &&value)
CreateDeploymentRequest & WithComment(CommentT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
CreateDeploymentRequest & AddInstanceIds(InstanceIdsT &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector