AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AttachmentT = Attachment>
50 void SetAttachment(AttachmentT&& value) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
51 template<typename AttachmentT = Attachment>
52 VpcAttachment& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(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 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
62 void SetSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::forward<SubnetArnsT>(value); }
63 template<typename SubnetArnsT = Aws::Vector<Aws::String>>
64 VpcAttachment& WithSubnetArns(SubnetArnsT&& value) { SetSubnetArns(std::forward<SubnetArnsT>(value)); return *this;}
65 template<typename SubnetArnsT = Aws::String>
66 VpcAttachment& AddSubnetArns(SubnetArnsT&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value)); return *this; }
68
70
73 inline const VpcOptions& GetOptions() const { return m_options; }
74 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
75 template<typename OptionsT = VpcOptions>
76 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
77 template<typename OptionsT = VpcOptions>
78 VpcAttachment& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
80 private:
81
82 Attachment m_attachment;
83 bool m_attachmentHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_subnetArns;
86 bool m_subnetArnsHasBeenSet = false;
87
88 VpcOptions m_options;
89 bool m_optionsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace NetworkManager
94} // namespace Aws
void SetSubnetArns(SubnetArnsT &&value)
AWS_NETWORKMANAGER_API VpcAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Attachment & GetAttachment() const
AWS_NETWORKMANAGER_API VpcAttachment()=default
VpcAttachment & AddSubnetArns(SubnetArnsT &&value)
const VpcOptions & GetOptions() const
void SetAttachment(AttachmentT &&value)
const Aws::Vector< Aws::String > & GetSubnetArns() const
VpcAttachment & WithAttachment(AttachmentT &&value)
VpcAttachment & WithSubnetArns(SubnetArnsT &&value)
AWS_NETWORKMANAGER_API VpcAttachment(Aws::Utils::Json::JsonView jsonValue)
VpcAttachment & WithOptions(OptionsT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue