AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateVolumePermissionModifications.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/CreateVolumePermission.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API CreateVolumePermissionModifications() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<CreateVolumePermission>& GetAdd() const { return m_add; }
49 inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
50 template<typename AddT = Aws::Vector<CreateVolumePermission>>
51 void SetAdd(AddT&& value) { m_addHasBeenSet = true; m_add = std::forward<AddT>(value); }
52 template<typename AddT = Aws::Vector<CreateVolumePermission>>
53 CreateVolumePermissionModifications& WithAdd(AddT&& value) { SetAdd(std::forward<AddT>(value)); return *this;}
54 template<typename AddT = CreateVolumePermission>
55 CreateVolumePermissionModifications& AddAdd(AddT&& value) { m_addHasBeenSet = true; m_add.emplace_back(std::forward<AddT>(value)); return *this; }
57
59
63 inline const Aws::Vector<CreateVolumePermission>& GetRemove() const { return m_remove; }
64 inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
65 template<typename RemoveT = Aws::Vector<CreateVolumePermission>>
66 void SetRemove(RemoveT&& value) { m_removeHasBeenSet = true; m_remove = std::forward<RemoveT>(value); }
67 template<typename RemoveT = Aws::Vector<CreateVolumePermission>>
68 CreateVolumePermissionModifications& WithRemove(RemoveT&& value) { SetRemove(std::forward<RemoveT>(value)); return *this;}
69 template<typename RemoveT = CreateVolumePermission>
70 CreateVolumePermissionModifications& AddRemove(RemoveT&& value) { m_removeHasBeenSet = true; m_remove.emplace_back(std::forward<RemoveT>(value)); return *this; }
72 private:
73
75 bool m_addHasBeenSet = false;
76
78 bool m_removeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
CreateVolumePermissionModifications & WithRemove(RemoveT &&value)
AWS_EC2_API CreateVolumePermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateVolumePermissionModifications & AddAdd(AddT &&value)
CreateVolumePermissionModifications & WithAdd(AddT &&value)
CreateVolumePermissionModifications & AddRemove(RemoveT &&value)
const Aws::Vector< CreateVolumePermission > & GetAdd() const
AWS_EC2_API CreateVolumePermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< CreateVolumePermission > & GetRemove() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream