AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidationMessage.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/ValidationSeverity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICBEANSTALK_API ValidationMessage() = default;
37 AWS_ELASTICBEANSTALK_API ValidationMessage(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICBEANSTALK_API ValidationMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetMessage() const { return m_message; }
49 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 template<typename MessageT = Aws::String>
51 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
52 template<typename MessageT = Aws::String>
53 ValidationMessage& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
55
57
63 inline ValidationSeverity GetSeverity() const { return m_severity; }
64 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
65 inline void SetSeverity(ValidationSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
66 inline ValidationMessage& WithSeverity(ValidationSeverity value) { SetSeverity(value); return *this;}
68
70
73 inline const Aws::String& GetNamespace() const { return m_namespace; }
74 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
75 template<typename NamespaceT = Aws::String>
76 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
77 template<typename NamespaceT = Aws::String>
78 ValidationMessage& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
80
82
85 inline const Aws::String& GetOptionName() const { return m_optionName; }
86 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
87 template<typename OptionNameT = Aws::String>
88 void SetOptionName(OptionNameT&& value) { m_optionNameHasBeenSet = true; m_optionName = std::forward<OptionNameT>(value); }
89 template<typename OptionNameT = Aws::String>
90 ValidationMessage& WithOptionName(OptionNameT&& value) { SetOptionName(std::forward<OptionNameT>(value)); return *this;}
92 private:
93
94 Aws::String m_message;
95 bool m_messageHasBeenSet = false;
96
98 bool m_severityHasBeenSet = false;
99
100 Aws::String m_namespace;
101 bool m_namespaceHasBeenSet = false;
102
103 Aws::String m_optionName;
104 bool m_optionNameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ElasticBeanstalk
109} // 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