AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Parameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/dlm/DLM_EXPORTS.h>
9#include <aws/dlm/model/Tag.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DLM {
21namespace Model {
22
38 public:
39 AWS_DLM_API Parameters() = default;
40 AWS_DLM_API Parameters(Aws::Utils::Json::JsonView jsonValue);
43
45
52 inline bool GetExcludeBootVolume() const { return m_excludeBootVolume; }
53 inline bool ExcludeBootVolumeHasBeenSet() const { return m_excludeBootVolumeHasBeenSet; }
54 inline void SetExcludeBootVolume(bool value) {
55 m_excludeBootVolumeHasBeenSet = true;
56 m_excludeBootVolume = value;
57 }
58 inline Parameters& WithExcludeBootVolume(bool value) {
60 return *this;
61 }
63
65
72 inline bool GetNoReboot() const { return m_noReboot; }
73 inline bool NoRebootHasBeenSet() const { return m_noRebootHasBeenSet; }
74 inline void SetNoReboot(bool value) {
75 m_noRebootHasBeenSet = true;
76 m_noReboot = value;
77 }
78 inline Parameters& WithNoReboot(bool value) {
79 SetNoReboot(value);
80 return *this;
81 }
83
85
93 inline const Aws::Vector<Tag>& GetExcludeDataVolumeTags() const { return m_excludeDataVolumeTags; }
94 inline bool ExcludeDataVolumeTagsHasBeenSet() const { return m_excludeDataVolumeTagsHasBeenSet; }
95 template <typename ExcludeDataVolumeTagsT = Aws::Vector<Tag>>
96 void SetExcludeDataVolumeTags(ExcludeDataVolumeTagsT&& value) {
97 m_excludeDataVolumeTagsHasBeenSet = true;
98 m_excludeDataVolumeTags = std::forward<ExcludeDataVolumeTagsT>(value);
99 }
100 template <typename ExcludeDataVolumeTagsT = Aws::Vector<Tag>>
101 Parameters& WithExcludeDataVolumeTags(ExcludeDataVolumeTagsT&& value) {
102 SetExcludeDataVolumeTags(std::forward<ExcludeDataVolumeTagsT>(value));
103 return *this;
104 }
105 template <typename ExcludeDataVolumeTagsT = Tag>
106 Parameters& AddExcludeDataVolumeTags(ExcludeDataVolumeTagsT&& value) {
107 m_excludeDataVolumeTagsHasBeenSet = true;
108 m_excludeDataVolumeTags.emplace_back(std::forward<ExcludeDataVolumeTagsT>(value));
109 return *this;
110 }
112 private:
113 bool m_excludeBootVolume{false};
114
115 bool m_noReboot{false};
116
117 Aws::Vector<Tag> m_excludeDataVolumeTags;
118 bool m_excludeBootVolumeHasBeenSet = false;
119 bool m_noRebootHasBeenSet = false;
120 bool m_excludeDataVolumeTagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace DLM
125} // namespace Aws
bool ExcludeDataVolumeTagsHasBeenSet() const
Definition Parameters.h:94
Parameters & WithExcludeBootVolume(bool value)
Definition Parameters.h:58
AWS_DLM_API Parameters()=default
Parameters & WithNoReboot(bool value)
Definition Parameters.h:78
bool NoRebootHasBeenSet() const
Definition Parameters.h:73
void SetNoReboot(bool value)
Definition Parameters.h:74
bool ExcludeBootVolumeHasBeenSet() const
Definition Parameters.h:53
void SetExcludeDataVolumeTags(ExcludeDataVolumeTagsT &&value)
Definition Parameters.h:96
const Aws::Vector< Tag > & GetExcludeDataVolumeTags() const
Definition Parameters.h:93
Parameters & AddExcludeDataVolumeTags(ExcludeDataVolumeTagsT &&value)
Definition Parameters.h:106
AWS_DLM_API Parameters(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DLM_API Parameters & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetExcludeBootVolume() const
Definition Parameters.h:52
Parameters & WithExcludeDataVolumeTags(ExcludeDataVolumeTagsT &&value)
Definition Parameters.h:101
void SetExcludeBootVolume(bool value)
Definition Parameters.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue