AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
Export.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
31class Export {
32 public:
33 AWS_CLOUDFORMATION_API Export() = default;
34 AWS_CLOUDFORMATION_API Export(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFORMATION_API Export& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetExportingStackId() const { return m_exportingStackId; }
45 inline bool ExportingStackIdHasBeenSet() const { return m_exportingStackIdHasBeenSet; }
46 template <typename ExportingStackIdT = Aws::String>
47 void SetExportingStackId(ExportingStackIdT&& value) {
48 m_exportingStackIdHasBeenSet = true;
49 m_exportingStackId = std::forward<ExportingStackIdT>(value);
50 }
51 template <typename ExportingStackIdT = Aws::String>
52 Export& WithExportingStackId(ExportingStackIdT&& value) {
53 SetExportingStackId(std::forward<ExportingStackIdT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 Export& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetValue() const { return m_value; }
86 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
87 template <typename ValueT = Aws::String>
88 void SetValue(ValueT&& value) {
89 m_valueHasBeenSet = true;
90 m_value = std::forward<ValueT>(value);
91 }
92 template <typename ValueT = Aws::String>
93 Export& WithValue(ValueT&& value) {
94 SetValue(std::forward<ValueT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_exportingStackId;
100
101 Aws::String m_name;
102
103 Aws::String m_value;
104 bool m_exportingStackIdHasBeenSet = false;
105 bool m_nameHasBeenSet = false;
106 bool m_valueHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CloudFormation
111} // namespace Aws
const Aws::String & GetExportingStackId() const
Definition Export.h:44
AWS_CLOUDFORMATION_API Export(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(NameT &&value)
Definition Export.h:68
Export & WithExportingStackId(ExportingStackIdT &&value)
Definition Export.h:52
Export & WithValue(ValueT &&value)
Definition Export.h:93
AWS_CLOUDFORMATION_API Export & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API Export()=default
bool ExportingStackIdHasBeenSet() const
Definition Export.h:45
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
Definition Export.h:65
const Aws::String & GetValue() const
Definition Export.h:85
Export & WithName(NameT &&value)
Definition Export.h:73
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetExportingStackId(ExportingStackIdT &&value)
Definition Export.h:47
void SetValue(ValueT &&value)
Definition Export.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream