AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerGroupReplicationConfiguration.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/ServerReplicationConfiguration.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:
40
41
43
47 inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
48 inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
49 inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
50 inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
51 inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
53 inline ServerGroupReplicationConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
54 inline ServerGroupReplicationConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
56
58
61 inline const Aws::Vector<ServerReplicationConfiguration>& GetServerReplicationConfigurations() const{ return m_serverReplicationConfigurations; }
62 inline bool ServerReplicationConfigurationsHasBeenSet() const { return m_serverReplicationConfigurationsHasBeenSet; }
63 inline void SetServerReplicationConfigurations(const Aws::Vector<ServerReplicationConfiguration>& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = value; }
64 inline void SetServerReplicationConfigurations(Aws::Vector<ServerReplicationConfiguration>&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = std::move(value); }
67 inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(const ServerReplicationConfiguration& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(value); return *this; }
68 inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(ServerReplicationConfiguration&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_serverGroupId;
73 bool m_serverGroupIdHasBeenSet = false;
74
75 Aws::Vector<ServerReplicationConfiguration> m_serverReplicationConfigurations;
76 bool m_serverReplicationConfigurationsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SMS
81} // namespace Aws
AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SMS_API ServerGroupReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServerGroupReplicationConfiguration & WithServerGroupId(Aws::String &&value)
ServerGroupReplicationConfiguration & AddServerReplicationConfigurations(ServerReplicationConfiguration &&value)
void SetServerReplicationConfigurations(const Aws::Vector< ServerReplicationConfiguration > &value)
AWS_SMS_API ServerGroupReplicationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServerReplicationConfigurations(Aws::Vector< ServerReplicationConfiguration > &&value)
const Aws::Vector< ServerReplicationConfiguration > & GetServerReplicationConfigurations() const
ServerGroupReplicationConfiguration & AddServerReplicationConfigurations(const ServerReplicationConfiguration &value)
ServerGroupReplicationConfiguration & WithServerGroupId(const char *value)
ServerGroupReplicationConfiguration & WithServerGroupId(const Aws::String &value)
ServerGroupReplicationConfiguration & WithServerReplicationConfigurations(Aws::Vector< ServerReplicationConfiguration > &&value)
ServerGroupReplicationConfiguration & WithServerReplicationConfigurations(const Aws::Vector< ServerReplicationConfiguration > &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