AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
WarningProperty.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
29 public:
30 AWS_CLOUDFORMATION_API WarningProperty() = default;
31 AWS_CLOUDFORMATION_API WarningProperty(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFORMATION_API WarningProperty& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::String& GetPropertyPath() const { return m_propertyPath; }
44 inline bool PropertyPathHasBeenSet() const { return m_propertyPathHasBeenSet; }
45 template <typename PropertyPathT = Aws::String>
46 void SetPropertyPath(PropertyPathT&& value) {
47 m_propertyPathHasBeenSet = true;
48 m_propertyPath = std::forward<PropertyPathT>(value);
49 }
50 template <typename PropertyPathT = Aws::String>
51 WarningProperty& WithPropertyPath(PropertyPathT&& value) {
52 SetPropertyPath(std::forward<PropertyPathT>(value));
53 return *this;
54 }
56
58
61 inline bool GetRequired() const { return m_required; }
62 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
63 inline void SetRequired(bool value) {
64 m_requiredHasBeenSet = true;
65 m_required = value;
66 }
67 inline WarningProperty& WithRequired(bool value) {
68 SetRequired(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 WarningProperty& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_propertyPath;
92
93 bool m_required{false};
94
95 Aws::String m_description;
96 bool m_propertyPathHasBeenSet = false;
97 bool m_requiredHasBeenSet = false;
98 bool m_descriptionHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CloudFormation
103} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API WarningProperty & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPropertyPath(PropertyPathT &&value)
WarningProperty & WithPropertyPath(PropertyPathT &&value)
AWS_CLOUDFORMATION_API WarningProperty()=default
WarningProperty & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_CLOUDFORMATION_API WarningProperty(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPropertyPath() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
WarningProperty & WithRequired(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream