AWS SDK for C++  0.12.9
AWS SDK for C++
ValidationMessage.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticBeanstalk
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ValidationMessage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetMessage() const{ return m_message; }
52 
56  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
57 
61  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
62 
66  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
67 
71  inline ValidationMessage& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
72 
76  inline ValidationMessage& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
77 
81  inline ValidationMessage& WithMessage(const char* value) { SetMessage(value); return *this;}
82 
89  inline const ValidationSeverity& GetSeverity() const{ return m_severity; }
90 
97  inline void SetSeverity(const ValidationSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
98 
105  inline void SetSeverity(ValidationSeverity&& value) { m_severityHasBeenSet = true; m_severity = value; }
106 
113  inline ValidationMessage& WithSeverity(const ValidationSeverity& value) { SetSeverity(value); return *this;}
114 
121  inline ValidationMessage& WithSeverity(ValidationSeverity&& value) { SetSeverity(value); return *this;}
122 
126  inline const Aws::String& GetNamespace() const{ return m_namespace; }
127 
131  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
132 
136  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
137 
141  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
142 
146  inline ValidationMessage& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
147 
151  inline ValidationMessage& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
152 
156  inline ValidationMessage& WithNamespace(const char* value) { SetNamespace(value); return *this;}
157 
161  inline const Aws::String& GetOptionName() const{ return m_optionName; }
162 
166  inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
167 
171  inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
172 
176  inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
177 
181  inline ValidationMessage& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
182 
186  inline ValidationMessage& WithOptionName(Aws::String&& value) { SetOptionName(value); return *this;}
187 
191  inline ValidationMessage& WithOptionName(const char* value) { SetOptionName(value); return *this;}
192 
193  private:
194  Aws::String m_message;
195  bool m_messageHasBeenSet;
196  ValidationSeverity m_severity;
197  bool m_severityHasBeenSet;
198  Aws::String m_namespace;
199  bool m_namespaceHasBeenSet;
200  Aws::String m_optionName;
201  bool m_optionNameHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace ElasticBeanstalk
206 } // namespace Aws
ValidationMessage & WithMessage(const char *value)
ValidationMessage & WithSeverity(const ValidationSeverity &value)
ValidationMessage & WithSeverity(ValidationSeverity &&value)
#define AWS_ELASTICBEANSTALK_API
void SetSeverity(const ValidationSeverity &value)
ValidationMessage & WithMessage(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ValidationMessage & WithOptionName(Aws::String &&value)
ValidationMessage & WithNamespace(const char *value)
ValidationMessage & WithNamespace(Aws::String &&value)
ValidationMessage & WithOptionName(const Aws::String &value)
ValidationMessage & WithOptionName(const char *value)
ValidationMessage & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ValidationSeverity & GetSeverity() const
ValidationMessage & WithNamespace(const Aws::String &value)
void SetSeverity(ValidationSeverity &&value)
JSON (JavaScript Object Notation).