AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StopDeploymentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace AppConfig
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_APPCONFIG_API StopDeploymentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StopDeployment"; }
31
32 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template<typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
45 template<typename ApplicationIdT = Aws::String>
46 StopDeploymentRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
54 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
55 template<typename EnvironmentIdT = Aws::String>
56 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
57 template<typename EnvironmentIdT = Aws::String>
58 StopDeploymentRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
60
62
65 inline int GetDeploymentNumber() const { return m_deploymentNumber; }
66 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
67 inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
68 inline StopDeploymentRequest& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
70
72
77 inline bool GetAllowRevert() const { return m_allowRevert; }
78 inline bool AllowRevertHasBeenSet() const { return m_allowRevertHasBeenSet; }
79 inline void SetAllowRevert(bool value) { m_allowRevertHasBeenSet = true; m_allowRevert = value; }
80 inline StopDeploymentRequest& WithAllowRevert(bool value) { SetAllowRevert(value); return *this;}
82 private:
83
84 Aws::String m_applicationId;
85 bool m_applicationIdHasBeenSet = false;
86
87 Aws::String m_environmentId;
88 bool m_environmentIdHasBeenSet = false;
89
90 int m_deploymentNumber{0};
91 bool m_deploymentNumberHasBeenSet = false;
92
93 bool m_allowRevert{false};
94 bool m_allowRevertHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AppConfig
99} // 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