AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcAttachment.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/Attachment.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/model/VpcOptions.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkManager
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_NETWORKMANAGER_API VpcAttachment();
38 AWS_NETWORKMANAGER_API VpcAttachment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API VpcAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Attachment& GetAttachment() const{ return m_attachment; }
48 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
49 inline void SetAttachment(const Attachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; }
50 inline void SetAttachment(Attachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); }
51 inline VpcAttachment& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;}
52 inline VpcAttachment& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
60 inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
61 inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
62 inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
63 inline VpcAttachment& WithSubnetArns(const Aws::Vector<Aws::String>& value) { SetSubnetArns(value); return *this;}
64 inline VpcAttachment& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
65 inline VpcAttachment& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
66 inline VpcAttachment& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
67 inline VpcAttachment& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
69
71
74 inline const VpcOptions& GetOptions() const{ return m_options; }
75 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
76 inline void SetOptions(const VpcOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
77 inline void SetOptions(VpcOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
78 inline VpcAttachment& WithOptions(const VpcOptions& value) { SetOptions(value); return *this;}
79 inline VpcAttachment& WithOptions(VpcOptions&& value) { SetOptions(std::move(value)); return *this;}
81 private:
82
83 Attachment m_attachment;
84 bool m_attachmentHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_subnetArns;
87 bool m_subnetArnsHasBeenSet = false;
88
89 VpcOptions m_options;
90 bool m_optionsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace NetworkManager
95} // namespace Aws
VpcAttachment & WithAttachment(Attachment &&value)
AWS_NETWORKMANAGER_API VpcAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Attachment & GetAttachment() const
void SetSubnetArns(const Aws::Vector< Aws::String > &value)
VpcAttachment & AddSubnetArns(const Aws::String &value)
const VpcOptions & GetOptions() const
VpcAttachment & WithAttachment(const Attachment &value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
void SetOptions(const VpcOptions &value)
VpcAttachment & AddSubnetArns(const char *value)
VpcAttachment & WithSubnetArns(const Aws::Vector< Aws::String > &value)
void SetSubnetArns(Aws::Vector< Aws::String > &&value)
AWS_NETWORKMANAGER_API VpcAttachment()
VpcAttachment & WithSubnetArns(Aws::Vector< Aws::String > &&value)
VpcAttachment & AddSubnetArns(Aws::String &&value)
AWS_NETWORKMANAGER_API VpcAttachment(Aws::Utils::Json::JsonView jsonValue)
VpcAttachment & WithOptions(const VpcOptions &value)
void SetAttachment(const Attachment &value)
VpcAttachment & WithOptions(VpcOptions &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue