AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadPermissionModifications.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/LoadPermissionRequest.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<LoadPermissionRequest>& GetAdd() const{ return m_add; }
49 inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
50 inline void SetAdd(const Aws::Vector<LoadPermissionRequest>& value) { m_addHasBeenSet = true; m_add = value; }
51 inline void SetAdd(Aws::Vector<LoadPermissionRequest>&& value) { m_addHasBeenSet = true; m_add = std::move(value); }
53 inline LoadPermissionModifications& WithAdd(Aws::Vector<LoadPermissionRequest>&& value) { SetAdd(std::move(value)); return *this;}
54 inline LoadPermissionModifications& AddAdd(const LoadPermissionRequest& value) { m_addHasBeenSet = true; m_add.push_back(value); return *this; }
55 inline LoadPermissionModifications& AddAdd(LoadPermissionRequest&& value) { m_addHasBeenSet = true; m_add.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::Vector<LoadPermissionRequest>& GetRemove() const{ return m_remove; }
63 inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
64 inline void SetRemove(const Aws::Vector<LoadPermissionRequest>& value) { m_removeHasBeenSet = true; m_remove = value; }
65 inline void SetRemove(Aws::Vector<LoadPermissionRequest>&& value) { m_removeHasBeenSet = true; m_remove = std::move(value); }
67 inline LoadPermissionModifications& WithRemove(Aws::Vector<LoadPermissionRequest>&& value) { SetRemove(std::move(value)); return *this;}
68 inline LoadPermissionModifications& AddRemove(const LoadPermissionRequest& value) { m_removeHasBeenSet = true; m_remove.push_back(value); return *this; }
69 inline LoadPermissionModifications& AddRemove(LoadPermissionRequest&& value) { m_removeHasBeenSet = true; m_remove.push_back(std::move(value)); return *this; }
71 private:
72
74 bool m_addHasBeenSet = false;
75
77 bool m_removeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API LoadPermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadPermissionModifications & WithRemove(const Aws::Vector< LoadPermissionRequest > &value)
LoadPermissionModifications & AddRemove(const LoadPermissionRequest &value)
LoadPermissionModifications & WithAdd(Aws::Vector< LoadPermissionRequest > &&value)
void SetRemove(Aws::Vector< LoadPermissionRequest > &&value)
void SetAdd(const Aws::Vector< LoadPermissionRequest > &value)
LoadPermissionModifications & WithAdd(const Aws::Vector< LoadPermissionRequest > &value)
LoadPermissionModifications & AddAdd(LoadPermissionRequest &&value)
const Aws::Vector< LoadPermissionRequest > & GetAdd() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetRemove(const Aws::Vector< LoadPermissionRequest > &value)
LoadPermissionModifications & AddRemove(LoadPermissionRequest &&value)
void SetAdd(Aws::Vector< LoadPermissionRequest > &&value)
LoadPermissionModifications & AddAdd(const LoadPermissionRequest &value)
const Aws::Vector< LoadPermissionRequest > & GetRemove() const
LoadPermissionModifications & WithRemove(Aws::Vector< LoadPermissionRequest > &&value)
AWS_EC2_API LoadPermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream