AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentLifecycle.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/model/EnvironmentLifecycleStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Cloud9
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUD9_API EnvironmentLifecycle();
39 AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const EnvironmentLifecycleStatus& GetStatus() const{ return m_status; }
53 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
54 inline void SetStatus(const EnvironmentLifecycleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
55 inline void SetStatus(EnvironmentLifecycleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
56 inline EnvironmentLifecycle& WithStatus(const EnvironmentLifecycleStatus& value) { SetStatus(value); return *this;}
57 inline EnvironmentLifecycle& WithStatus(EnvironmentLifecycleStatus&& value) { SetStatus(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetReason() const{ return m_reason; }
65 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
66 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
67 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
68 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
69 inline EnvironmentLifecycle& WithReason(const Aws::String& value) { SetReason(value); return *this;}
70 inline EnvironmentLifecycle& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
71 inline EnvironmentLifecycle& WithReason(const char* value) { SetReason(value); return *this;}
73
75
79 inline const Aws::String& GetFailureResource() const{ return m_failureResource; }
80 inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; }
81 inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; }
82 inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); }
83 inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); }
84 inline EnvironmentLifecycle& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;}
85 inline EnvironmentLifecycle& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;}
86 inline EnvironmentLifecycle& WithFailureResource(const char* value) { SetFailureResource(value); return *this;}
88 private:
89
91 bool m_statusHasBeenSet = false;
92
93 Aws::String m_reason;
94 bool m_reasonHasBeenSet = false;
95
96 Aws::String m_failureResource;
97 bool m_failureResourceHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Cloud9
102} // namespace Aws
EnvironmentLifecycle & WithFailureResource(const char *value)
void SetStatus(const EnvironmentLifecycleStatus &value)
void SetReason(const Aws::String &value)
const EnvironmentLifecycleStatus & GetStatus() const
void SetFailureResource(const Aws::String &value)
EnvironmentLifecycle & WithFailureResource(Aws::String &&value)
AWS_CLOUD9_API EnvironmentLifecycle(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentLifecycle & WithReason(Aws::String &&value)
void SetStatus(EnvironmentLifecycleStatus &&value)
EnvironmentLifecycle & WithStatus(EnvironmentLifecycleStatus &&value)
EnvironmentLifecycle & WithReason(const char *value)
AWS_CLOUD9_API EnvironmentLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentLifecycle & WithReason(const Aws::String &value)
const Aws::String & GetFailureResource() const
EnvironmentLifecycle & WithFailureResource(const Aws::String &value)
EnvironmentLifecycle & WithStatus(const EnvironmentLifecycleStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue