AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_EC2_API LaunchPermissionModifications() = default;
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 template<typename AddT = Aws::Vector<LaunchPermission>>
51 void SetAdd(AddT&& value) { m_addHasBeenSet = true; m_add = std::forward<AddT>(value); }
52 template<typename AddT = Aws::Vector<LaunchPermission>>
53 LaunchPermissionModifications& WithAdd(AddT&& value) { SetAdd(std::forward<AddT>(value)); return *this;}
54 template<typename AddT = LaunchPermission>
55 LaunchPermissionModifications& AddAdd(AddT&& value) { m_addHasBeenSet = true; m_add.emplace_back(std::forward<AddT>(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 template<typename RemoveT = Aws::Vector<LaunchPermission>>
66 void SetRemove(RemoveT&& value) { m_removeHasBeenSet = true; m_remove = std::forward<RemoveT>(value); }
67 template<typename RemoveT = Aws::Vector<LaunchPermission>>
68 LaunchPermissionModifications& WithRemove(RemoveT&& value) { SetRemove(std::forward<RemoveT>(value)); return *this;}
69 template<typename RemoveT = LaunchPermission>
70 LaunchPermissionModifications& AddRemove(RemoveT&& value) { m_removeHasBeenSet = true; m_remove.emplace_back(std::forward<RemoveT>(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(RemoveT &&value)
const Aws::Vector< LaunchPermission > & GetRemove() const
LaunchPermissionModifications & AddAdd(AddT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< LaunchPermission > & GetAdd() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchPermissionModifications & AddRemove(RemoveT &&value)
AWS_EC2_API LaunchPermissionModifications & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchPermissionModifications & WithAdd(AddT &&value)
AWS_EC2_API LaunchPermissionModifications(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream