AWS SDK for C++  1.9.68
AWS SDK for C++
ValidationWarning.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Vector<ValidationError>& GetErrors() const{ return m_errors; }
49 
53  inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
54 
58  inline void SetErrors(const Aws::Vector<ValidationError>& value) { m_errorsHasBeenSet = true; m_errors = value; }
59 
63  inline void SetErrors(Aws::Vector<ValidationError>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
64 
68  inline ValidationWarning& WithErrors(const Aws::Vector<ValidationError>& value) { SetErrors(value); return *this;}
69 
73  inline ValidationWarning& WithErrors(Aws::Vector<ValidationError>&& value) { SetErrors(std::move(value)); return *this;}
74 
78  inline ValidationWarning& AddErrors(const ValidationError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
79 
83  inline ValidationWarning& AddErrors(ValidationError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
84 
85  private:
86 
88  bool m_errorsHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace EC2
93 } // namespace Aws
Aws::EC2::Model::ValidationWarning
Definition: ValidationWarning.h:35
Aws::EC2::Model::ValidationWarning::ValidationWarning
ValidationWarning()
Aws::EC2::Model::ValidationWarning::ValidationWarning
ValidationWarning(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ValidationWarning::SetErrors
void SetErrors(const Aws::Vector< ValidationError > &value)
Definition: ValidationWarning.h:58
AWSStreamFwd.h
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ValidationWarning::AddErrors
ValidationWarning & AddErrors(ValidationError &&value)
Definition: ValidationWarning.h:83
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ValidationWarning::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ValidationWarning::AddErrors
ValidationWarning & AddErrors(const ValidationError &value)
Definition: ValidationWarning.h:78
Aws::EC2::Model::ValidationWarning::GetErrors
const Aws::Vector< ValidationError > & GetErrors() const
Definition: ValidationWarning.h:48
ValidationError.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ValidationError
Definition: ValidationError.h:34
Aws::EC2::Model::ValidationWarning::WithErrors
ValidationWarning & WithErrors(const Aws::Vector< ValidationError > &value)
Definition: ValidationWarning.h:68
Aws::EC2::Model::ValidationWarning::operator=
ValidationWarning & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ValidationWarning::ErrorsHasBeenSet
bool ErrorsHasBeenSet() const
Definition: ValidationWarning.h:53
Aws::EC2::Model::ValidationWarning::WithErrors
ValidationWarning & WithErrors(Aws::Vector< ValidationError > &&value)
Definition: ValidationWarning.h:73
Aws::EC2::Model::ValidationWarning::SetErrors
void SetErrors(Aws::Vector< ValidationError > &&value)
Definition: ValidationWarning.h:63
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::ValidationWarning::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const