AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WarningDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/cloudformation/model/WarningType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/WarningProperty.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDFORMATION_API WarningDetail() = default;
38 AWS_CLOUDFORMATION_API WarningDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFORMATION_API WarningDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
67 inline WarningType GetType() const { return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(WarningType value) { m_typeHasBeenSet = true; m_type = value; }
70 inline WarningDetail& WithType(WarningType value) { SetType(value); return *this;}
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) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
81 template<typename PropertiesT = Aws::Vector<WarningProperty>>
82 WarningDetail& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
83 template<typename PropertiesT = WarningProperty>
84 WarningDetail& AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties.emplace_back(std::forward<PropertiesT>(value)); return *this; }
86 private:
87
89 bool m_typeHasBeenSet = false;
90
92 bool m_propertiesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CloudFormation
97} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream