AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
HookTarget.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/HookTargetAction.h>
9#include <aws/cloudformation/model/HookTargetType.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFormation {
22namespace Model {
23
30 public:
31 AWS_CLOUDFORMATION_API HookTarget() = default;
32 AWS_CLOUDFORMATION_API HookTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFORMATION_API HookTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline HookTargetType GetTargetType() const { return m_targetType; }
43 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
44 inline void SetTargetType(HookTargetType value) {
45 m_targetTypeHasBeenSet = true;
46 m_targetType = value;
47 }
49 SetTargetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTargetTypeName() const { return m_targetTypeName; }
59 inline bool TargetTypeNameHasBeenSet() const { return m_targetTypeNameHasBeenSet; }
60 template <typename TargetTypeNameT = Aws::String>
61 void SetTargetTypeName(TargetTypeNameT&& value) {
62 m_targetTypeNameHasBeenSet = true;
63 m_targetTypeName = std::forward<TargetTypeNameT>(value);
64 }
65 template <typename TargetTypeNameT = Aws::String>
66 HookTarget& WithTargetTypeName(TargetTypeNameT&& value) {
67 SetTargetTypeName(std::forward<TargetTypeNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTargetId() const { return m_targetId; }
77 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
78 template <typename TargetIdT = Aws::String>
79 void SetTargetId(TargetIdT&& value) {
80 m_targetIdHasBeenSet = true;
81 m_targetId = std::forward<TargetIdT>(value);
82 }
83 template <typename TargetIdT = Aws::String>
84 HookTarget& WithTargetId(TargetIdT&& value) {
85 SetTargetId(std::forward<TargetIdT>(value));
86 return *this;
87 }
89
91
94 inline HookTargetAction GetAction() const { return m_action; }
95 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
96 inline void SetAction(HookTargetAction value) {
97 m_actionHasBeenSet = true;
98 m_action = value;
99 }
101 SetAction(value);
102 return *this;
103 }
105 private:
107
108 Aws::String m_targetTypeName;
109
110 Aws::String m_targetId;
111
113 bool m_targetTypeHasBeenSet = false;
114 bool m_targetTypeNameHasBeenSet = false;
115 bool m_targetIdHasBeenSet = false;
116 bool m_actionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CloudFormation
121} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API HookTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API HookTarget()=default
void SetTargetId(TargetIdT &&value)
Definition HookTarget.h:79
HookTargetAction GetAction() const
Definition HookTarget.h:94
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTargetTypeName(TargetTypeNameT &&value)
Definition HookTarget.h:61
const Aws::String & GetTargetId() const
Definition HookTarget.h:76
HookTarget & WithAction(HookTargetAction value)
Definition HookTarget.h:100
void SetAction(HookTargetAction value)
Definition HookTarget.h:96
HookTarget & WithTargetTypeName(TargetTypeNameT &&value)
Definition HookTarget.h:66
HookTarget & WithTargetId(TargetIdT &&value)
Definition HookTarget.h:84
HookTarget & WithTargetType(HookTargetType value)
Definition HookTarget.h:48
HookTargetType GetTargetType() const
Definition HookTarget.h:42
AWS_CLOUDFORMATION_API HookTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetType(HookTargetType value)
Definition HookTarget.h:44
const Aws::String & GetTargetTypeName() const
Definition HookTarget.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream