AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
VpcAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/Attachment.h>
11#include <aws/networkmanager/model/VpcOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager {
23namespace Model {
24
31 public:
32 AWS_NETWORKMANAGER_API VpcAttachment() = default;
33 AWS_NETWORKMANAGER_API VpcAttachment(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API VpcAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Attachment& GetAttachment() const { return m_attachment; }
42 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
43 template <typename AttachmentT = Attachment>
44 void SetAttachment(AttachmentT&& value) {
45 m_attachmentHasBeenSet = true;
46 m_attachment = std::forward<AttachmentT>(value);
47 }
48 template <typename AttachmentT = Attachment>
49 VpcAttachment& WithAttachment(AttachmentT&& value) {
50 SetAttachment(std::forward<AttachmentT>(value));
51 return *this;
52 }
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) {
63 m_subnetArnsHasBeenSet = true;
64 m_subnetArns = std::forward<SubnetArnsT>(value);
65 }
66 template <typename SubnetArnsT = Aws::Vector<Aws::String>>
67 VpcAttachment& WithSubnetArns(SubnetArnsT&& value) {
68 SetSubnetArns(std::forward<SubnetArnsT>(value));
69 return *this;
70 }
71 template <typename SubnetArnsT = Aws::String>
72 VpcAttachment& AddSubnetArns(SubnetArnsT&& value) {
73 m_subnetArnsHasBeenSet = true;
74 m_subnetArns.emplace_back(std::forward<SubnetArnsT>(value));
75 return *this;
76 }
78
80
83 inline const VpcOptions& GetOptions() const { return m_options; }
84 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
85 template <typename OptionsT = VpcOptions>
86 void SetOptions(OptionsT&& value) {
87 m_optionsHasBeenSet = true;
88 m_options = std::forward<OptionsT>(value);
89 }
90 template <typename OptionsT = VpcOptions>
91 VpcAttachment& WithOptions(OptionsT&& value) {
92 SetOptions(std::forward<OptionsT>(value));
93 return *this;
94 }
96 private:
97 Attachment m_attachment;
98
99 Aws::Vector<Aws::String> m_subnetArns;
100
101 VpcOptions m_options;
102 bool m_attachmentHasBeenSet = false;
103 bool m_subnetArnsHasBeenSet = false;
104 bool m_optionsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace NetworkManager
109} // 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