AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StopDeploymentRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeDeploy {
15namespace Model {
16
24 public:
25 AWS_CODEDEPLOY_API StopDeploymentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StopDeployment"; }
32
33 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
42 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
43 template <typename DeploymentIdT = Aws::String>
44 void SetDeploymentId(DeploymentIdT&& value) {
45 m_deploymentIdHasBeenSet = true;
46 m_deploymentId = std::forward<DeploymentIdT>(value);
47 }
48 template <typename DeploymentIdT = Aws::String>
49 StopDeploymentRequest& WithDeploymentId(DeploymentIdT&& value) {
50 SetDeploymentId(std::forward<DeploymentIdT>(value));
51 return *this;
52 }
54
56
61 inline bool GetAutoRollbackEnabled() const { return m_autoRollbackEnabled; }
62 inline bool AutoRollbackEnabledHasBeenSet() const { return m_autoRollbackEnabledHasBeenSet; }
63 inline void SetAutoRollbackEnabled(bool value) {
64 m_autoRollbackEnabledHasBeenSet = true;
65 m_autoRollbackEnabled = value;
66 }
69 return *this;
70 }
72 private:
73 Aws::String m_deploymentId;
74
75 bool m_autoRollbackEnabled{false};
76 bool m_deploymentIdHasBeenSet = false;
77 bool m_autoRollbackEnabledHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeDeploy
82} // namespace Aws
StopDeploymentRequest & WithDeploymentId(DeploymentIdT &&value)
virtual const char * GetServiceRequestName() const override
StopDeploymentRequest & WithAutoRollbackEnabled(bool value)
AWS_CODEDEPLOY_API StopDeploymentRequest()=default
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String