AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rollback.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ECS_API Rollback();
36 AWS_ECS_API Rollback(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline const Aws::String& GetReason() const{ return m_reason; }
47 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
48 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
49 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
50 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
51 inline Rollback& WithReason(const Aws::String& value) { SetReason(value); return *this;}
52 inline Rollback& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
53 inline Rollback& WithReason(const char* value) { SetReason(value); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
62 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
63 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
64 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
65 inline Rollback& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
66 inline Rollback& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
68
70
81 inline const Aws::String& GetServiceRevisionArn() const{ return m_serviceRevisionArn; }
82 inline bool ServiceRevisionArnHasBeenSet() const { return m_serviceRevisionArnHasBeenSet; }
83 inline void SetServiceRevisionArn(const Aws::String& value) { m_serviceRevisionArnHasBeenSet = true; m_serviceRevisionArn = value; }
84 inline void SetServiceRevisionArn(Aws::String&& value) { m_serviceRevisionArnHasBeenSet = true; m_serviceRevisionArn = std::move(value); }
85 inline void SetServiceRevisionArn(const char* value) { m_serviceRevisionArnHasBeenSet = true; m_serviceRevisionArn.assign(value); }
86 inline Rollback& WithServiceRevisionArn(const Aws::String& value) { SetServiceRevisionArn(value); return *this;}
87 inline Rollback& WithServiceRevisionArn(Aws::String&& value) { SetServiceRevisionArn(std::move(value)); return *this;}
88 inline Rollback& WithServiceRevisionArn(const char* value) { SetServiceRevisionArn(value); return *this;}
90 private:
91
92 Aws::String m_reason;
93 bool m_reasonHasBeenSet = false;
94
95 Aws::Utils::DateTime m_startedAt;
96 bool m_startedAtHasBeenSet = false;
97
98 Aws::String m_serviceRevisionArn;
99 bool m_serviceRevisionArnHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ECS
104} // namespace Aws
const Aws::String & GetReason() const
Definition Rollback.h:46
Rollback & WithReason(const char *value)
Definition Rollback.h:53
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReason(const char *value)
Definition Rollback.h:50
Rollback & WithReason(const Aws::String &value)
Definition Rollback.h:51
const Aws::Utils::DateTime & GetStartedAt() const
Definition Rollback.h:61
void SetReason(Aws::String &&value)
Definition Rollback.h:49
bool StartedAtHasBeenSet() const
Definition Rollback.h:62
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition Rollback.h:64
bool ReasonHasBeenSet() const
Definition Rollback.h:47
const Aws::String & GetServiceRevisionArn() const
Definition Rollback.h:81
void SetServiceRevisionArn(const char *value)
Definition Rollback.h:85
void SetServiceRevisionArn(Aws::String &&value)
Definition Rollback.h:84
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition Rollback.h:63
Rollback & WithStartedAt(Aws::Utils::DateTime &&value)
Definition Rollback.h:66
Rollback & WithServiceRevisionArn(const char *value)
Definition Rollback.h:88
Rollback & WithServiceRevisionArn(Aws::String &&value)
Definition Rollback.h:87
Rollback & WithStartedAt(const Aws::Utils::DateTime &value)
Definition Rollback.h:65
AWS_ECS_API Rollback(Aws::Utils::Json::JsonView jsonValue)
void SetReason(const Aws::String &value)
Definition Rollback.h:48
Rollback & WithServiceRevisionArn(const Aws::String &value)
Definition Rollback.h:86
bool ServiceRevisionArnHasBeenSet() const
Definition Rollback.h:82
Rollback & WithReason(Aws::String &&value)
Definition Rollback.h:52
void SetServiceRevisionArn(const Aws::String &value)
Definition Rollback.h:83
AWS_ECS_API Rollback & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue