AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerGroup.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/Server.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 ServerGroup();
40
41
43
46 inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
47 inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
48 inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
49 inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
50 inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
51 inline ServerGroup& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;}
52 inline ServerGroup& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
53 inline ServerGroup& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline ServerGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline ServerGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline ServerGroup& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::Vector<Server>& GetServerList() const{ return m_serverList; }
75 inline bool ServerListHasBeenSet() const { return m_serverListHasBeenSet; }
76 inline void SetServerList(const Aws::Vector<Server>& value) { m_serverListHasBeenSet = true; m_serverList = value; }
77 inline void SetServerList(Aws::Vector<Server>&& value) { m_serverListHasBeenSet = true; m_serverList = std::move(value); }
78 inline ServerGroup& WithServerList(const Aws::Vector<Server>& value) { SetServerList(value); return *this;}
79 inline ServerGroup& WithServerList(Aws::Vector<Server>&& value) { SetServerList(std::move(value)); return *this;}
80 inline ServerGroup& AddServerList(const Server& value) { m_serverListHasBeenSet = true; m_serverList.push_back(value); return *this; }
81 inline ServerGroup& AddServerList(Server&& value) { m_serverListHasBeenSet = true; m_serverList.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_serverGroupId;
86 bool m_serverGroupIdHasBeenSet = false;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
91 Aws::Vector<Server> m_serverList;
92 bool m_serverListHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SMS
97} // namespace Aws
ServerGroup & WithName(const char *value)
Definition ServerGroup.h:67
const Aws::String & GetName() const
Definition ServerGroup.h:60
ServerGroup & AddServerList(Server &&value)
Definition ServerGroup.h:81
ServerGroup & WithServerList(Aws::Vector< Server > &&value)
Definition ServerGroup.h:79
ServerGroup & WithServerList(const Aws::Vector< Server > &value)
Definition ServerGroup.h:78
const Aws::Vector< Server > & GetServerList() const
Definition ServerGroup.h:74
ServerGroup & WithServerGroupId(Aws::String &&value)
Definition ServerGroup.h:52
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition ServerGroup.h:63
bool ServerGroupIdHasBeenSet() const
Definition ServerGroup.h:47
void SetServerGroupId(const Aws::String &value)
Definition ServerGroup.h:48
ServerGroup & WithName(const Aws::String &value)
Definition ServerGroup.h:65
void SetName(const Aws::String &value)
Definition ServerGroup.h:62
ServerGroup & AddServerList(const Server &value)
Definition ServerGroup.h:80
const Aws::String & GetServerGroupId() const
Definition ServerGroup.h:46
AWS_SMS_API ServerGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition ServerGroup.h:64
bool ServerListHasBeenSet() const
Definition ServerGroup.h:75
void SetServerGroupId(Aws::String &&value)
Definition ServerGroup.h:49
void SetServerList(Aws::Vector< Server > &&value)
Definition ServerGroup.h:77
ServerGroup & WithName(Aws::String &&value)
Definition ServerGroup.h:66
ServerGroup & WithServerGroupId(const char *value)
Definition ServerGroup.h:53
AWS_SMS_API ServerGroup(Aws::Utils::Json::JsonView jsonValue)
ServerGroup & WithServerGroupId(const Aws::String &value)
Definition ServerGroup.h:51
void SetServerGroupId(const char *value)
Definition ServerGroup.h:50
void SetServerList(const Aws::Vector< Server > &value)
Definition ServerGroup.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue