AWS SDK for C++  1.9.75
AWS SDK for C++
CreateVolumePermissionModifications.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<CreateVolumePermission>& GetAdd() const{ return m_add; }
48 
52  inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
53 
57  inline void SetAdd(const Aws::Vector<CreateVolumePermission>& value) { m_addHasBeenSet = true; m_add = value; }
58 
62  inline void SetAdd(Aws::Vector<CreateVolumePermission>&& value) { m_addHasBeenSet = true; m_add = std::move(value); }
63 
67  inline CreateVolumePermissionModifications& WithAdd(const Aws::Vector<CreateVolumePermission>& value) { SetAdd(value); return *this;}
68 
72  inline CreateVolumePermissionModifications& WithAdd(Aws::Vector<CreateVolumePermission>&& value) { SetAdd(std::move(value)); return *this;}
73 
77  inline CreateVolumePermissionModifications& AddAdd(const CreateVolumePermission& value) { m_addHasBeenSet = true; m_add.push_back(value); return *this; }
78 
82  inline CreateVolumePermissionModifications& AddAdd(CreateVolumePermission&& value) { m_addHasBeenSet = true; m_add.push_back(std::move(value)); return *this; }
83 
84 
89  inline const Aws::Vector<CreateVolumePermission>& GetRemove() const{ return m_remove; }
90 
95  inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
96 
101  inline void SetRemove(const Aws::Vector<CreateVolumePermission>& value) { m_removeHasBeenSet = true; m_remove = value; }
102 
107  inline void SetRemove(Aws::Vector<CreateVolumePermission>&& value) { m_removeHasBeenSet = true; m_remove = std::move(value); }
108 
113  inline CreateVolumePermissionModifications& WithRemove(const Aws::Vector<CreateVolumePermission>& value) { SetRemove(value); return *this;}
114 
119  inline CreateVolumePermissionModifications& WithRemove(Aws::Vector<CreateVolumePermission>&& value) { SetRemove(std::move(value)); return *this;}
120 
125  inline CreateVolumePermissionModifications& AddRemove(const CreateVolumePermission& value) { m_removeHasBeenSet = true; m_remove.push_back(value); return *this; }
126 
131  inline CreateVolumePermissionModifications& AddRemove(CreateVolumePermission&& value) { m_removeHasBeenSet = true; m_remove.push_back(std::move(value)); return *this; }
132 
133  private:
134 
136  bool m_addHasBeenSet;
137 
139  bool m_removeHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace EC2
144 } // namespace Aws
Aws::EC2::Model::CreateVolumePermissionModifications::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CreateVolumePermissionModifications
Definition: CreateVolumePermissionModifications.h:34
Aws::EC2::Model::CreateVolumePermissionModifications::CreateVolumePermissionModifications
CreateVolumePermissionModifications()
Aws::EC2::Model::CreateVolumePermissionModifications::SetAdd
void SetAdd(const Aws::Vector< CreateVolumePermission > &value)
Definition: CreateVolumePermissionModifications.h:57
Aws::EC2::Model::CreateVolumePermissionModifications::GetAdd
const Aws::Vector< CreateVolumePermission > & GetAdd() const
Definition: CreateVolumePermissionModifications.h:47
Aws::EC2::Model::CreateVolumePermissionModifications::operator=
CreateVolumePermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CreateVolumePermissionModifications::AddAdd
CreateVolumePermissionModifications & AddAdd(CreateVolumePermission &&value)
Definition: CreateVolumePermissionModifications.h:82
Aws::EC2::Model::CreateVolumePermissionModifications::AddRemove
CreateVolumePermissionModifications & AddRemove(CreateVolumePermission &&value)
Definition: CreateVolumePermissionModifications.h:131
Aws::EC2::Model::CreateVolumePermissionModifications::CreateVolumePermissionModifications
CreateVolumePermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateVolumePermission.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateVolumePermissionModifications::WithAdd
CreateVolumePermissionModifications & WithAdd(Aws::Vector< CreateVolumePermission > &&value)
Definition: CreateVolumePermissionModifications.h:72
Aws::EC2::Model::CreateVolumePermissionModifications::AddRemove
CreateVolumePermissionModifications & AddRemove(const CreateVolumePermission &value)
Definition: CreateVolumePermissionModifications.h:125
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateVolumePermissionModifications::GetRemove
const Aws::Vector< CreateVolumePermission > & GetRemove() const
Definition: CreateVolumePermissionModifications.h:89
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::CreateVolumePermissionModifications::SetRemove
void SetRemove(Aws::Vector< CreateVolumePermission > &&value)
Definition: CreateVolumePermissionModifications.h:107
Aws::EC2::Model::CreateVolumePermissionModifications::AddAdd
CreateVolumePermissionModifications & AddAdd(const CreateVolumePermission &value)
Definition: CreateVolumePermissionModifications.h:77
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CreateVolumePermissionModifications::WithRemove
CreateVolumePermissionModifications & WithRemove(const Aws::Vector< CreateVolumePermission > &value)
Definition: CreateVolumePermissionModifications.h:113
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CreateVolumePermissionModifications::SetAdd
void SetAdd(Aws::Vector< CreateVolumePermission > &&value)
Definition: CreateVolumePermissionModifications.h:62
Aws::EC2::Model::CreateVolumePermissionModifications::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::CreateVolumePermission
Definition: CreateVolumePermission.h:34
Aws::EC2::Model::CreateVolumePermissionModifications::AddHasBeenSet
bool AddHasBeenSet() const
Definition: CreateVolumePermissionModifications.h:52
Aws::EC2::Model::CreateVolumePermissionModifications::SetRemove
void SetRemove(const Aws::Vector< CreateVolumePermission > &value)
Definition: CreateVolumePermissionModifications.h:101
Aws::EC2::Model::CreateVolumePermissionModifications::WithAdd
CreateVolumePermissionModifications & WithAdd(const Aws::Vector< CreateVolumePermission > &value)
Definition: CreateVolumePermissionModifications.h:67
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::CreateVolumePermissionModifications::RemoveHasBeenSet
bool RemoveHasBeenSet() const
Definition: CreateVolumePermissionModifications.h:95
Aws::EC2::Model::CreateVolumePermissionModifications::WithRemove
CreateVolumePermissionModifications & WithRemove(Aws::Vector< CreateVolumePermission > &&value)
Definition: CreateVolumePermissionModifications.h:119