AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAdd(const Aws::Vector<CreateVolumePermission>& value) { m_addHasBeenSet = true; m_add = value; }
51 inline void SetAdd(Aws::Vector<CreateVolumePermission>&& value) { m_addHasBeenSet = true; m_add = std::move(value); }
54 inline CreateVolumePermissionModifications& AddAdd(const CreateVolumePermission& value) { m_addHasBeenSet = true; m_add.push_back(value); return *this; }
55 inline CreateVolumePermissionModifications& AddAdd(CreateVolumePermission&& value) { m_addHasBeenSet = true; m_add.push_back(std::move(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 inline void SetRemove(const Aws::Vector<CreateVolumePermission>& value) { m_removeHasBeenSet = true; m_remove = value; }
66 inline void SetRemove(Aws::Vector<CreateVolumePermission>&& value) { m_removeHasBeenSet = true; m_remove = std::move(value); }
69 inline CreateVolumePermissionModifications& AddRemove(const CreateVolumePermission& value) { m_removeHasBeenSet = true; m_remove.push_back(value); return *this; }
70 inline CreateVolumePermissionModifications& AddRemove(CreateVolumePermission&& value) { m_removeHasBeenSet = true; m_remove.push_back(std::move(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
AWS_EC2_API CreateVolumePermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateVolumePermissionModifications & WithAdd(Aws::Vector< CreateVolumePermission > &&value)
void SetAdd(const Aws::Vector< CreateVolumePermission > &value)
CreateVolumePermissionModifications & WithRemove(Aws::Vector< CreateVolumePermission > &&value)
const Aws::Vector< CreateVolumePermission > & GetAdd() const
void SetRemove(Aws::Vector< CreateVolumePermission > &&value)
CreateVolumePermissionModifications & WithRemove(const Aws::Vector< CreateVolumePermission > &value)
CreateVolumePermissionModifications & AddRemove(CreateVolumePermission &&value)
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
CreateVolumePermissionModifications & AddRemove(const CreateVolumePermission &value)
CreateVolumePermissionModifications & WithAdd(const Aws::Vector< CreateVolumePermission > &value)
void SetAdd(Aws::Vector< CreateVolumePermission > &&value)
const Aws::Vector< CreateVolumePermission > & GetRemove() const
CreateVolumePermissionModifications & AddAdd(CreateVolumePermission &&value)
CreateVolumePermissionModifications & AddAdd(const CreateVolumePermission &value)
void SetRemove(const Aws::Vector< CreateVolumePermission > &value)
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