AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ProtectionAlreadyExists.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/ProtectionError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Route53 {
21namespace Model {
22
31 public:
32 AWS_ROUTE53_API ProtectionAlreadyExists() = default;
33 AWS_ROUTE53_API ProtectionAlreadyExists(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
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>
52 SetMessage(std::forward<MessageT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<ProtectionError>& GetErrors() const { return m_errors; }
62 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
63 template <typename ErrorsT = Aws::Vector<ProtectionError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<ProtectionError>>
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = ProtectionError>
75 m_errorsHasBeenSet = true;
76 m_errors.emplace_back(std::forward<ErrorsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_message;
82
84 bool m_messageHasBeenSet = false;
85 bool m_errorsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Route53
90} // namespace Aws
ProtectionAlreadyExists & AddErrors(ErrorsT &&value)
AWS_ROUTE53_API ProtectionAlreadyExists()=default
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ProtectionAlreadyExists & WithMessage(MessageT &&value)
ProtectionAlreadyExists & WithErrors(ErrorsT &&value)
AWS_ROUTE53_API ProtectionAlreadyExists(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< ProtectionError > & GetErrors() const
AWS_ROUTE53_API ProtectionAlreadyExists & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector