AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Exclusions.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dlm/model/Tag.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 DLM
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_DLM_API Exclusions();
40 AWS_DLM_API Exclusions(Aws::Utils::Json::JsonView jsonValue);
43
44
46
52 inline bool GetExcludeBootVolumes() const{ return m_excludeBootVolumes; }
53 inline bool ExcludeBootVolumesHasBeenSet() const { return m_excludeBootVolumesHasBeenSet; }
54 inline void SetExcludeBootVolumes(bool value) { m_excludeBootVolumesHasBeenSet = true; m_excludeBootVolumes = value; }
55 inline Exclusions& WithExcludeBootVolumes(bool value) { SetExcludeBootVolumes(value); return *this;}
57
59
64 inline const Aws::Vector<Aws::String>& GetExcludeVolumeTypes() const{ return m_excludeVolumeTypes; }
65 inline bool ExcludeVolumeTypesHasBeenSet() const { return m_excludeVolumeTypesHasBeenSet; }
66 inline void SetExcludeVolumeTypes(const Aws::Vector<Aws::String>& value) { m_excludeVolumeTypesHasBeenSet = true; m_excludeVolumeTypes = value; }
67 inline void SetExcludeVolumeTypes(Aws::Vector<Aws::String>&& value) { m_excludeVolumeTypesHasBeenSet = true; m_excludeVolumeTypes = std::move(value); }
69 inline Exclusions& WithExcludeVolumeTypes(Aws::Vector<Aws::String>&& value) { SetExcludeVolumeTypes(std::move(value)); return *this;}
70 inline Exclusions& AddExcludeVolumeTypes(const Aws::String& value) { m_excludeVolumeTypesHasBeenSet = true; m_excludeVolumeTypes.push_back(value); return *this; }
71 inline Exclusions& AddExcludeVolumeTypes(Aws::String&& value) { m_excludeVolumeTypesHasBeenSet = true; m_excludeVolumeTypes.push_back(std::move(value)); return *this; }
72 inline Exclusions& AddExcludeVolumeTypes(const char* value) { m_excludeVolumeTypesHasBeenSet = true; m_excludeVolumeTypes.push_back(value); return *this; }
74
76
80 inline const Aws::Vector<Tag>& GetExcludeTags() const{ return m_excludeTags; }
81 inline bool ExcludeTagsHasBeenSet() const { return m_excludeTagsHasBeenSet; }
82 inline void SetExcludeTags(const Aws::Vector<Tag>& value) { m_excludeTagsHasBeenSet = true; m_excludeTags = value; }
83 inline void SetExcludeTags(Aws::Vector<Tag>&& value) { m_excludeTagsHasBeenSet = true; m_excludeTags = std::move(value); }
84 inline Exclusions& WithExcludeTags(const Aws::Vector<Tag>& value) { SetExcludeTags(value); return *this;}
85 inline Exclusions& WithExcludeTags(Aws::Vector<Tag>&& value) { SetExcludeTags(std::move(value)); return *this;}
86 inline Exclusions& AddExcludeTags(const Tag& value) { m_excludeTagsHasBeenSet = true; m_excludeTags.push_back(value); return *this; }
87 inline Exclusions& AddExcludeTags(Tag&& value) { m_excludeTagsHasBeenSet = true; m_excludeTags.push_back(std::move(value)); return *this; }
89 private:
90
91 bool m_excludeBootVolumes;
92 bool m_excludeBootVolumesHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_excludeVolumeTypes;
95 bool m_excludeVolumeTypesHasBeenSet = false;
96
97 Aws::Vector<Tag> m_excludeTags;
98 bool m_excludeTagsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DLM
103} // namespace Aws
void SetExcludeVolumeTypes(Aws::Vector< Aws::String > &&value)
Definition Exclusions.h:67
void SetExcludeTags(Aws::Vector< Tag > &&value)
Definition Exclusions.h:83
Exclusions & WithExcludeTags(const Aws::Vector< Tag > &value)
Definition Exclusions.h:84
void SetExcludeTags(const Aws::Vector< Tag > &value)
Definition Exclusions.h:82
bool ExcludeBootVolumesHasBeenSet() const
Definition Exclusions.h:53
Exclusions & WithExcludeVolumeTypes(const Aws::Vector< Aws::String > &value)
Definition Exclusions.h:68
Exclusions & AddExcludeTags(Tag &&value)
Definition Exclusions.h:87
const Aws::Vector< Aws::String > & GetExcludeVolumeTypes() const
Definition Exclusions.h:64
const Aws::Vector< Tag > & GetExcludeTags() const
Definition Exclusions.h:80
Exclusions & WithExcludeTags(Aws::Vector< Tag > &&value)
Definition Exclusions.h:85
void SetExcludeBootVolumes(bool value)
Definition Exclusions.h:54
Exclusions & AddExcludeVolumeTypes(const Aws::String &value)
Definition Exclusions.h:70
bool ExcludeVolumeTypesHasBeenSet() const
Definition Exclusions.h:65
void SetExcludeVolumeTypes(const Aws::Vector< Aws::String > &value)
Definition Exclusions.h:66
Exclusions & WithExcludeVolumeTypes(Aws::Vector< Aws::String > &&value)
Definition Exclusions.h:69
AWS_DLM_API Exclusions & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetExcludeBootVolumes() const
Definition Exclusions.h:52
bool ExcludeTagsHasBeenSet() const
Definition Exclusions.h:81
AWS_DLM_API Exclusions(Aws::Utils::Json::JsonView jsonValue)
Exclusions & AddExcludeVolumeTypes(const char *value)
Definition Exclusions.h:72
Exclusions & AddExcludeTags(const Tag &value)
Definition Exclusions.h:86
Exclusions & AddExcludeVolumeTypes(Aws::String &&value)
Definition Exclusions.h:71
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
Exclusions & WithExcludeBootVolumes(bool value)
Definition Exclusions.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue