AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
RecoveryPointSelection.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/DateRange.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Backup {
22namespace Model {
23
31 public:
32 AWS_BACKUP_API RecoveryPointSelection() = default;
35 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetVaultNames() const { return m_vaultNames; }
43 inline bool VaultNamesHasBeenSet() const { return m_vaultNamesHasBeenSet; }
44 template <typename VaultNamesT = Aws::Vector<Aws::String>>
45 void SetVaultNames(VaultNamesT&& value) {
46 m_vaultNamesHasBeenSet = true;
47 m_vaultNames = std::forward<VaultNamesT>(value);
48 }
49 template <typename VaultNamesT = Aws::Vector<Aws::String>>
50 RecoveryPointSelection& WithVaultNames(VaultNamesT&& value) {
51 SetVaultNames(std::forward<VaultNamesT>(value));
52 return *this;
53 }
54 template <typename VaultNamesT = Aws::String>
55 RecoveryPointSelection& AddVaultNames(VaultNamesT&& value) {
56 m_vaultNamesHasBeenSet = true;
57 m_vaultNames.emplace_back(std::forward<VaultNamesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Aws::String>& GetResourceIdentifiers() const { return m_resourceIdentifiers; }
68 inline bool ResourceIdentifiersHasBeenSet() const { return m_resourceIdentifiersHasBeenSet; }
69 template <typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
70 void SetResourceIdentifiers(ResourceIdentifiersT&& value) {
71 m_resourceIdentifiersHasBeenSet = true;
72 m_resourceIdentifiers = std::forward<ResourceIdentifiersT>(value);
73 }
74 template <typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
75 RecoveryPointSelection& WithResourceIdentifiers(ResourceIdentifiersT&& value) {
76 SetResourceIdentifiers(std::forward<ResourceIdentifiersT>(value));
77 return *this;
78 }
79 template <typename ResourceIdentifiersT = Aws::String>
80 RecoveryPointSelection& AddResourceIdentifiers(ResourceIdentifiersT&& value) {
81 m_resourceIdentifiersHasBeenSet = true;
82 m_resourceIdentifiers.emplace_back(std::forward<ResourceIdentifiersT>(value));
83 return *this;
84 }
86
88
89 inline const DateRange& GetDateRange() const { return m_dateRange; }
90 inline bool DateRangeHasBeenSet() const { return m_dateRangeHasBeenSet; }
91 template <typename DateRangeT = DateRange>
92 void SetDateRange(DateRangeT&& value) {
93 m_dateRangeHasBeenSet = true;
94 m_dateRange = std::forward<DateRangeT>(value);
95 }
96 template <typename DateRangeT = DateRange>
98 SetDateRange(std::forward<DateRangeT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<Aws::String> m_vaultNames;
104
105 Aws::Vector<Aws::String> m_resourceIdentifiers;
106
107 DateRange m_dateRange;
108 bool m_vaultNamesHasBeenSet = false;
109 bool m_resourceIdentifiersHasBeenSet = false;
110 bool m_dateRangeHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Backup
115} // namespace Aws
AWS_BACKUP_API RecoveryPointSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API RecoveryPointSelection()=default
AWS_BACKUP_API RecoveryPointSelection(Aws::Utils::Json::JsonView jsonValue)
RecoveryPointSelection & WithVaultNames(VaultNamesT &&value)
RecoveryPointSelection & AddResourceIdentifiers(ResourceIdentifiersT &&value)
RecoveryPointSelection & WithDateRange(DateRangeT &&value)
RecoveryPointSelection & WithResourceIdentifiers(ResourceIdentifiersT &&value)
RecoveryPointSelection & AddVaultNames(VaultNamesT &&value)
const Aws::Vector< Aws::String > & GetVaultNames() const
void SetResourceIdentifiers(ResourceIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetResourceIdentifiers() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue