AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkflowState.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/model/WorkflowStatus.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 imagebuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IMAGEBUILDER_API WorkflowState();
37 AWS_IMAGEBUILDER_API WorkflowState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API WorkflowState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const WorkflowStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const WorkflowStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(WorkflowStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline WorkflowState& WithStatus(const WorkflowStatus& value) { SetStatus(value); return *this;}
51 inline WorkflowState& WithStatus(WorkflowStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetReason() const{ return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
60 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
61 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
62 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
63 inline WorkflowState& WithReason(const Aws::String& value) { SetReason(value); return *this;}
64 inline WorkflowState& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
65 inline WorkflowState& WithReason(const char* value) { SetReason(value); return *this;}
67 private:
68
69 WorkflowStatus m_status;
70 bool m_statusHasBeenSet = false;
71
72 Aws::String m_reason;
73 bool m_reasonHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace imagebuilder
78} // namespace Aws
WorkflowState & WithReason(const Aws::String &value)
const Aws::String & GetReason() const
WorkflowState & WithStatus(const WorkflowStatus &value)
void SetReason(const Aws::String &value)
AWS_IMAGEBUILDER_API WorkflowState()
void SetReason(Aws::String &&value)
void SetStatus(const WorkflowStatus &value)
WorkflowState & WithReason(const char *value)
const WorkflowStatus & GetStatus() const
AWS_IMAGEBUILDER_API WorkflowState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(WorkflowStatus &&value)
AWS_IMAGEBUILDER_API WorkflowState(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowState & WithStatus(WorkflowStatus &&value)
WorkflowState & WithReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue