AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchPermissionModifications.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/LaunchPermission.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
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::Vector<LaunchPermission>& GetAdd() const{ return m_add; }
49 inline bool AddHasBeenSet() const { return m_addHasBeenSet; }
50 inline void SetAdd(const Aws::Vector<LaunchPermission>& value) { m_addHasBeenSet = true; m_add = value; }
51 inline void SetAdd(Aws::Vector<LaunchPermission>&& value) { m_addHasBeenSet = true; m_add = std::move(value); }
52 inline LaunchPermissionModifications& WithAdd(const Aws::Vector<LaunchPermission>& value) { SetAdd(value); return *this;}
53 inline LaunchPermissionModifications& WithAdd(Aws::Vector<LaunchPermission>&& value) { SetAdd(std::move(value)); return *this;}
54 inline LaunchPermissionModifications& AddAdd(const LaunchPermission& value) { m_addHasBeenSet = true; m_add.push_back(value); return *this; }
55 inline LaunchPermissionModifications& AddAdd(LaunchPermission&& value) { m_addHasBeenSet = true; m_add.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::Vector<LaunchPermission>& GetRemove() const{ return m_remove; }
64 inline bool RemoveHasBeenSet() const { return m_removeHasBeenSet; }
65 inline void SetRemove(const Aws::Vector<LaunchPermission>& value) { m_removeHasBeenSet = true; m_remove = value; }
66 inline void SetRemove(Aws::Vector<LaunchPermission>&& value) { m_removeHasBeenSet = true; m_remove = std::move(value); }
68 inline LaunchPermissionModifications& WithRemove(Aws::Vector<LaunchPermission>&& value) { SetRemove(std::move(value)); return *this;}
69 inline LaunchPermissionModifications& AddRemove(const LaunchPermission& value) { m_removeHasBeenSet = true; m_remove.push_back(value); return *this; }
70 inline LaunchPermissionModifications& AddRemove(LaunchPermission&& 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
LaunchPermissionModifications & WithRemove(const Aws::Vector< LaunchPermission > &value)
void SetRemove(Aws::Vector< LaunchPermission > &&value)
LaunchPermissionModifications & AddAdd(const LaunchPermission &value)
LaunchPermissionModifications & WithAdd(const Aws::Vector< LaunchPermission > &value)
const Aws::Vector< LaunchPermission > & GetRemove() const
void SetAdd(Aws::Vector< LaunchPermission > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRemove(const Aws::Vector< LaunchPermission > &value)
const Aws::Vector< LaunchPermission > & GetAdd() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchPermissionModifications & WithAdd(Aws::Vector< LaunchPermission > &&value)
AWS_EC2_API LaunchPermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchPermissionModifications & WithRemove(Aws::Vector< LaunchPermission > &&value)
LaunchPermissionModifications & AddRemove(LaunchPermission &&value)
void SetAdd(const Aws::Vector< LaunchPermission > &value)
LaunchPermissionModifications & AddAdd(LaunchPermission &&value)
AWS_EC2_API LaunchPermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchPermissionModifications & AddRemove(const LaunchPermission &value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream