AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ValidationMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10#include <aws/elasticbeanstalk/model/ValidationSeverity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticBeanstalk {
21namespace Model {
22
30 public:
31 AWS_ELASTICBEANSTALK_API ValidationMessage() = default;
32 AWS_ELASTICBEANSTALK_API ValidationMessage(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ELASTICBEANSTALK_API ValidationMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
36 const char* locationValue) const;
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetMessage() const { return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 template <typename MessageT = Aws::String>
46 void SetMessage(MessageT&& value) {
47 m_messageHasBeenSet = true;
48 m_message = std::forward<MessageT>(value);
49 }
50 template <typename MessageT = Aws::String>
51 ValidationMessage& WithMessage(MessageT&& value) {
52 SetMessage(std::forward<MessageT>(value));
53 return *this;
54 }
56
58
64 inline ValidationSeverity GetSeverity() const { return m_severity; }
65 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
66 inline void SetSeverity(ValidationSeverity value) {
67 m_severityHasBeenSet = true;
68 m_severity = value;
69 }
71 SetSeverity(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetNamespace() const { return m_namespace; }
81 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
82 template <typename NamespaceT = Aws::String>
83 void SetNamespace(NamespaceT&& value) {
84 m_namespaceHasBeenSet = true;
85 m_namespace = std::forward<NamespaceT>(value);
86 }
87 template <typename NamespaceT = Aws::String>
88 ValidationMessage& WithNamespace(NamespaceT&& value) {
89 SetNamespace(std::forward<NamespaceT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetOptionName() const { return m_optionName; }
99 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
100 template <typename OptionNameT = Aws::String>
101 void SetOptionName(OptionNameT&& value) {
102 m_optionNameHasBeenSet = true;
103 m_optionName = std::forward<OptionNameT>(value);
104 }
105 template <typename OptionNameT = Aws::String>
106 ValidationMessage& WithOptionName(OptionNameT&& value) {
107 SetOptionName(std::forward<OptionNameT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_message;
113
115
116 Aws::String m_namespace;
117
118 Aws::String m_optionName;
119 bool m_messageHasBeenSet = false;
120 bool m_severityHasBeenSet = false;
121 bool m_namespaceHasBeenSet = false;
122 bool m_optionNameHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace ElasticBeanstalk
127} // namespace Aws
ValidationMessage & WithMessage(MessageT &&value)
ValidationMessage & WithSeverity(ValidationSeverity value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API ValidationMessage()=default
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ValidationMessage & WithOptionName(OptionNameT &&value)
AWS_ELASTICBEANSTALK_API ValidationMessage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ValidationMessage & WithNamespace(NamespaceT &&value)
AWS_ELASTICBEANSTALK_API ValidationMessage(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream