AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
DomainConflict.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/DistributionResourceType.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
30 public:
31 AWS_CLOUDFRONT_API DomainConflict() = default;
32 AWS_CLOUDFRONT_API DomainConflict(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API DomainConflict& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
41 inline const Aws::String& GetDomain() const { return m_domain; }
42 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
43 template <typename DomainT = Aws::String>
44 void SetDomain(DomainT&& value) {
45 m_domainHasBeenSet = true;
46 m_domain = std::forward<DomainT>(value);
47 }
48 template <typename DomainT = Aws::String>
49 DomainConflict& WithDomain(DomainT&& value) {
50 SetDomain(std::forward<DomainT>(value));
51 return *this;
52 }
54
56
59 inline DistributionResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = value;
64 }
66 SetResourceType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template <typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) {
79 m_resourceIdHasBeenSet = true;
80 m_resourceId = std::forward<ResourceIdT>(value);
81 }
82 template <typename ResourceIdT = Aws::String>
83 DomainConflict& WithResourceId(ResourceIdT&& value) {
84 SetResourceId(std::forward<ResourceIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetAccountId() const { return m_accountId; }
94 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
95 template <typename AccountIdT = Aws::String>
96 void SetAccountId(AccountIdT&& value) {
97 m_accountIdHasBeenSet = true;
98 m_accountId = std::forward<AccountIdT>(value);
99 }
100 template <typename AccountIdT = Aws::String>
101 DomainConflict& WithAccountId(AccountIdT&& value) {
102 SetAccountId(std::forward<AccountIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_domain;
108
110
111 Aws::String m_resourceId;
112
113 Aws::String m_accountId;
114 bool m_domainHasBeenSet = false;
115 bool m_resourceTypeHasBeenSet = false;
116 bool m_resourceIdHasBeenSet = false;
117 bool m_accountIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudFront
122} // namespace Aws
DomainConflict & WithAccountId(AccountIdT &&value)
const Aws::String & GetDomain() const
const Aws::String & GetAccountId() const
DomainConflict & WithResourceType(DistributionResourceType value)
void SetAccountId(AccountIdT &&value)
void SetResourceType(DistributionResourceType value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DomainConflict(const Aws::Utils::Xml::XmlNode &xmlNode)
DomainConflict & WithResourceId(ResourceIdT &&value)
const Aws::String & GetResourceId() const
AWS_CLOUDFRONT_API DomainConflict & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API DomainConflict()=default
void SetResourceId(ResourceIdT &&value)
DomainConflict & WithDomain(DomainT &&value)
DistributionResourceType GetResourceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String