AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateInterconnectRequest.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/directconnect/DirectConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DirectConnect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DIRECTCONNECT_API CreateInterconnectRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateInterconnect"; }
33
34 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetInterconnectName() const { return m_interconnectName; }
44 inline bool InterconnectNameHasBeenSet() const { return m_interconnectNameHasBeenSet; }
45 template<typename InterconnectNameT = Aws::String>
46 void SetInterconnectName(InterconnectNameT&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = std::forward<InterconnectNameT>(value); }
47 template<typename InterconnectNameT = Aws::String>
48 CreateInterconnectRequest& WithInterconnectName(InterconnectNameT&& value) { SetInterconnectName(std::forward<InterconnectNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
56 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
57 template<typename BandwidthT = Aws::String>
58 void SetBandwidth(BandwidthT&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::forward<BandwidthT>(value); }
59 template<typename BandwidthT = Aws::String>
60 CreateInterconnectRequest& WithBandwidth(BandwidthT&& value) { SetBandwidth(std::forward<BandwidthT>(value)); return *this;}
62
64
67 inline const Aws::String& GetLocation() const { return m_location; }
68 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
69 template<typename LocationT = Aws::String>
70 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
71 template<typename LocationT = Aws::String>
72 CreateInterconnectRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
74
76
79 inline const Aws::String& GetLagId() const { return m_lagId; }
80 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
81 template<typename LagIdT = Aws::String>
82 void SetLagId(LagIdT&& value) { m_lagIdHasBeenSet = true; m_lagId = std::forward<LagIdT>(value); }
83 template<typename LagIdT = Aws::String>
84 CreateInterconnectRequest& WithLagId(LagIdT&& value) { SetLagId(std::forward<LagIdT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateInterconnectRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateInterconnectRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100
102
105 inline const Aws::String& GetProviderName() const { return m_providerName; }
106 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
107 template<typename ProviderNameT = Aws::String>
108 void SetProviderName(ProviderNameT&& value) { m_providerNameHasBeenSet = true; m_providerName = std::forward<ProviderNameT>(value); }
109 template<typename ProviderNameT = Aws::String>
110 CreateInterconnectRequest& WithProviderName(ProviderNameT&& value) { SetProviderName(std::forward<ProviderNameT>(value)); return *this;}
112 private:
113
114 Aws::String m_interconnectName;
115 bool m_interconnectNameHasBeenSet = false;
116
117 Aws::String m_bandwidth;
118 bool m_bandwidthHasBeenSet = false;
119
120 Aws::String m_location;
121 bool m_locationHasBeenSet = false;
122
123 Aws::String m_lagId;
124 bool m_lagIdHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128
129 Aws::String m_providerName;
130 bool m_providerNameHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace DirectConnect
135} // namespace Aws
CreateInterconnectRequest & WithProviderName(ProviderNameT &&value)
CreateInterconnectRequest & WithInterconnectName(InterconnectNameT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInterconnectRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateInterconnectRequest & WithBandwidth(BandwidthT &&value)
CreateInterconnectRequest & WithTags(TagsT &&value)
AWS_DIRECTCONNECT_API CreateInterconnectRequest()=default
CreateInterconnectRequest & WithLagId(LagIdT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateInterconnectRequest & WithLocation(LocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector