AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/connecthealth/ConnectHealthRequest.h>
8#include <aws/connecthealth/ConnectHealth_EXPORTS.h>
9#include <aws/connecthealth/model/CreateWebAppConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConnectHealth {
17namespace Model {
18
22 public:
23 AWS_CONNECTHEALTH_API CreateDomainRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
30
31 AWS_CONNECTHEALTH_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
45 CreateDomainRequest& WithName(NameT&& value) {
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
56 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
57 template <typename KmsKeyArnT = Aws::String>
58 void SetKmsKeyArn(KmsKeyArnT&& value) {
59 m_kmsKeyArnHasBeenSet = true;
60 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
61 }
62 template <typename KmsKeyArnT = Aws::String>
63 CreateDomainRequest& WithKmsKeyArn(KmsKeyArnT&& value) {
64 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
65 return *this;
66 }
68
70
74 inline const CreateWebAppConfiguration& GetWebAppSetupConfiguration() const { return m_webAppSetupConfiguration; }
75 inline bool WebAppSetupConfigurationHasBeenSet() const { return m_webAppSetupConfigurationHasBeenSet; }
76 template <typename WebAppSetupConfigurationT = CreateWebAppConfiguration>
77 void SetWebAppSetupConfiguration(WebAppSetupConfigurationT&& value) {
78 m_webAppSetupConfigurationHasBeenSet = true;
79 m_webAppSetupConfiguration = std::forward<WebAppSetupConfigurationT>(value);
80 }
81 template <typename WebAppSetupConfigurationT = CreateWebAppConfiguration>
82 CreateDomainRequest& WithWebAppSetupConfiguration(WebAppSetupConfigurationT&& value) {
83 SetWebAppSetupConfiguration(std::forward<WebAppSetupConfigurationT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_name;
113
114 Aws::String m_kmsKeyArn;
115
116 CreateWebAppConfiguration m_webAppSetupConfiguration;
117
119 bool m_nameHasBeenSet = false;
120 bool m_kmsKeyArnHasBeenSet = false;
121 bool m_webAppSetupConfigurationHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace ConnectHealth
127} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainRequest & WithName(NameT &&value)
AWS_CONNECTHEALTH_API CreateDomainRequest()=default
CreateDomainRequest & WithTags(TagsT &&value)
AWS_CONNECTHEALTH_API Aws::String SerializePayload() const override
CreateDomainRequest & WithKmsKeyArn(KmsKeyArnT &&value)
const CreateWebAppConfiguration & GetWebAppSetupConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetWebAppSetupConfiguration(WebAppSetupConfigurationT &&value)
CreateDomainRequest & WithWebAppSetupConfiguration(WebAppSetupConfigurationT &&value)
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