AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StopDeploymentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AppConfig {
15namespace Model {
16
20 public:
21 AWS_APPCONFIG_API StopDeploymentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "StopDeployment"; }
28
29 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
40 void SetApplicationId(ApplicationIdT&& value) {
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
45 StopDeploymentRequest& WithApplicationId(ApplicationIdT&& value) {
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
56 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 template <typename EnvironmentIdT = Aws::String>
58 void SetEnvironmentId(EnvironmentIdT&& value) {
59 m_environmentIdHasBeenSet = true;
60 m_environmentId = std::forward<EnvironmentIdT>(value);
61 }
62 template <typename EnvironmentIdT = Aws::String>
63 StopDeploymentRequest& WithEnvironmentId(EnvironmentIdT&& value) {
64 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
65 return *this;
66 }
68
70
73 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
74 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
75 inline void SetDeploymentNumber(int value) {
76 m_deploymentNumberHasBeenSet = true;
77 m_deploymentNumber = value;
78 }
81 return *this;
82 }
84
86
91 inline bool GetAllowRevert() const { return m_allowRevert; }
92 inline bool AllowRevertHasBeenSet() const { return m_allowRevertHasBeenSet; }
93 inline void SetAllowRevert(bool value) {
94 m_allowRevertHasBeenSet = true;
95 m_allowRevert = value;
96 }
98 SetAllowRevert(value);
99 return *this;
100 }
102 private:
103 Aws::String m_applicationId;
104
105 Aws::String m_environmentId;
106
107 int m_deploymentNumber{0};
108
109 bool m_allowRevert{false};
110 bool m_applicationIdHasBeenSet = false;
111 bool m_environmentIdHasBeenSet = false;
112 bool m_deploymentNumberHasBeenSet = false;
113 bool m_allowRevertHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AppConfig
118} // namespace Aws
StopDeploymentRequest & WithAllowRevert(bool value)
AWS_APPCONFIG_API StopDeploymentRequest()=default
AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopDeploymentRequest & WithApplicationId(ApplicationIdT &&value)
StopDeploymentRequest & WithDeploymentNumber(int value)
virtual const char * GetServiceRequestName() const override
AWS_APPCONFIG_API Aws::String SerializePayload() const override
StopDeploymentRequest & WithEnvironmentId(EnvironmentIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String