AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateServiceRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/vpc-lattice/model/AuthType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace VPCLattice
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_VPCLATTICE_API CreateServiceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateService"; }
34
35 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
36
37
39
45 inline AuthType GetAuthType() const { return m_authType; }
46 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
47 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
48 inline CreateServiceRequest& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
50
52
55 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
56 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
57 template<typename CertificateArnT = Aws::String>
58 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
59 template<typename CertificateArnT = Aws::String>
60 CreateServiceRequest& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
62
64
70 inline const Aws::String& GetClientToken() const { return m_clientToken; }
71 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
72 template<typename ClientTokenT = Aws::String>
73 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
74 template<typename ClientTokenT = Aws::String>
75 CreateServiceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
77
79
82 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
83 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
84 template<typename CustomDomainNameT = Aws::String>
85 void SetCustomDomainName(CustomDomainNameT&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::forward<CustomDomainNameT>(value); }
86 template<typename CustomDomainNameT = Aws::String>
87 CreateServiceRequest& WithCustomDomainName(CustomDomainNameT&& value) { SetCustomDomainName(std::forward<CustomDomainNameT>(value)); return *this;}
89
91
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 CreateServiceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateServiceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 CreateServiceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119 private:
120
121 AuthType m_authType{AuthType::NOT_SET};
122 bool m_authTypeHasBeenSet = false;
123
124 Aws::String m_certificateArn;
125 bool m_certificateArnHasBeenSet = false;
126
128 bool m_clientTokenHasBeenSet = true;
129
130 Aws::String m_customDomainName;
131 bool m_customDomainNameHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace VPCLattice
142} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
CreateServiceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetCustomDomainName(CustomDomainNameT &&value)
AWS_VPCLATTICE_API CreateServiceRequest()=default
CreateServiceRequest & WithAuthType(AuthType value)
CreateServiceRequest & WithName(NameT &&value)
CreateServiceRequest & WithCertificateArn(CertificateArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateServiceRequest & WithCustomDomainName(CustomDomainNameT &&value)
CreateServiceRequest & WithTags(TagsT &&value)
CreateServiceRequest & WithClientToken(ClientTokenT &&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