AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateDomainNameRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppSync {
16namespace Model {
17
21 public:
22 AWS_APPSYNC_API CreateDomainNameRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateDomainName"; }
29
30 AWS_APPSYNC_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainName() const { return m_domainName; }
37 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
38 template <typename DomainNameT = Aws::String>
39 void SetDomainName(DomainNameT&& value) {
40 m_domainNameHasBeenSet = true;
41 m_domainName = std::forward<DomainNameT>(value);
42 }
43 template <typename DomainNameT = Aws::String>
45 SetDomainName(std::forward<DomainNameT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
57 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
58 template <typename CertificateArnT = Aws::String>
59 void SetCertificateArn(CertificateArnT&& value) {
60 m_certificateArnHasBeenSet = true;
61 m_certificateArn = std::forward<CertificateArnT>(value);
62 }
63 template <typename CertificateArnT = Aws::String>
64 CreateDomainNameRequest& WithCertificateArn(CertificateArnT&& value) {
65 SetCertificateArn(std::forward<CertificateArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateDomainNameRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_domainName;
111
112 Aws::String m_certificateArn;
113
114 Aws::String m_description;
115
117 bool m_domainNameHasBeenSet = false;
118 bool m_certificateArnHasBeenSet = false;
119 bool m_descriptionHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AppSync
125} // namespace Aws
CreateDomainNameRequest & WithTags(TagsT &&value)
CreateDomainNameRequest & WithDomainName(DomainNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainNameRequest & WithCertificateArn(CertificateArnT &&value)
CreateDomainNameRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPSYNC_API CreateDomainNameRequest()=default
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateDomainNameRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
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