AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
DomainItem.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ServeOn.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
29 public:
30 AWS_CLOUDFRONT_API DomainItem() = default;
31 AWS_CLOUDFRONT_API DomainItem(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API DomainItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetDomain() const { return m_domain; }
41 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
42 template <typename DomainT = Aws::String>
43 void SetDomain(DomainT&& value) {
44 m_domainHasBeenSet = true;
45 m_domain = std::forward<DomainT>(value);
46 }
47 template <typename DomainT = Aws::String>
48 DomainItem& WithDomain(DomainT&& value) {
49 SetDomain(std::forward<DomainT>(value));
50 return *this;
51 }
53
55
66 inline ServeOn GetServeOn() const { return m_serveOn; }
67 inline bool ServeOnHasBeenSet() const { return m_serveOnHasBeenSet; }
68 inline void SetServeOn(ServeOn value) {
69 m_serveOnHasBeenSet = true;
70 m_serveOn = value;
71 }
73 SetServeOn(value);
74 return *this;
75 }
77 private:
78 Aws::String m_domain;
79
80 ServeOn m_serveOn{ServeOn::NOT_SET};
81 bool m_domainHasBeenSet = false;
82 bool m_serveOnHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudFront
87} // namespace Aws
AWS_CLOUDFRONT_API DomainItem()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DomainItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API DomainItem(const Aws::Utils::Xml::XmlNode &xmlNode)
DomainItem & WithDomain(DomainT &&value)
Definition DomainItem.h:48
void SetServeOn(ServeOn value)
Definition DomainItem.h:68
DomainItem & WithServeOn(ServeOn value)
Definition DomainItem.h:72
void SetDomain(DomainT &&value)
Definition DomainItem.h:43
const Aws::String & GetDomain() const
Definition DomainItem.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String