AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
WarningDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/WarningProperty.h>
9#include <aws/cloudformation/model/WarningType.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11#include <aws/core/utils/memory/stl/AWSVector.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
31 public:
32 AWS_CLOUDFORMATION_API WarningDetail() = default;
33 AWS_CLOUDFORMATION_API WarningDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFORMATION_API WarningDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
61 inline WarningType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(WarningType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline const Aws::Vector<WarningProperty>& GetProperties() const { return m_properties; }
78 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
79 template <typename PropertiesT = Aws::Vector<WarningProperty>>
80 void SetProperties(PropertiesT&& value) {
81 m_propertiesHasBeenSet = true;
82 m_properties = std::forward<PropertiesT>(value);
83 }
84 template <typename PropertiesT = Aws::Vector<WarningProperty>>
85 WarningDetail& WithProperties(PropertiesT&& value) {
86 SetProperties(std::forward<PropertiesT>(value));
87 return *this;
88 }
89 template <typename PropertiesT = WarningProperty>
90 WarningDetail& AddProperties(PropertiesT&& value) {
91 m_propertiesHasBeenSet = true;
92 m_properties.emplace_back(std::forward<PropertiesT>(value));
93 return *this;
94 }
96 private:
98
100 bool m_typeHasBeenSet = false;
101 bool m_propertiesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudFormation
106} // namespace Aws
void SetProperties(PropertiesT &&value)
WarningDetail & AddProperties(PropertiesT &&value)
const Aws::Vector< WarningProperty > & GetProperties() const
AWS_CLOUDFORMATION_API WarningDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API WarningDetail()=default
WarningDetail & WithProperties(PropertiesT &&value)
WarningDetail & WithType(WarningType value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API WarningDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector