AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ServerIdT = Aws::String>
49 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
50 template<typename ServerIdT = Aws::String>
51 Server& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
53
55
58 inline ServerType GetServerType() const { return m_serverType; }
59 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
60 inline void SetServerType(ServerType value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
61 inline Server& WithServerType(ServerType value) { SetServerType(value); return *this;}
63
65
68 inline const VmServer& GetVmServer() const { return m_vmServer; }
69 inline bool VmServerHasBeenSet() const { return m_vmServerHasBeenSet; }
70 template<typename VmServerT = VmServer>
71 void SetVmServer(VmServerT&& value) { m_vmServerHasBeenSet = true; m_vmServer = std::forward<VmServerT>(value); }
72 template<typename VmServerT = VmServer>
73 Server& WithVmServer(VmServerT&& value) { SetVmServer(std::forward<VmServerT>(value)); return *this;}
75
77
80 inline const Aws::String& GetReplicationJobId() const { return m_replicationJobId; }
81 inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
82 template<typename ReplicationJobIdT = Aws::String>
83 void SetReplicationJobId(ReplicationJobIdT&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::forward<ReplicationJobIdT>(value); }
84 template<typename ReplicationJobIdT = Aws::String>
85 Server& WithReplicationJobId(ReplicationJobIdT&& value) { SetReplicationJobId(std::forward<ReplicationJobIdT>(value)); return *this;}
87
89
92 inline bool GetReplicationJobTerminated() const { return m_replicationJobTerminated; }
93 inline bool ReplicationJobTerminatedHasBeenSet() const { return m_replicationJobTerminatedHasBeenSet; }
94 inline void SetReplicationJobTerminated(bool value) { m_replicationJobTerminatedHasBeenSet = true; m_replicationJobTerminated = value; }
95 inline Server& WithReplicationJobTerminated(bool value) { SetReplicationJobTerminated(value); return *this;}
97 private:
98
99 Aws::String m_serverId;
100 bool m_serverIdHasBeenSet = false;
101
102 ServerType m_serverType{ServerType::NOT_SET};
103 bool m_serverTypeHasBeenSet = false;
104
105 VmServer m_vmServer;
106 bool m_vmServerHasBeenSet = false;
107
108 Aws::String m_replicationJobId;
109 bool m_replicationJobIdHasBeenSet = false;
110
111 bool m_replicationJobTerminated{false};
112 bool m_replicationJobTerminatedHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SMS
117} // namespace Aws
void SetReplicationJobId(ReplicationJobIdT &&value)
Definition Server.h:83
void SetServerId(ServerIdT &&value)
Definition Server.h:49
bool VmServerHasBeenSet() const
Definition Server.h:69
const Aws::String & GetReplicationJobId() const
Definition Server.h:80
AWS_SMS_API Server(Aws::Utils::Json::JsonView jsonValue)
void SetReplicationJobTerminated(bool value)
Definition Server.h:94
AWS_SMS_API Server & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVmServer(VmServerT &&value)
Definition Server.h:71
bool GetReplicationJobTerminated() const
Definition Server.h:92
bool ServerTypeHasBeenSet() const
Definition Server.h:59
const Aws::String & GetServerId() const
Definition Server.h:46
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
const VmServer & GetVmServer() const
Definition Server.h:68
Server & WithReplicationJobTerminated(bool value)
Definition Server.h:95
Server & WithVmServer(VmServerT &&value)
Definition Server.h:73
Server & WithServerId(ServerIdT &&value)
Definition Server.h:51
bool ServerIdHasBeenSet() const
Definition Server.h:47
bool ReplicationJobIdHasBeenSet() const
Definition Server.h:81
AWS_SMS_API Server()=default
Server & WithServerType(ServerType value)
Definition Server.h:61
void SetServerType(ServerType value)
Definition Server.h:60
bool ReplicationJobTerminatedHasBeenSet() const
Definition Server.h:93
Server & WithReplicationJobId(ReplicationJobIdT &&value)
Definition Server.h:85
ServerType GetServerType() const
Definition Server.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue