AWS SDK for C++  1.9.72
AWS SDK for C++
LoadPermissionModifications.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<LoadPermissionRequest>& GetAdd() const{ return m_add; }
48 
52  inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
53 
57  inline void SetAdd(const Aws::Vector<LoadPermissionRequest>& value) { m_addHasBeenSet = true; m_add = value; }
58 
62  inline void SetAdd(Aws::Vector<LoadPermissionRequest>&& value) { m_addHasBeenSet = true; m_add = std::move(value); }
63 
67  inline LoadPermissionModifications& WithAdd(const Aws::Vector<LoadPermissionRequest>& value) { SetAdd(value); return *this;}
68 
72  inline LoadPermissionModifications& WithAdd(Aws::Vector<LoadPermissionRequest>&& value) { SetAdd(std::move(value)); return *this;}
73 
77  inline LoadPermissionModifications& AddAdd(const LoadPermissionRequest& value) { m_addHasBeenSet = true; m_add.push_back(value); return *this; }
78 
82  inline LoadPermissionModifications& AddAdd(LoadPermissionRequest&& value) { m_addHasBeenSet = true; m_add.push_back(std::move(value)); return *this; }
83 
84 
88  inline const Aws::Vector<LoadPermissionRequest>& GetRemove() const{ return m_remove; }
89 
93  inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
94 
98  inline void SetRemove(const Aws::Vector<LoadPermissionRequest>& value) { m_removeHasBeenSet = true; m_remove = value; }
99 
103  inline void SetRemove(Aws::Vector<LoadPermissionRequest>&& value) { m_removeHasBeenSet = true; m_remove = std::move(value); }
104 
108  inline LoadPermissionModifications& WithRemove(const Aws::Vector<LoadPermissionRequest>& value) { SetRemove(value); return *this;}
109 
113  inline LoadPermissionModifications& WithRemove(Aws::Vector<LoadPermissionRequest>&& value) { SetRemove(std::move(value)); return *this;}
114 
118  inline LoadPermissionModifications& AddRemove(const LoadPermissionRequest& value) { m_removeHasBeenSet = true; m_remove.push_back(value); return *this; }
119 
123  inline LoadPermissionModifications& AddRemove(LoadPermissionRequest&& value) { m_removeHasBeenSet = true; m_remove.push_back(std::move(value)); return *this; }
124 
125  private:
126 
128  bool m_addHasBeenSet;
129 
131  bool m_removeHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::LoadPermissionModifications::LoadPermissionModifications
LoadPermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LoadPermissionModifications::LoadPermissionModifications
LoadPermissionModifications()
Aws::EC2::Model::LoadPermissionModifications::SetRemove
void SetRemove(Aws::Vector< LoadPermissionRequest > &&value)
Definition: LoadPermissionModifications.h:103
Aws::EC2::Model::LoadPermissionModifications::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LoadPermissionModifications::WithRemove
LoadPermissionModifications & WithRemove(Aws::Vector< LoadPermissionRequest > &&value)
Definition: LoadPermissionModifications.h:113
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::LoadPermissionRequest
Definition: LoadPermissionRequest.h:33
AWSStreamFwd.h
Aws::EC2::Model::LoadPermissionModifications::SetAdd
void SetAdd(Aws::Vector< LoadPermissionRequest > &&value)
Definition: LoadPermissionModifications.h:62
AWSVector.h
Aws::EC2::Model::LoadPermissionModifications
Definition: LoadPermissionModifications.h:34
Aws::EC2::Model::LoadPermissionModifications::AddRemove
LoadPermissionModifications & AddRemove(const LoadPermissionRequest &value)
Definition: LoadPermissionModifications.h:118
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LoadPermissionModifications::AddAdd
LoadPermissionModifications & AddAdd(LoadPermissionRequest &&value)
Definition: LoadPermissionModifications.h:82
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LoadPermissionModifications::AddHasBeenSet
bool AddHasBeenSet() const
Definition: LoadPermissionModifications.h:52
LoadPermissionRequest.h
Aws::EC2::Model::LoadPermissionModifications::AddRemove
LoadPermissionModifications & AddRemove(LoadPermissionRequest &&value)
Definition: LoadPermissionModifications.h:123
Aws::EC2::Model::LoadPermissionModifications::operator=
LoadPermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LoadPermissionModifications::RemoveHasBeenSet
bool RemoveHasBeenSet() const
Definition: LoadPermissionModifications.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LoadPermissionModifications::SetAdd
void SetAdd(const Aws::Vector< LoadPermissionRequest > &value)
Definition: LoadPermissionModifications.h:57
Aws::EC2::Model::LoadPermissionModifications::AddAdd
LoadPermissionModifications & AddAdd(const LoadPermissionRequest &value)
Definition: LoadPermissionModifications.h:77
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LoadPermissionModifications::WithRemove
LoadPermissionModifications & WithRemove(const Aws::Vector< LoadPermissionRequest > &value)
Definition: LoadPermissionModifications.h:108
Aws::EC2::Model::LoadPermissionModifications::WithAdd
LoadPermissionModifications & WithAdd(const Aws::Vector< LoadPermissionRequest > &value)
Definition: LoadPermissionModifications.h:67
Aws::EC2::Model::LoadPermissionModifications::GetAdd
const Aws::Vector< LoadPermissionRequest > & GetAdd() const
Definition: LoadPermissionModifications.h:47
Aws::EC2::Model::LoadPermissionModifications::SetRemove
void SetRemove(const Aws::Vector< LoadPermissionRequest > &value)
Definition: LoadPermissionModifications.h:98
EC2_EXPORTS.h
Aws::EC2::Model::LoadPermissionModifications::WithAdd
LoadPermissionModifications & WithAdd(Aws::Vector< LoadPermissionRequest > &&value)
Definition: LoadPermissionModifications.h:72
Aws::EC2::Model::LoadPermissionModifications::GetRemove
const Aws::Vector< LoadPermissionRequest > & GetRemove() const
Definition: LoadPermissionModifications.h:88
Aws::EC2::Model::LoadPermissionModifications::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const