AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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