AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerLaunchConfiguration.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/model/Server.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sms/model/UserData.h>
11#include <aws/sms/model/S3Location.h>
12#include <aws/sms/model/ScriptType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SMS
26{
27namespace Model
28{
29
36 {
37 public:
42
43
45
48 inline const Server& GetServer() const{ return m_server; }
49 inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
50 inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; }
51 inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
52 inline ServerLaunchConfiguration& WithServer(const Server& value) { SetServer(value); return *this;}
53 inline ServerLaunchConfiguration& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetLogicalId() const{ return m_logicalId; }
61 inline bool LogicalIdHasBeenSet() const { return m_logicalIdHasBeenSet; }
62 inline void SetLogicalId(const Aws::String& value) { m_logicalIdHasBeenSet = true; m_logicalId = value; }
63 inline void SetLogicalId(Aws::String&& value) { m_logicalIdHasBeenSet = true; m_logicalId = std::move(value); }
64 inline void SetLogicalId(const char* value) { m_logicalIdHasBeenSet = true; m_logicalId.assign(value); }
65 inline ServerLaunchConfiguration& WithLogicalId(const Aws::String& value) { SetLogicalId(value); return *this;}
66 inline ServerLaunchConfiguration& WithLogicalId(Aws::String&& value) { SetLogicalId(std::move(value)); return *this;}
67 inline ServerLaunchConfiguration& WithLogicalId(const char* value) { SetLogicalId(value); return *this;}
69
71
74 inline const Aws::String& GetVpc() const{ return m_vpc; }
75 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
76 inline void SetVpc(const Aws::String& value) { m_vpcHasBeenSet = true; m_vpc = value; }
77 inline void SetVpc(Aws::String&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
78 inline void SetVpc(const char* value) { m_vpcHasBeenSet = true; m_vpc.assign(value); }
79 inline ServerLaunchConfiguration& WithVpc(const Aws::String& value) { SetVpc(value); return *this;}
80 inline ServerLaunchConfiguration& WithVpc(Aws::String&& value) { SetVpc(std::move(value)); return *this;}
81 inline ServerLaunchConfiguration& WithVpc(const char* value) { SetVpc(value); return *this;}
83
85
88 inline const Aws::String& GetSubnet() const{ return m_subnet; }
89 inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
90 inline void SetSubnet(const Aws::String& value) { m_subnetHasBeenSet = true; m_subnet = value; }
91 inline void SetSubnet(Aws::String&& value) { m_subnetHasBeenSet = true; m_subnet = std::move(value); }
92 inline void SetSubnet(const char* value) { m_subnetHasBeenSet = true; m_subnet.assign(value); }
93 inline ServerLaunchConfiguration& WithSubnet(const Aws::String& value) { SetSubnet(value); return *this;}
94 inline ServerLaunchConfiguration& WithSubnet(Aws::String&& value) { SetSubnet(std::move(value)); return *this;}
95 inline ServerLaunchConfiguration& WithSubnet(const char* value) { SetSubnet(value); return *this;}
97
99
102 inline const Aws::String& GetSecurityGroup() const{ return m_securityGroup; }
103 inline bool SecurityGroupHasBeenSet() const { return m_securityGroupHasBeenSet; }
104 inline void SetSecurityGroup(const Aws::String& value) { m_securityGroupHasBeenSet = true; m_securityGroup = value; }
105 inline void SetSecurityGroup(Aws::String&& value) { m_securityGroupHasBeenSet = true; m_securityGroup = std::move(value); }
106 inline void SetSecurityGroup(const char* value) { m_securityGroupHasBeenSet = true; m_securityGroup.assign(value); }
107 inline ServerLaunchConfiguration& WithSecurityGroup(const Aws::String& value) { SetSecurityGroup(value); return *this;}
108 inline ServerLaunchConfiguration& WithSecurityGroup(Aws::String&& value) { SetSecurityGroup(std::move(value)); return *this;}
109 inline ServerLaunchConfiguration& WithSecurityGroup(const char* value) { SetSecurityGroup(value); return *this;}
111
113
117 inline const Aws::String& GetEc2KeyName() const{ return m_ec2KeyName; }
118 inline bool Ec2KeyNameHasBeenSet() const { return m_ec2KeyNameHasBeenSet; }
119 inline void SetEc2KeyName(const Aws::String& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = value; }
120 inline void SetEc2KeyName(Aws::String&& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = std::move(value); }
121 inline void SetEc2KeyName(const char* value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName.assign(value); }
122 inline ServerLaunchConfiguration& WithEc2KeyName(const Aws::String& value) { SetEc2KeyName(value); return *this;}
123 inline ServerLaunchConfiguration& WithEc2KeyName(Aws::String&& value) { SetEc2KeyName(std::move(value)); return *this;}
124 inline ServerLaunchConfiguration& WithEc2KeyName(const char* value) { SetEc2KeyName(value); return *this;}
126
128
132 inline const UserData& GetUserData() const{ return m_userData; }
133 inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
134 inline void SetUserData(const UserData& value) { m_userDataHasBeenSet = true; m_userData = value; }
135 inline void SetUserData(UserData&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
136 inline ServerLaunchConfiguration& WithUserData(const UserData& value) { SetUserData(value); return *this;}
137 inline ServerLaunchConfiguration& WithUserData(UserData&& value) { SetUserData(std::move(value)); return *this;}
139
141
144 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
145 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
146 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
147 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
148 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
149 inline ServerLaunchConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
150 inline ServerLaunchConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
151 inline ServerLaunchConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
153
155
159 inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
160 inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
161 inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
164
166
169 inline const Aws::String& GetIamInstanceProfileName() const{ return m_iamInstanceProfileName; }
170 inline bool IamInstanceProfileNameHasBeenSet() const { return m_iamInstanceProfileNameHasBeenSet; }
171 inline void SetIamInstanceProfileName(const Aws::String& value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName = value; }
172 inline void SetIamInstanceProfileName(Aws::String&& value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName = std::move(value); }
173 inline void SetIamInstanceProfileName(const char* value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName.assign(value); }
176 inline ServerLaunchConfiguration& WithIamInstanceProfileName(const char* value) { SetIamInstanceProfileName(value); return *this;}
178
180
181 inline const S3Location& GetConfigureScript() const{ return m_configureScript; }
182 inline bool ConfigureScriptHasBeenSet() const { return m_configureScriptHasBeenSet; }
183 inline void SetConfigureScript(const S3Location& value) { m_configureScriptHasBeenSet = true; m_configureScript = value; }
184 inline void SetConfigureScript(S3Location&& value) { m_configureScriptHasBeenSet = true; m_configureScript = std::move(value); }
185 inline ServerLaunchConfiguration& WithConfigureScript(const S3Location& value) { SetConfigureScript(value); return *this;}
186 inline ServerLaunchConfiguration& WithConfigureScript(S3Location&& value) { SetConfigureScript(std::move(value)); return *this;}
188
190
193 inline const ScriptType& GetConfigureScriptType() const{ return m_configureScriptType; }
194 inline bool ConfigureScriptTypeHasBeenSet() const { return m_configureScriptTypeHasBeenSet; }
195 inline void SetConfigureScriptType(const ScriptType& value) { m_configureScriptTypeHasBeenSet = true; m_configureScriptType = value; }
196 inline void SetConfigureScriptType(ScriptType&& value) { m_configureScriptTypeHasBeenSet = true; m_configureScriptType = std::move(value); }
198 inline ServerLaunchConfiguration& WithConfigureScriptType(ScriptType&& value) { SetConfigureScriptType(std::move(value)); return *this;}
200 private:
201
202 Server m_server;
203 bool m_serverHasBeenSet = false;
204
205 Aws::String m_logicalId;
206 bool m_logicalIdHasBeenSet = false;
207
208 Aws::String m_vpc;
209 bool m_vpcHasBeenSet = false;
210
211 Aws::String m_subnet;
212 bool m_subnetHasBeenSet = false;
213
214 Aws::String m_securityGroup;
215 bool m_securityGroupHasBeenSet = false;
216
217 Aws::String m_ec2KeyName;
218 bool m_ec2KeyNameHasBeenSet = false;
219
220 UserData m_userData;
221 bool m_userDataHasBeenSet = false;
222
223 Aws::String m_instanceType;
224 bool m_instanceTypeHasBeenSet = false;
225
226 bool m_associatePublicIpAddress;
227 bool m_associatePublicIpAddressHasBeenSet = false;
228
229 Aws::String m_iamInstanceProfileName;
230 bool m_iamInstanceProfileNameHasBeenSet = false;
231
232 S3Location m_configureScript;
233 bool m_configureScriptHasBeenSet = false;
234
235 ScriptType m_configureScriptType;
236 bool m_configureScriptTypeHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace SMS
241} // namespace Aws
ServerLaunchConfiguration & WithSecurityGroup(Aws::String &&value)
AWS_SMS_API ServerLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServerLaunchConfiguration & WithInstanceType(Aws::String &&value)
ServerLaunchConfiguration & WithIamInstanceProfileName(Aws::String &&value)
ServerLaunchConfiguration & WithUserData(const UserData &value)
ServerLaunchConfiguration & WithServer(Server &&value)
ServerLaunchConfiguration & WithUserData(UserData &&value)
ServerLaunchConfiguration & WithVpc(const Aws::String &value)
ServerLaunchConfiguration & WithConfigureScriptType(ScriptType &&value)
AWS_SMS_API ServerLaunchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerLaunchConfiguration & WithSubnet(Aws::String &&value)
ServerLaunchConfiguration & WithEc2KeyName(const Aws::String &value)
ServerLaunchConfiguration & WithVpc(const char *value)
ServerLaunchConfiguration & WithAssociatePublicIpAddress(bool value)
ServerLaunchConfiguration & WithInstanceType(const Aws::String &value)
ServerLaunchConfiguration & WithConfigureScript(S3Location &&value)
ServerLaunchConfiguration & WithInstanceType(const char *value)
ServerLaunchConfiguration & WithEc2KeyName(const char *value)
ServerLaunchConfiguration & WithEc2KeyName(Aws::String &&value)
ServerLaunchConfiguration & WithSubnet(const char *value)
ServerLaunchConfiguration & WithIamInstanceProfileName(const Aws::String &value)
ServerLaunchConfiguration & WithSubnet(const Aws::String &value)
ServerLaunchConfiguration & WithLogicalId(Aws::String &&value)
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
ServerLaunchConfiguration & WithSecurityGroup(const Aws::String &value)
ServerLaunchConfiguration & WithSecurityGroup(const char *value)
ServerLaunchConfiguration & WithServer(const Server &value)
ServerLaunchConfiguration & WithConfigureScript(const S3Location &value)
ServerLaunchConfiguration & WithConfigureScriptType(const ScriptType &value)
ServerLaunchConfiguration & WithVpc(Aws::String &&value)
ServerLaunchConfiguration & WithIamInstanceProfileName(const char *value)
void SetIamInstanceProfileName(const Aws::String &value)
ServerLaunchConfiguration & WithLogicalId(const Aws::String &value)
ServerLaunchConfiguration & WithLogicalId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue