AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ActionTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
28 public:
29 AWS_FMS_API ActionTarget() = default;
33
35
38 inline const Aws::String& GetResourceId() const { return m_resourceId; }
39 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
40 template <typename ResourceIdT = Aws::String>
41 void SetResourceId(ResourceIdT&& value) {
42 m_resourceIdHasBeenSet = true;
43 m_resourceId = std::forward<ResourceIdT>(value);
44 }
45 template <typename ResourceIdT = Aws::String>
46 ActionTarget& WithResourceId(ResourceIdT&& value) {
47 SetResourceId(std::forward<ResourceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 ActionTarget& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_resourceId;
71
72 Aws::String m_description;
73 bool m_resourceIdHasBeenSet = false;
74 bool m_descriptionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace FMS
79} // namespace Aws
ActionTarget & WithDescription(DescriptionT &&value)
void SetResourceId(ResourceIdT &&value)
const Aws::String & GetDescription() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API ActionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionTarget & WithResourceId(ResourceIdT &&value)
AWS_FMS_API ActionTarget(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const Aws::String & GetResourceId() const
AWS_FMS_API ActionTarget()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue