/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SMS { namespace Model { /** *

Replication configuration for a server group.

See Also:

AWS * API Reference

*/ class ServerGroupReplicationConfiguration { public: AWS_SMS_API ServerGroupReplicationConfiguration(); AWS_SMS_API ServerGroupReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API ServerGroupReplicationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; } /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; } /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; } /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); } /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); } /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline ServerGroupReplicationConfiguration& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;} /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline ServerGroupReplicationConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;} /** *

The ID of the server group with which this replication configuration is * associated.

*/ inline ServerGroupReplicationConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;} /** *

The replication configuration for servers in the server group.

*/ inline const Aws::Vector& GetServerReplicationConfigurations() const{ return m_serverReplicationConfigurations; } /** *

The replication configuration for servers in the server group.

*/ inline bool ServerReplicationConfigurationsHasBeenSet() const { return m_serverReplicationConfigurationsHasBeenSet; } /** *

The replication configuration for servers in the server group.

*/ inline void SetServerReplicationConfigurations(const Aws::Vector& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = value; } /** *

The replication configuration for servers in the server group.

*/ inline void SetServerReplicationConfigurations(Aws::Vector&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = std::move(value); } /** *

The replication configuration for servers in the server group.

*/ inline ServerGroupReplicationConfiguration& WithServerReplicationConfigurations(const Aws::Vector& value) { SetServerReplicationConfigurations(value); return *this;} /** *

The replication configuration for servers in the server group.

*/ inline ServerGroupReplicationConfiguration& WithServerReplicationConfigurations(Aws::Vector&& value) { SetServerReplicationConfigurations(std::move(value)); return *this;} /** *

The replication configuration for servers in the server group.

*/ inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(const ServerReplicationConfiguration& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(value); return *this; } /** *

The replication configuration for servers in the server group.

*/ inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(ServerReplicationConfiguration&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(std::move(value)); return *this; } private: Aws::String m_serverGroupId; bool m_serverGroupIdHasBeenSet = false; Aws::Vector m_serverReplicationConfigurations; bool m_serverReplicationConfigurationsHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws