AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Server.h
1
6#pragma once
7#include <aws/sms/SMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sms/model/ServerType.h>
10#include <aws/sms/model/VmServer.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
33 class Server
34 {
35 public:
36 AWS_SMS_API Server();
37 AWS_SMS_API Server(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetServerId() const{ return m_serverId; }
47 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
48 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
49 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
50 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
51 inline Server& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
52 inline Server& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
53 inline Server& WithServerId(const char* value) { SetServerId(value); return *this;}
55
57
60 inline const ServerType& GetServerType() const{ return m_serverType; }
61 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
62 inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
63 inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
64 inline Server& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
65 inline Server& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
67
69
72 inline const VmServer& GetVmServer() const{ return m_vmServer; }
73 inline bool VmServerHasBeenSet() const { return m_vmServerHasBeenSet; }
74 inline void SetVmServer(const VmServer& value) { m_vmServerHasBeenSet = true; m_vmServer = value; }
75 inline void SetVmServer(VmServer&& value) { m_vmServerHasBeenSet = true; m_vmServer = std::move(value); }
76 inline Server& WithVmServer(const VmServer& value) { SetVmServer(value); return *this;}
77 inline Server& WithVmServer(VmServer&& value) { SetVmServer(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
85 inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
86 inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
87 inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
88 inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
89 inline Server& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
90 inline Server& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
91 inline Server& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
93
95
98 inline bool GetReplicationJobTerminated() const{ return m_replicationJobTerminated; }
99 inline bool ReplicationJobTerminatedHasBeenSet() const { return m_replicationJobTerminatedHasBeenSet; }
100 inline void SetReplicationJobTerminated(bool value) { m_replicationJobTerminatedHasBeenSet = true; m_replicationJobTerminated = value; }
101 inline Server& WithReplicationJobTerminated(bool value) { SetReplicationJobTerminated(value); return *this;}
103 private:
104
105 Aws::String m_serverId;
106 bool m_serverIdHasBeenSet = false;
107
108 ServerType m_serverType;
109 bool m_serverTypeHasBeenSet = false;
110
111 VmServer m_vmServer;
112 bool m_vmServerHasBeenSet = false;
113
114 Aws::String m_replicationJobId;
115 bool m_replicationJobIdHasBeenSet = false;
116
117 bool m_replicationJobTerminated;
118 bool m_replicationJobTerminatedHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SMS
123} // namespace Aws
bool VmServerHasBeenSet() const
Definition Server.h:73
const Aws::String & GetReplicationJobId() const
Definition Server.h:84
Server & WithReplicationJobId(const char *value)
Definition Server.h:91
void SetVmServer(VmServer &&value)
Definition Server.h:75
AWS_SMS_API Server(Aws::Utils::Json::JsonView jsonValue)
void SetReplicationJobTerminated(bool value)
Definition Server.h:100
AWS_SMS_API Server & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetReplicationJobTerminated() const
Definition Server.h:98
void SetServerType(const ServerType &value)
Definition Server.h:62
bool ServerTypeHasBeenSet() const
Definition Server.h:61
const Aws::String & GetServerId() const
Definition Server.h:46
Server & WithServerId(const char *value)
Definition Server.h:53
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVmServer(const VmServer &value)
Definition Server.h:74
void SetReplicationJobId(Aws::String &&value)
Definition Server.h:87
const VmServer & GetVmServer() const
Definition Server.h:72
Server & WithReplicationJobTerminated(bool value)
Definition Server.h:101
void SetServerId(const char *value)
Definition Server.h:50
bool ServerIdHasBeenSet() const
Definition Server.h:47
Server & WithServerId(const Aws::String &value)
Definition Server.h:51
Server & WithReplicationJobId(Aws::String &&value)
Definition Server.h:90
void SetServerId(const Aws::String &value)
Definition Server.h:48
void SetReplicationJobId(const char *value)
Definition Server.h:88
Server & WithReplicationJobId(const Aws::String &value)
Definition Server.h:89
bool ReplicationJobIdHasBeenSet() const
Definition Server.h:85
const ServerType & GetServerType() const
Definition Server.h:60
Server & WithServerType(const ServerType &value)
Definition Server.h:64
void SetServerType(ServerType &&value)
Definition Server.h:63
Server & WithVmServer(const VmServer &value)
Definition Server.h:76
Server & WithServerId(Aws::String &&value)
Definition Server.h:52
bool ReplicationJobTerminatedHasBeenSet() const
Definition Server.h:99
Server & WithVmServer(VmServer &&value)
Definition Server.h:77
void SetServerId(Aws::String &&value)
Definition Server.h:49
void SetReplicationJobId(const Aws::String &value)
Definition Server.h:86
Server & WithServerType(ServerType &&value)
Definition Server.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue