AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_SMS_API PutAppLaunchConfigurationRequest() = default;
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 template<typename AppIdT = Aws::String>
46 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
47 template<typename AppIdT = Aws::String>
48 PutAppLaunchConfigurationRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
50
52
56 inline const Aws::String& GetRoleName() const { return m_roleName; }
57 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
58 template<typename RoleNameT = Aws::String>
59 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
60 template<typename RoleNameT = Aws::String>
61 PutAppLaunchConfigurationRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
63
65
69 inline bool GetAutoLaunch() const { return m_autoLaunch; }
70 inline bool AutoLaunchHasBeenSet() const { return m_autoLaunchHasBeenSet; }
71 inline void SetAutoLaunch(bool value) { m_autoLaunchHasBeenSet = true; m_autoLaunch = value; }
72 inline PutAppLaunchConfigurationRequest& WithAutoLaunch(bool value) { SetAutoLaunch(value); return *this;}
74
76
80 inline const Aws::Vector<ServerGroupLaunchConfiguration>& GetServerGroupLaunchConfigurations() const { return m_serverGroupLaunchConfigurations; }
81 inline bool ServerGroupLaunchConfigurationsHasBeenSet() const { return m_serverGroupLaunchConfigurationsHasBeenSet; }
82 template<typename ServerGroupLaunchConfigurationsT = Aws::Vector<ServerGroupLaunchConfiguration>>
83 void SetServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = std::forward<ServerGroupLaunchConfigurationsT>(value); }
84 template<typename ServerGroupLaunchConfigurationsT = Aws::Vector<ServerGroupLaunchConfiguration>>
85 PutAppLaunchConfigurationRequest& WithServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT&& value) { SetServerGroupLaunchConfigurations(std::forward<ServerGroupLaunchConfigurationsT>(value)); return *this;}
86 template<typename ServerGroupLaunchConfigurationsT = ServerGroupLaunchConfiguration>
87 PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.emplace_back(std::forward<ServerGroupLaunchConfigurationsT>(value)); return *this; }
89 private:
90
91 Aws::String m_appId;
92 bool m_appIdHasBeenSet = false;
93
94 Aws::String m_roleName;
95 bool m_roleNameHasBeenSet = false;
96
97 bool m_autoLaunch{false};
98 bool m_autoLaunchHasBeenSet = false;
99
100 Aws::Vector<ServerGroupLaunchConfiguration> m_serverGroupLaunchConfigurations;
101 bool m_serverGroupLaunchConfigurationsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SMS
106} // namespace Aws
PutAppLaunchConfigurationRequest & WithServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT &&value)
AWS_SMS_API Aws::String SerializePayload() const override
const Aws::Vector< ServerGroupLaunchConfiguration > & GetServerGroupLaunchConfigurations() const
PutAppLaunchConfigurationRequest & WithAutoLaunch(bool value)
PutAppLaunchConfigurationRequest & WithAppId(AppIdT &&value)
AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAppLaunchConfigurationRequest & WithRoleName(RoleNameT &&value)
PutAppLaunchConfigurationRequest & AddServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT &&value)
void SetServerGroupLaunchConfigurations(ServerGroupLaunchConfigurationsT &&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