AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CrossRegionCopyConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/dlm/DLM_EXPORTS.h>
9#include <aws/dlm/model/CopyInterval.h>
10#include <aws/dlm/model/CrossRegionCopyTarget.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DLM {
22namespace Model {
23
32 public:
33 AWS_DLM_API CrossRegionCopyConfiguration() = default;
37
39
46 inline const CopyInterval& GetCopyInterval() const { return m_copyInterval; }
47 inline bool CopyIntervalHasBeenSet() const { return m_copyIntervalHasBeenSet; }
48 template <typename CopyIntervalT = CopyInterval>
49 void SetCopyInterval(CopyIntervalT&& value) {
50 m_copyIntervalHasBeenSet = true;
51 m_copyInterval = std::forward<CopyIntervalT>(value);
52 }
53 template <typename CopyIntervalT = CopyInterval>
55 SetCopyInterval(std::forward<CopyIntervalT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Vector<CrossRegionCopyTarget>& GetDestinations() const { return m_destinations; }
68 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
69 template <typename DestinationsT = Aws::Vector<CrossRegionCopyTarget>>
70 void SetDestinations(DestinationsT&& value) {
71 m_destinationsHasBeenSet = true;
72 m_destinations = std::forward<DestinationsT>(value);
73 }
74 template <typename DestinationsT = Aws::Vector<CrossRegionCopyTarget>>
76 SetDestinations(std::forward<DestinationsT>(value));
77 return *this;
78 }
79 template <typename DestinationsT = CrossRegionCopyTarget>
81 m_destinationsHasBeenSet = true;
82 m_destinations.emplace_back(std::forward<DestinationsT>(value));
83 return *this;
84 }
86 private:
87 CopyInterval m_copyInterval;
88
90 bool m_copyIntervalHasBeenSet = false;
91 bool m_destinationsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace DLM
96} // namespace Aws
AWS_DLM_API CrossRegionCopyConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
CrossRegionCopyConfiguration & WithDestinations(DestinationsT &&value)
CrossRegionCopyConfiguration & AddDestinations(DestinationsT &&value)
CrossRegionCopyConfiguration & WithCopyInterval(CopyIntervalT &&value)
AWS_DLM_API CrossRegionCopyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CrossRegionCopyTarget > & GetDestinations() const
AWS_DLM_API CrossRegionCopyConfiguration()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue