AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ResourceSelection.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Backup {
21namespace Model {
22
32 public:
33 AWS_BACKUP_API ResourceSelection() = default;
36 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
45 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
46 template <typename ResourcesT = Aws::Vector<Aws::String>>
47 void SetResources(ResourcesT&& value) {
48 m_resourcesHasBeenSet = true;
49 m_resources = std::forward<ResourcesT>(value);
50 }
51 template <typename ResourcesT = Aws::Vector<Aws::String>>
52 ResourceSelection& WithResources(ResourcesT&& value) {
53 SetResources(std::forward<ResourcesT>(value));
54 return *this;
55 }
56 template <typename ResourcesT = Aws::String>
57 ResourceSelection& AddResources(ResourcesT&& value) {
58 m_resourcesHasBeenSet = true;
59 m_resources.emplace_back(std::forward<ResourcesT>(value));
60 return *this;
61 }
63
65
70 inline int GetTieringDownSettingsInDays() const { return m_tieringDownSettingsInDays; }
71 inline bool TieringDownSettingsInDaysHasBeenSet() const { return m_tieringDownSettingsInDaysHasBeenSet; }
72 inline void SetTieringDownSettingsInDays(int value) {
73 m_tieringDownSettingsInDaysHasBeenSet = true;
74 m_tieringDownSettingsInDays = value;
75 }
78 return *this;
79 }
81
83
88 inline const Aws::String& GetResourceType() const { return m_resourceType; }
89 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
90 template <typename ResourceTypeT = Aws::String>
91 void SetResourceType(ResourceTypeT&& value) {
92 m_resourceTypeHasBeenSet = true;
93 m_resourceType = std::forward<ResourceTypeT>(value);
94 }
95 template <typename ResourceTypeT = Aws::String>
96 ResourceSelection& WithResourceType(ResourceTypeT&& value) {
97 SetResourceType(std::forward<ResourceTypeT>(value));
98 return *this;
99 }
101 private:
102 Aws::Vector<Aws::String> m_resources;
103
104 int m_tieringDownSettingsInDays{0};
105
106 Aws::String m_resourceType;
107 bool m_resourcesHasBeenSet = false;
108 bool m_tieringDownSettingsInDaysHasBeenSet = false;
109 bool m_resourceTypeHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Backup
114} // namespace Aws
ResourceSelection & WithTieringDownSettingsInDays(int value)
AWS_BACKUP_API ResourceSelection()=default
void SetResourceType(ResourceTypeT &&value)
AWS_BACKUP_API ResourceSelection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API ResourceSelection(Aws::Utils::Json::JsonView jsonValue)
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
ResourceSelection & WithResourceType(ResourceTypeT &&value)
const Aws::Vector< Aws::String > & GetResources() const
ResourceSelection & AddResources(ResourcesT &&value)
ResourceSelection & WithResources(ResourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue