AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RecoveryPointSelection.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/backup/model/DateRange.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Backup
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BACKUP_API RecoveryPointSelection() = default;
40 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetVaultNames() const { return m_vaultNames; }
49 inline bool VaultNamesHasBeenSet() const { return m_vaultNamesHasBeenSet; }
50 template<typename VaultNamesT = Aws::Vector<Aws::String>>
51 void SetVaultNames(VaultNamesT&& value) { m_vaultNamesHasBeenSet = true; m_vaultNames = std::forward<VaultNamesT>(value); }
52 template<typename VaultNamesT = Aws::Vector<Aws::String>>
53 RecoveryPointSelection& WithVaultNames(VaultNamesT&& value) { SetVaultNames(std::forward<VaultNamesT>(value)); return *this;}
54 template<typename VaultNamesT = Aws::String>
55 RecoveryPointSelection& AddVaultNames(VaultNamesT&& value) { m_vaultNamesHasBeenSet = true; m_vaultNames.emplace_back(std::forward<VaultNamesT>(value)); return *this; }
57
59
63 inline const Aws::Vector<Aws::String>& GetResourceIdentifiers() const { return m_resourceIdentifiers; }
64 inline bool ResourceIdentifiersHasBeenSet() const { return m_resourceIdentifiersHasBeenSet; }
65 template<typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
66 void SetResourceIdentifiers(ResourceIdentifiersT&& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers = std::forward<ResourceIdentifiersT>(value); }
67 template<typename ResourceIdentifiersT = Aws::Vector<Aws::String>>
68 RecoveryPointSelection& WithResourceIdentifiers(ResourceIdentifiersT&& value) { SetResourceIdentifiers(std::forward<ResourceIdentifiersT>(value)); return *this;}
69 template<typename ResourceIdentifiersT = Aws::String>
70 RecoveryPointSelection& AddResourceIdentifiers(ResourceIdentifiersT&& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers.emplace_back(std::forward<ResourceIdentifiersT>(value)); return *this; }
72
74
75 inline const DateRange& GetDateRange() const { return m_dateRange; }
76 inline bool DateRangeHasBeenSet() const { return m_dateRangeHasBeenSet; }
77 template<typename DateRangeT = DateRange>
78 void SetDateRange(DateRangeT&& value) { m_dateRangeHasBeenSet = true; m_dateRange = std::forward<DateRangeT>(value); }
79 template<typename DateRangeT = DateRange>
80 RecoveryPointSelection& WithDateRange(DateRangeT&& value) { SetDateRange(std::forward<DateRangeT>(value)); return *this;}
82 private:
83
84 Aws::Vector<Aws::String> m_vaultNames;
85 bool m_vaultNamesHasBeenSet = false;
86
87 Aws::Vector<Aws::String> m_resourceIdentifiers;
88 bool m_resourceIdentifiersHasBeenSet = false;
89
90 DateRange m_dateRange;
91 bool m_dateRangeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Backup
96} // 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