AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ServerGroupLaunchConfiguration.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sms/model/ServerLaunchConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SMS
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SMS_API ServerGroupLaunchConfiguration() = default;
40
41
43
47 inline const Aws::String& GetServerGroupId() const { return m_serverGroupId; }
48 inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
49 template<typename ServerGroupIdT = Aws::String>
50 void SetServerGroupId(ServerGroupIdT&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::forward<ServerGroupIdT>(value); }
51 template<typename ServerGroupIdT = Aws::String>
52 ServerGroupLaunchConfiguration& WithServerGroupId(ServerGroupIdT&& value) { SetServerGroupId(std::forward<ServerGroupIdT>(value)); return *this;}
54
56
59 inline int GetLaunchOrder() const { return m_launchOrder; }
60 inline bool LaunchOrderHasBeenSet() const { return m_launchOrderHasBeenSet; }
61 inline void SetLaunchOrder(int value) { m_launchOrderHasBeenSet = true; m_launchOrder = value; }
62 inline ServerGroupLaunchConfiguration& WithLaunchOrder(int value) { SetLaunchOrder(value); return *this;}
64
66
69 inline const Aws::Vector<ServerLaunchConfiguration>& GetServerLaunchConfigurations() const { return m_serverLaunchConfigurations; }
70 inline bool ServerLaunchConfigurationsHasBeenSet() const { return m_serverLaunchConfigurationsHasBeenSet; }
71 template<typename ServerLaunchConfigurationsT = Aws::Vector<ServerLaunchConfiguration>>
72 void SetServerLaunchConfigurations(ServerLaunchConfigurationsT&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations = std::forward<ServerLaunchConfigurationsT>(value); }
73 template<typename ServerLaunchConfigurationsT = Aws::Vector<ServerLaunchConfiguration>>
74 ServerGroupLaunchConfiguration& WithServerLaunchConfigurations(ServerLaunchConfigurationsT&& value) { SetServerLaunchConfigurations(std::forward<ServerLaunchConfigurationsT>(value)); return *this;}
75 template<typename ServerLaunchConfigurationsT = ServerLaunchConfiguration>
76 ServerGroupLaunchConfiguration& AddServerLaunchConfigurations(ServerLaunchConfigurationsT&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations.emplace_back(std::forward<ServerLaunchConfigurationsT>(value)); return *this; }
78 private:
79
80 Aws::String m_serverGroupId;
81 bool m_serverGroupIdHasBeenSet = false;
82
83 int m_launchOrder{0};
84 bool m_launchOrderHasBeenSet = false;
85
86 Aws::Vector<ServerLaunchConfiguration> m_serverLaunchConfigurations;
87 bool m_serverLaunchConfigurationsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SMS
92} // namespace Aws
const Aws::Vector< ServerLaunchConfiguration > & GetServerLaunchConfigurations() const
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
ServerGroupLaunchConfiguration & WithLaunchOrder(int value)
AWS_SMS_API ServerGroupLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServerGroupLaunchConfiguration & WithServerGroupId(ServerGroupIdT &&value)
ServerGroupLaunchConfiguration & WithServerLaunchConfigurations(ServerLaunchConfigurationsT &&value)
AWS_SMS_API ServerGroupLaunchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerGroupLaunchConfiguration & AddServerLaunchConfigurations(ServerLaunchConfigurationsT &&value)
void SetServerLaunchConfigurations(ServerLaunchConfigurationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue