AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
TableBucketReplicationRule.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 TableBucketReplicationRule() = default;
34 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ReplicationDestination>& GetDestinations() const { return m_destinations; }
41 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
42 template <typename DestinationsT = Aws::Vector<ReplicationDestination>>
43 void SetDestinations(DestinationsT&& value) {
44 m_destinationsHasBeenSet = true;
45 m_destinations = std::forward<DestinationsT>(value);
46 }
47 template <typename DestinationsT = Aws::Vector<ReplicationDestination>>
49 SetDestinations(std::forward<DestinationsT>(value));
50 return *this;
51 }
52 template <typename DestinationsT = ReplicationDestination>
54 m_destinationsHasBeenSet = true;
55 m_destinations.emplace_back(std::forward<DestinationsT>(value));
56 return *this;
57 }
59 private:
61 bool m_destinationsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace S3Tables
66} // namespace Aws
AWS_S3TABLES_API TableBucketReplicationRule(Aws::Utils::Json::JsonView jsonValue)
TableBucketReplicationRule & WithDestinations(DestinationsT &&value)
TableBucketReplicationRule & AddDestinations(DestinationsT &&value)
AWS_S3TABLES_API TableBucketReplicationRule()=default
AWS_S3TABLES_API TableBucketReplicationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ReplicationDestination > & GetDestinations() const
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue