AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
51 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
53 inline ValidationMessage& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
54 inline ValidationMessage& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
55 inline ValidationMessage& WithMessage(const char* value) { SetMessage(value); return *this;}
57
59
65 inline const ValidationSeverity& GetSeverity() const{ return m_severity; }
66 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
67 inline void SetSeverity(const ValidationSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
68 inline void SetSeverity(ValidationSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
69 inline ValidationMessage& WithSeverity(const ValidationSeverity& value) { SetSeverity(value); return *this;}
70 inline ValidationMessage& WithSeverity(ValidationSeverity&& value) { SetSeverity(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetNamespace() const{ return m_namespace; }
78 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
79 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
80 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
81 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
82 inline ValidationMessage& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
83 inline ValidationMessage& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
84 inline ValidationMessage& WithNamespace(const char* value) { SetNamespace(value); return *this;}
86
88
91 inline const Aws::String& GetOptionName() const{ return m_optionName; }
92 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
93 inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
94 inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = std::move(value); }
95 inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
96 inline ValidationMessage& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
97 inline ValidationMessage& WithOptionName(Aws::String&& value) { SetOptionName(std::move(value)); return *this;}
98 inline ValidationMessage& WithOptionName(const char* value) { SetOptionName(value); return *this;}
100 private:
101
102 Aws::String m_message;
103 bool m_messageHasBeenSet = false;
104
105 ValidationSeverity m_severity;
106 bool m_severityHasBeenSet = false;
107
108 Aws::String m_namespace;
109 bool m_namespaceHasBeenSet = false;
110
111 Aws::String m_optionName;
112 bool m_optionNameHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ElasticBeanstalk
117} // namespace Aws
ValidationMessage & WithMessage(const Aws::String &value)
ValidationMessage & WithSeverity(ValidationSeverity &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ValidationMessage & WithOptionName(Aws::String &&value)
AWS_ELASTICBEANSTALK_API ValidationMessage()
ValidationMessage & WithNamespace(const char *value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSeverity(ValidationSeverity &&value)
ValidationMessage & WithOptionName(const char *value)
ValidationMessage & WithMessage(Aws::String &&value)
ValidationMessage & WithSeverity(const ValidationSeverity &value)
void SetSeverity(const ValidationSeverity &value)
ValidationMessage & WithNamespace(Aws::String &&value)
AWS_ELASTICBEANSTALK_API ValidationMessage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ValidationMessage & WithMessage(const char *value)
ValidationMessage & WithNamespace(const Aws::String &value)
ValidationMessage & WithOptionName(const Aws::String &value)
AWS_ELASTICBEANSTALK_API ValidationMessage(const Aws::Utils::Xml::XmlNode &xmlNode)
const ValidationSeverity & GetSeverity() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream