AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleExecutionResourceAction.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/model/LifecycleExecutionResourceActionName.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 LifecycleExecutionResourceAction();
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const LifecycleExecutionResourceActionName& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const LifecycleExecutionResourceActionName& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(LifecycleExecutionResourceActionName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54
56
59 inline const Aws::String& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
64 inline LifecycleExecutionResourceAction& WithReason(const Aws::String& value) { SetReason(value); return *this;}
65 inline LifecycleExecutionResourceAction& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
66 inline LifecycleExecutionResourceAction& WithReason(const char* value) { SetReason(value); return *this;}
68 private:
69
71 bool m_nameHasBeenSet = false;
72
73 Aws::String m_reason;
74 bool m_reasonHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace imagebuilder
79} // namespace Aws
LifecycleExecutionResourceAction & WithReason(Aws::String &&value)
LifecycleExecutionResourceAction & WithReason(const char *value)
LifecycleExecutionResourceAction & WithReason(const Aws::String &value)
LifecycleExecutionResourceAction & WithName(const LifecycleExecutionResourceActionName &value)
AWS_IMAGEBUILDER_API LifecycleExecutionResourceAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const LifecycleExecutionResourceActionName & GetName() const
void SetName(const LifecycleExecutionResourceActionName &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecycleExecutionResourceAction & WithName(LifecycleExecutionResourceActionName &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionResourceAction(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue