AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RollbackInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
28 public:
29 AWS_CODEDEPLOY_API RollbackInfo() = default;
30 AWS_CODEDEPLOY_API RollbackInfo(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CODEDEPLOY_API RollbackInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetRollbackDeploymentId() const { return m_rollbackDeploymentId; }
39 inline bool RollbackDeploymentIdHasBeenSet() const { return m_rollbackDeploymentIdHasBeenSet; }
40 template <typename RollbackDeploymentIdT = Aws::String>
41 void SetRollbackDeploymentId(RollbackDeploymentIdT&& value) {
42 m_rollbackDeploymentIdHasBeenSet = true;
43 m_rollbackDeploymentId = std::forward<RollbackDeploymentIdT>(value);
44 }
45 template <typename RollbackDeploymentIdT = Aws::String>
46 RollbackInfo& WithRollbackDeploymentId(RollbackDeploymentIdT&& value) {
47 SetRollbackDeploymentId(std::forward<RollbackDeploymentIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetRollbackTriggeringDeploymentId() const { return m_rollbackTriggeringDeploymentId; }
58 inline bool RollbackTriggeringDeploymentIdHasBeenSet() const { return m_rollbackTriggeringDeploymentIdHasBeenSet; }
59 template <typename RollbackTriggeringDeploymentIdT = Aws::String>
60 void SetRollbackTriggeringDeploymentId(RollbackTriggeringDeploymentIdT&& value) {
61 m_rollbackTriggeringDeploymentIdHasBeenSet = true;
62 m_rollbackTriggeringDeploymentId = std::forward<RollbackTriggeringDeploymentIdT>(value);
63 }
64 template <typename RollbackTriggeringDeploymentIdT = Aws::String>
65 RollbackInfo& WithRollbackTriggeringDeploymentId(RollbackTriggeringDeploymentIdT&& value) {
66 SetRollbackTriggeringDeploymentId(std::forward<RollbackTriggeringDeploymentIdT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetRollbackMessage() const { return m_rollbackMessage; }
78 inline bool RollbackMessageHasBeenSet() const { return m_rollbackMessageHasBeenSet; }
79 template <typename RollbackMessageT = Aws::String>
80 void SetRollbackMessage(RollbackMessageT&& value) {
81 m_rollbackMessageHasBeenSet = true;
82 m_rollbackMessage = std::forward<RollbackMessageT>(value);
83 }
84 template <typename RollbackMessageT = Aws::String>
85 RollbackInfo& WithRollbackMessage(RollbackMessageT&& value) {
86 SetRollbackMessage(std::forward<RollbackMessageT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_rollbackDeploymentId;
92
93 Aws::String m_rollbackTriggeringDeploymentId;
94
95 Aws::String m_rollbackMessage;
96 bool m_rollbackDeploymentIdHasBeenSet = false;
97 bool m_rollbackTriggeringDeploymentIdHasBeenSet = false;
98 bool m_rollbackMessageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeDeploy
103} // namespace Aws
void SetRollbackMessage(RollbackMessageT &&value)
const Aws::String & GetRollbackDeploymentId() const
const Aws::String & GetRollbackTriggeringDeploymentId() const
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRollbackDeploymentId(RollbackDeploymentIdT &&value)
AWS_CODEDEPLOY_API RollbackInfo()=default
RollbackInfo & WithRollbackMessage(RollbackMessageT &&value)
RollbackInfo & WithRollbackTriggeringDeploymentId(RollbackTriggeringDeploymentIdT &&value)
bool RollbackTriggeringDeploymentIdHasBeenSet() const
AWS_CODEDEPLOY_API RollbackInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRollbackMessage() const
void SetRollbackTriggeringDeploymentId(RollbackTriggeringDeploymentIdT &&value)
RollbackInfo & WithRollbackDeploymentId(RollbackDeploymentIdT &&value)
AWS_CODEDEPLOY_API RollbackInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue