AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
Output.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFormation {
20namespace Model {
21
27class Output {
28 public:
29 AWS_CLOUDFORMATION_API Output() = default;
30 AWS_CLOUDFORMATION_API Output(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFORMATION_API Output& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetOutputKey() const { return m_outputKey; }
41 inline bool OutputKeyHasBeenSet() const { return m_outputKeyHasBeenSet; }
42 template <typename OutputKeyT = Aws::String>
43 void SetOutputKey(OutputKeyT&& value) {
44 m_outputKeyHasBeenSet = true;
45 m_outputKey = std::forward<OutputKeyT>(value);
46 }
47 template <typename OutputKeyT = Aws::String>
48 Output& WithOutputKey(OutputKeyT&& value) {
49 SetOutputKey(std::forward<OutputKeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOutputValue() const { return m_outputValue; }
59 inline bool OutputValueHasBeenSet() const { return m_outputValueHasBeenSet; }
60 template <typename OutputValueT = Aws::String>
61 void SetOutputValue(OutputValueT&& value) {
62 m_outputValueHasBeenSet = true;
63 m_outputValue = std::forward<OutputValueT>(value);
64 }
65 template <typename OutputValueT = Aws::String>
66 Output& WithOutputValue(OutputValueT&& value) {
67 SetOutputValue(std::forward<OutputValueT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 Output& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetExportName() const { return m_exportName; }
95 inline bool ExportNameHasBeenSet() const { return m_exportNameHasBeenSet; }
96 template <typename ExportNameT = Aws::String>
97 void SetExportName(ExportNameT&& value) {
98 m_exportNameHasBeenSet = true;
99 m_exportName = std::forward<ExportNameT>(value);
100 }
101 template <typename ExportNameT = Aws::String>
102 Output& WithExportName(ExportNameT&& value) {
103 SetExportName(std::forward<ExportNameT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_outputKey;
109
110 Aws::String m_outputValue;
111
112 Aws::String m_description;
113
114 Aws::String m_exportName;
115 bool m_outputKeyHasBeenSet = false;
116 bool m_outputValueHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118 bool m_exportNameHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CloudFormation
123} // namespace Aws
AWS_CLOUDFORMATION_API Output(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetExportName(ExportNameT &&value)
Definition Output.h:97
void SetOutputKey(OutputKeyT &&value)
Definition Output.h:43
AWS_CLOUDFORMATION_API Output & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API Output()=default
const Aws::String & GetOutputKey() const
Definition Output.h:40
const Aws::String & GetExportName() const
Definition Output.h:94
Output & WithDescription(DescriptionT &&value)
Definition Output.h:84
Output & WithExportName(ExportNameT &&value)
Definition Output.h:102
const Aws::String & GetOutputValue() const
Definition Output.h:58
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Output & WithOutputValue(OutputValueT &&value)
Definition Output.h:66
void SetOutputValue(OutputValueT &&value)
Definition Output.h:61
void SetDescription(DescriptionT &&value)
Definition Output.h:79
Output & WithOutputKey(OutputKeyT &&value)
Definition Output.h:48
const Aws::String & GetDescription() const
Definition Output.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream