AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreateDomainAssociationRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/DnsManagementType.h>
10#include <aws/amplifygen3/model/Routing.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AmplifyGen3 {
18namespace Model {
19
23 public:
24 AWS_AMPLIFYGEN3_API CreateDomainAssociationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDomainAssociation"; }
31
32 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAppName() const { return m_appName; }
39 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDomainName() const { return m_domainName; }
57 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
58 template <typename DomainNameT = Aws::String>
59 void SetDomainName(DomainNameT&& value) {
60 m_domainNameHasBeenSet = true;
61 m_domainName = std::forward<DomainNameT>(value);
62 }
63 template <typename DomainNameT = Aws::String>
65 SetDomainName(std::forward<DomainNameT>(value));
66 return *this;
67 }
69
71
74 inline const Routing& GetRouting() const { return m_routing; }
75 inline bool RoutingHasBeenSet() const { return m_routingHasBeenSet; }
76 template <typename RoutingT = Routing>
77 void SetRouting(RoutingT&& value) {
78 m_routingHasBeenSet = true;
79 m_routing = std::forward<RoutingT>(value);
80 }
81 template <typename RoutingT = Routing>
83 SetRouting(std::forward<RoutingT>(value));
84 return *this;
85 }
87
89
92 inline DnsManagementType GetDnsManagementType() const { return m_dnsManagementType; }
93 inline bool DnsManagementTypeHasBeenSet() const { return m_dnsManagementTypeHasBeenSet; }
95 m_dnsManagementTypeHasBeenSet = true;
96 m_dnsManagementType = value;
97 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateDomainAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_appName;
129
130 Aws::String m_domainName;
131
132 Routing m_routing;
133
135
137 bool m_appNameHasBeenSet = false;
138 bool m_domainNameHasBeenSet = false;
139 bool m_routingHasBeenSet = false;
140 bool m_dnsManagementTypeHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace AmplifyGen3
146} // namespace Aws
CreateDomainAssociationRequest & WithDomainName(DomainNameT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
CreateDomainAssociationRequest & WithAppName(AppNameT &&value)
CreateDomainAssociationRequest & WithDnsManagementType(DnsManagementType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainAssociationRequest & WithRouting(RoutingT &&value)
CreateDomainAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_AMPLIFYGEN3_API CreateDomainAssociationRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String