AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
AZAffinity.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/AZAffinityLocationType.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
40 public:
41 AWS_ROUTE53_API AZAffinity() = default;
42 AWS_ROUTE53_API AZAffinity(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_ROUTE53_API AZAffinity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
48
63 inline AZAffinityLocationType GetLocationType() const { return m_locationType; }
64 inline bool LocationTypeHasBeenSet() const { return m_locationTypeHasBeenSet; }
66 m_locationTypeHasBeenSet = true;
67 m_locationType = value;
68 }
70 SetLocationType(value);
71 return *this;
72 }
74
76
90 inline const Aws::String& GetLocationId() const { return m_locationId; }
91 inline bool LocationIdHasBeenSet() const { return m_locationIdHasBeenSet; }
92 template <typename LocationIdT = Aws::String>
93 void SetLocationId(LocationIdT&& value) {
94 m_locationIdHasBeenSet = true;
95 m_locationId = std::forward<LocationIdT>(value);
96 }
97 template <typename LocationIdT = Aws::String>
98 AZAffinity& WithLocationId(LocationIdT&& value) {
99 SetLocationId(std::forward<LocationIdT>(value));
100 return *this;
101 }
103 private:
105
106 Aws::String m_locationId;
107 bool m_locationTypeHasBeenSet = false;
108 bool m_locationIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Route53
113} // namespace Aws
const Aws::String & GetLocationId() const
Definition AZAffinity.h:90
AZAffinity & WithLocationId(LocationIdT &&value)
Definition AZAffinity.h:98
void SetLocationId(LocationIdT &&value)
Definition AZAffinity.h:93
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_ROUTE53_API AZAffinity(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLocationType(AZAffinityLocationType value)
Definition AZAffinity.h:65
AWS_ROUTE53_API AZAffinity()=default
AWS_ROUTE53_API AZAffinity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AZAffinity & WithLocationType(AZAffinityLocationType value)
Definition AZAffinity.h:69
AZAffinityLocationType GetLocationType() const
Definition AZAffinity.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String