AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TableReplicationRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3tables/S3Tables_EXPORTS.h>
9#include <aws/s3tables/model/ReplicationDestination.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace S3Tables {
21namespace Model {
22
30 public:
31 AWS_S3TABLES_API TableReplicationRule() = default;
34 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<ReplicationDestination>& GetDestinations() const { return m_destinations; }
42 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
43 template <typename DestinationsT = Aws::Vector<ReplicationDestination>>
44 void SetDestinations(DestinationsT&& value) {
45 m_destinationsHasBeenSet = true;
46 m_destinations = std::forward<DestinationsT>(value);
47 }
48 template <typename DestinationsT = Aws::Vector<ReplicationDestination>>
49 TableReplicationRule& WithDestinations(DestinationsT&& value) {
50 SetDestinations(std::forward<DestinationsT>(value));
51 return *this;
52 }
53 template <typename DestinationsT = ReplicationDestination>
54 TableReplicationRule& AddDestinations(DestinationsT&& value) {
55 m_destinationsHasBeenSet = true;
56 m_destinations.emplace_back(std::forward<DestinationsT>(value));
57 return *this;
58 }
60 private:
62 bool m_destinationsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace S3Tables
67} // namespace Aws
const Aws::Vector< ReplicationDestination > & GetDestinations() const
AWS_S3TABLES_API TableReplicationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API TableReplicationRule()=default
TableReplicationRule & AddDestinations(DestinationsT &&value)
TableReplicationRule & WithDestinations(DestinationsT &&value)
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_S3TABLES_API TableReplicationRule(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue