AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecycleExecutionResourceAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/LifecycleExecutionResourceActionName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
30 public:
31 AWS_IMAGEBUILDER_API LifecycleExecutionResourceAction() = default;
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline LifecycleExecutionResourceActionName GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 m_nameHasBeenSet = true;
45 m_name = value;
46 }
48 SetName(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetReason() const { return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 template <typename ReasonT = Aws::String>
60 void SetReason(ReasonT&& value) {
61 m_reasonHasBeenSet = true;
62 m_reason = std::forward<ReasonT>(value);
63 }
64 template <typename ReasonT = Aws::String>
66 SetReason(std::forward<ReasonT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_reason;
74 bool m_nameHasBeenSet = false;
75 bool m_reasonHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace imagebuilder
80} // namespace Aws
AWS_IMAGEBUILDER_API LifecycleExecutionResourceAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API LifecycleExecutionResourceAction()=default
LifecycleExecutionResourceAction & WithReason(ReasonT &&value)
LifecycleExecutionResourceAction & WithName(LifecycleExecutionResourceActionName value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
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