AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API ActionTarget() = default;
30 AWS_SECURITYHUB_API ActionTarget(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API ActionTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetActionTargetArn() const { return m_actionTargetArn; }
39 inline bool ActionTargetArnHasBeenSet() const { return m_actionTargetArnHasBeenSet; }
40 template <typename ActionTargetArnT = Aws::String>
41 void SetActionTargetArn(ActionTargetArnT&& value) {
42 m_actionTargetArnHasBeenSet = true;
43 m_actionTargetArn = std::forward<ActionTargetArnT>(value);
44 }
45 template <typename ActionTargetArnT = Aws::String>
46 ActionTarget& WithActionTargetArn(ActionTargetArnT&& value) {
47 SetActionTargetArn(std::forward<ActionTargetArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 ActionTarget& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 ActionTarget& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_actionTargetArn;
89
90 Aws::String m_name;
91
92 Aws::String m_description;
93 bool m_actionTargetArnHasBeenSet = false;
94 bool m_nameHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SecurityHub
100} // namespace Aws
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
ActionTarget & WithActionTargetArn(ActionTargetArnT &&value)
const Aws::String & GetActionTargetArn() const
AWS_SECURITYHUB_API ActionTarget()=default
AWS_SECURITYHUB_API ActionTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionTargetArn(ActionTargetArnT &&value)
AWS_SECURITYHUB_API ActionTarget(Aws::Utils::Json::JsonView jsonValue)
ActionTarget & WithDescription(DescriptionT &&value)
ActionTarget & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue