AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AdvancedBackupSetting.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/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Backup
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BACKUP_API AdvancedBackupSetting() = default;
38 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const Aws::String& GetResourceType() const { return m_resourceType; }
51 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
52 template<typename ResourceTypeT = Aws::String>
53 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
54 template<typename ResourceTypeT = Aws::String>
55 AdvancedBackupSetting& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
57
59
71 inline const Aws::Map<Aws::String, Aws::String>& GetBackupOptions() const { return m_backupOptions; }
72 inline bool BackupOptionsHasBeenSet() const { return m_backupOptionsHasBeenSet; }
73 template<typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
74 void SetBackupOptions(BackupOptionsT&& value) { m_backupOptionsHasBeenSet = true; m_backupOptions = std::forward<BackupOptionsT>(value); }
75 template<typename BackupOptionsT = Aws::Map<Aws::String, Aws::String>>
76 AdvancedBackupSetting& WithBackupOptions(BackupOptionsT&& value) { SetBackupOptions(std::forward<BackupOptionsT>(value)); return *this;}
77 template<typename BackupOptionsKeyT = Aws::String, typename BackupOptionsValueT = Aws::String>
78 AdvancedBackupSetting& AddBackupOptions(BackupOptionsKeyT&& key, BackupOptionsValueT&& value) {
79 m_backupOptionsHasBeenSet = true; m_backupOptions.emplace(std::forward<BackupOptionsKeyT>(key), std::forward<BackupOptionsValueT>(value)); return *this;
80 }
82 private:
83
84 Aws::String m_resourceType;
85 bool m_resourceTypeHasBeenSet = false;
86
88 bool m_backupOptionsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Backup
93} // namespace Aws
AWS_BACKUP_API AdvancedBackupSetting(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetBackupOptions() const
AWS_BACKUP_API AdvancedBackupSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
AdvancedBackupSetting & WithBackupOptions(BackupOptionsT &&value)
AdvancedBackupSetting & WithResourceType(ResourceTypeT &&value)
AWS_BACKUP_API AdvancedBackupSetting()=default
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AdvancedBackupSetting & AddBackupOptions(BackupOptionsKeyT &&key, BackupOptionsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue