AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
CreateVpcLinkRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
28 public:
29 AWS_APIGATEWAY_API CreateVpcLinkRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcLink"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 CreateVpcLinkRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Vector<Aws::String>& GetTargetArns() const { return m_targetArns; }
82 inline bool TargetArnsHasBeenSet() const { return m_targetArnsHasBeenSet; }
83 template <typename TargetArnsT = Aws::Vector<Aws::String>>
84 void SetTargetArns(TargetArnsT&& value) {
85 m_targetArnsHasBeenSet = true;
86 m_targetArns = std::forward<TargetArnsT>(value);
87 }
88 template <typename TargetArnsT = Aws::Vector<Aws::String>>
89 CreateVpcLinkRequest& WithTargetArns(TargetArnsT&& value) {
90 SetTargetArns(std::forward<TargetArnsT>(value));
91 return *this;
92 }
93 template <typename TargetArnsT = Aws::String>
94 CreateVpcLinkRequest& AddTargetArns(TargetArnsT&& value) {
95 m_targetArnsHasBeenSet = true;
96 m_targetArns.emplace_back(std::forward<TargetArnsT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
120 CreateVpcLinkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_name;
128
129 Aws::String m_description;
130
131 Aws::Vector<Aws::String> m_targetArns;
132
134 bool m_nameHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136 bool m_targetArnsHasBeenSet = false;
137 bool m_tagsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace APIGateway
142} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector