AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
TestAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
29 public:
30 AWS_RESILIENCEHUBV2_API TestAction() = default;
31 AWS_RESILIENCEHUBV2_API TestAction(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API TestAction& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetActionId() const { return m_actionId; }
40 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
41 template <typename ActionIdT = Aws::String>
42 void SetActionId(ActionIdT&& value) {
43 m_actionIdHasBeenSet = true;
44 m_actionId = std::forward<ActionIdT>(value);
45 }
46 template <typename ActionIdT = Aws::String>
47 TestAction& WithActionId(ActionIdT&& value) {
48 SetActionId(std::forward<ActionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 TestAction& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceType() const { return m_resourceType; }
76 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
77 template <typename ResourceTypeT = Aws::String>
78 void SetResourceType(ResourceTypeT&& value) {
79 m_resourceTypeHasBeenSet = true;
80 m_resourceType = std::forward<ResourceTypeT>(value);
81 }
82 template <typename ResourceTypeT = Aws::String>
83 TestAction& WithResourceType(ResourceTypeT&& value) {
84 SetResourceType(std::forward<ResourceTypeT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_actionId;
90
91 Aws::String m_description;
92
93 Aws::String m_resourceType;
94 bool m_actionIdHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96 bool m_resourceTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace resiliencehubv2
101} // namespace Aws
TestAction & WithResourceType(ResourceTypeT &&value)
Definition TestAction.h:83
TestAction & WithDescription(DescriptionT &&value)
Definition TestAction.h:65
void SetResourceType(ResourceTypeT &&value)
Definition TestAction.h:78
const Aws::String & GetActionId() const
Definition TestAction.h:39
const Aws::String & GetDescription() const
Definition TestAction.h:57
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API TestAction(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API TestAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API TestAction()=default
const Aws::String & GetResourceType() const
Definition TestAction.h:75
TestAction & WithActionId(ActionIdT &&value)
Definition TestAction.h:47
void SetActionId(ActionIdT &&value)
Definition TestAction.h:42
void SetDescription(DescriptionT &&value)
Definition TestAction.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue