AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAppLaunchConfigurationRequest.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/sms/SMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sms/model/ServerGroupLaunchConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SMS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutAppLaunchConfiguration"; }
33
34 AWS_SMS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAppId() const{ return m_appId; }
44 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
45 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
46 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
47 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
48 inline PutAppLaunchConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
49 inline PutAppLaunchConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
50 inline PutAppLaunchConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
52
54
58 inline const Aws::String& GetRoleName() const{ return m_roleName; }
59 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
60 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
61 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
62 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
63 inline PutAppLaunchConfigurationRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
64 inline PutAppLaunchConfigurationRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
65 inline PutAppLaunchConfigurationRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
67
69
73 inline bool GetAutoLaunch() const{ return m_autoLaunch; }
74 inline bool AutoLaunchHasBeenSet() const { return m_autoLaunchHasBeenSet; }
75 inline void SetAutoLaunch(bool value) { m_autoLaunchHasBeenSet = true; m_autoLaunch = value; }
76 inline PutAppLaunchConfigurationRequest& WithAutoLaunch(bool value) { SetAutoLaunch(value); return *this;}
78
80
84 inline const Aws::Vector<ServerGroupLaunchConfiguration>& GetServerGroupLaunchConfigurations() const{ return m_serverGroupLaunchConfigurations; }
85 inline bool ServerGroupLaunchConfigurationsHasBeenSet() const { return m_serverGroupLaunchConfigurationsHasBeenSet; }
86 inline void SetServerGroupLaunchConfigurations(const Aws::Vector<ServerGroupLaunchConfiguration>& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = value; }
87 inline void SetServerGroupLaunchConfigurations(Aws::Vector<ServerGroupLaunchConfiguration>&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = std::move(value); }
90 inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(const ServerGroupLaunchConfiguration& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(value); return *this; }
91 inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(ServerGroupLaunchConfiguration&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(std::move(value)); return *this; }
93 private:
94
95 Aws::String m_appId;
96 bool m_appIdHasBeenSet = false;
97
98 Aws::String m_roleName;
99 bool m_roleNameHasBeenSet = false;
100
101 bool m_autoLaunch;
102 bool m_autoLaunchHasBeenSet = false;
103
104 Aws::Vector<ServerGroupLaunchConfiguration> m_serverGroupLaunchConfigurations;
105 bool m_serverGroupLaunchConfigurationsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SMS
110} // namespace Aws
void SetServerGroupLaunchConfigurations(Aws::Vector< ServerGroupLaunchConfiguration > &&value)
PutAppLaunchConfigurationRequest & WithAppId(const Aws::String &value)
PutAppLaunchConfigurationRequest & WithRoleName(Aws::String &&value)
AWS_SMS_API Aws::String SerializePayload() const override
const Aws::Vector< ServerGroupLaunchConfiguration > & GetServerGroupLaunchConfigurations() const
PutAppLaunchConfigurationRequest & AddServerGroupLaunchConfigurations(ServerGroupLaunchConfiguration &&value)
PutAppLaunchConfigurationRequest & WithServerGroupLaunchConfigurations(const Aws::Vector< ServerGroupLaunchConfiguration > &value)
PutAppLaunchConfigurationRequest & WithRoleName(const Aws::String &value)
PutAppLaunchConfigurationRequest & WithAppId(Aws::String &&value)
PutAppLaunchConfigurationRequest & WithAutoLaunch(bool value)
PutAppLaunchConfigurationRequest & WithRoleName(const char *value)
void SetServerGroupLaunchConfigurations(const Aws::Vector< ServerGroupLaunchConfiguration > &value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAppLaunchConfigurationRequest & WithServerGroupLaunchConfigurations(Aws::Vector< ServerGroupLaunchConfiguration > &&value)
PutAppLaunchConfigurationRequest & AddServerGroupLaunchConfigurations(const ServerGroupLaunchConfiguration &value)
PutAppLaunchConfigurationRequest & WithAppId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector