AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AuthType& GetAuthType() const{ return m_authType; }
46 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
47 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
48 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
49 inline CreateServiceRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
50 inline CreateServiceRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
58 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
59 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
60 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
61 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
62 inline CreateServiceRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
63 inline CreateServiceRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
64 inline CreateServiceRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
66
68
74 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
77 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
78 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
79 inline CreateServiceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
80 inline CreateServiceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
81 inline CreateServiceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
83
85
88 inline const Aws::String& GetCustomDomainName() const{ return m_customDomainName; }
89 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
90 inline void SetCustomDomainName(const Aws::String& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = value; }
91 inline void SetCustomDomainName(Aws::String&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::move(value); }
92 inline void SetCustomDomainName(const char* value) { m_customDomainNameHasBeenSet = true; m_customDomainName.assign(value); }
93 inline CreateServiceRequest& WithCustomDomainName(const Aws::String& value) { SetCustomDomainName(value); return *this;}
94 inline CreateServiceRequest& WithCustomDomainName(Aws::String&& value) { SetCustomDomainName(std::move(value)); return *this;}
95 inline CreateServiceRequest& WithCustomDomainName(const char* value) { SetCustomDomainName(value); return *this;}
97
99
104 inline const Aws::String& GetName() const{ return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 inline CreateServiceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
110 inline CreateServiceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 inline CreateServiceRequest& WithName(const char* value) { SetName(value); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateServiceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
123 inline CreateServiceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateServiceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 inline CreateServiceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CreateServiceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateServiceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 inline CreateServiceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateServiceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateServiceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132 private:
133
134 AuthType m_authType;
135 bool m_authTypeHasBeenSet = false;
136
137 Aws::String m_certificateArn;
138 bool m_certificateArnHasBeenSet = false;
139
140 Aws::String m_clientToken;
141 bool m_clientTokenHasBeenSet = false;
142
143 Aws::String m_customDomainName;
144 bool m_customDomainNameHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace VPCLattice
155} // namespace Aws
CreateServiceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCertificateArn(const Aws::String &value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetCustomDomainName(const Aws::String &value)
CreateServiceRequest & WithCertificateArn(Aws::String &&value)
CreateServiceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateServiceRequest & WithName(const char *value)
CreateServiceRequest & WithCertificateArn(const char *value)
CreateServiceRequest & WithName(const Aws::String &value)
CreateServiceRequest & WithClientToken(Aws::String &&value)
CreateServiceRequest & AddTags(const char *key, const char *value)
CreateServiceRequest & WithAuthType(const AuthType &value)
CreateServiceRequest & AddTags(Aws::String &&key, const char *value)
CreateServiceRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateServiceRequest & WithClientToken(const Aws::String &value)
CreateServiceRequest & WithCustomDomainName(Aws::String &&value)
CreateServiceRequest & WithCustomDomainName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateServiceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateServiceRequest & WithAuthType(AuthType &&value)
CreateServiceRequest & WithCustomDomainName(const char *value)
CreateServiceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateServiceRequest & AddTags(const char *key, Aws::String &&value)
CreateServiceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateServiceRequest & WithCertificateArn(const Aws::String &value)
CreateServiceRequest & WithClientToken(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateServiceRequest & WithName(Aws::String &&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