AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
44 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
45 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
46 inline StopDeploymentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline StopDeploymentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline StopDeploymentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
55 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
56 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
58 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
59 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
60 inline StopDeploymentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
61 inline StopDeploymentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
62 inline StopDeploymentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
64
66
69 inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
70 inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
71 inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
72 inline StopDeploymentRequest& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
74
76
81 inline bool GetAllowRevert() const{ return m_allowRevert; }
82 inline bool AllowRevertHasBeenSet() const { return m_allowRevertHasBeenSet; }
83 inline void SetAllowRevert(bool value) { m_allowRevertHasBeenSet = true; m_allowRevert = value; }
84 inline StopDeploymentRequest& WithAllowRevert(bool value) { SetAllowRevert(value); return *this;}
86 private:
87
88 Aws::String m_applicationId;
89 bool m_applicationIdHasBeenSet = false;
90
91 Aws::String m_environmentId;
92 bool m_environmentIdHasBeenSet = false;
93
94 int m_deploymentNumber;
95 bool m_deploymentNumberHasBeenSet = false;
96
97 bool m_allowRevert;
98 bool m_allowRevertHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace AppConfig
103} // namespace Aws
StopDeploymentRequest & WithAllowRevert(bool value)
StopDeploymentRequest & WithEnvironmentId(Aws::String &&value)
AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopDeploymentRequest & WithDeploymentNumber(int value)
StopDeploymentRequest & WithApplicationId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_APPCONFIG_API Aws::String SerializePayload() const override
StopDeploymentRequest & WithApplicationId(const Aws::String &value)
StopDeploymentRequest & WithApplicationId(const char *value)
StopDeploymentRequest & WithEnvironmentId(const Aws::String &value)
StopDeploymentRequest & WithEnvironmentId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String