AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ProtectionError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53_EXPORTS.h>
9#include <aws/route53/model/RRType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Route53 {
20namespace Model {
21
30 public:
31 AWS_ROUTE53_API ProtectionError() = default;
32 AWS_ROUTE53_API ProtectionError(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_ROUTE53_API ProtectionError& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
41 inline const Aws::String& GetRecordName() const { return m_recordName; }
42 inline bool RecordNameHasBeenSet() const { return m_recordNameHasBeenSet; }
43 template <typename RecordNameT = Aws::String>
44 void SetRecordName(RecordNameT&& value) {
45 m_recordNameHasBeenSet = true;
46 m_recordName = std::forward<RecordNameT>(value);
47 }
48 template <typename RecordNameT = Aws::String>
49 ProtectionError& WithRecordName(RecordNameT&& value) {
50 SetRecordName(std::forward<RecordNameT>(value));
51 return *this;
52 }
54
56
59 inline RRType GetRecordType() const { return m_recordType; }
60 inline bool RecordTypeHasBeenSet() const { return m_recordTypeHasBeenSet; }
61 inline void SetRecordType(RRType value) {
62 m_recordTypeHasBeenSet = true;
63 m_recordType = value;
64 }
66 SetRecordType(value);
67 return *this;
68 }
70
72
82 inline const Aws::String& GetCode() const { return m_code; }
83 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
84 template <typename CodeT = Aws::String>
85 void SetCode(CodeT&& value) {
86 m_codeHasBeenSet = true;
87 m_code = std::forward<CodeT>(value);
88 }
89 template <typename CodeT = Aws::String>
90 ProtectionError& WithCode(CodeT&& value) {
91 SetCode(std::forward<CodeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetMessage() const { return m_message; }
101 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
102 template <typename MessageT = Aws::String>
103 void SetMessage(MessageT&& value) {
104 m_messageHasBeenSet = true;
105 m_message = std::forward<MessageT>(value);
106 }
107 template <typename MessageT = Aws::String>
108 ProtectionError& WithMessage(MessageT&& value) {
109 SetMessage(std::forward<MessageT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_recordName;
115
116 RRType m_recordType{RRType::NOT_SET};
117
118 Aws::String m_code;
119
120 Aws::String m_message;
121 bool m_recordNameHasBeenSet = false;
122 bool m_recordTypeHasBeenSet = false;
123 bool m_codeHasBeenSet = false;
124 bool m_messageHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Route53
129} // namespace Aws
void SetRecordName(RecordNameT &&value)
const Aws::String & GetCode() const
ProtectionError & WithRecordType(RRType value)
const Aws::String & GetMessage() const
ProtectionError & WithRecordName(RecordNameT &&value)
const Aws::String & GetRecordName() const
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_ROUTE53_API ProtectionError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ROUTE53_API ProtectionError(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ROUTE53_API ProtectionError()=default
ProtectionError & WithMessage(MessageT &&value)
ProtectionError & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String