AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateConnectionRequest.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 CreateConnectionRequest();
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 "CreateConnection"; }
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& GetLocation() const{ return m_location; }
44 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
45 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
46 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
47 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
48 inline CreateConnectionRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
49 inline CreateConnectionRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
50 inline CreateConnectionRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
52
54
57 inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
58 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
59 inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
60 inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); }
61 inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
62 inline CreateConnectionRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
63 inline CreateConnectionRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;}
64 inline CreateConnectionRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
66
68
71 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
72 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
73 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
74 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
75 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
76 inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
77 inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
78 inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
80
82
85 inline const Aws::String& GetLagId() const{ return m_lagId; }
86 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
87 inline void SetLagId(const Aws::String& value) { m_lagIdHasBeenSet = true; m_lagId = value; }
88 inline void SetLagId(Aws::String&& value) { m_lagIdHasBeenSet = true; m_lagId = std::move(value); }
89 inline void SetLagId(const char* value) { m_lagIdHasBeenSet = true; m_lagId.assign(value); }
90 inline CreateConnectionRequest& WithLagId(const Aws::String& value) { SetLagId(value); return *this;}
91 inline CreateConnectionRequest& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;}
92 inline CreateConnectionRequest& WithLagId(const char* value) { SetLagId(value); return *this;}
94
96
99 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
102 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
103 inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
105 inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
106 inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
108
110
114 inline const Aws::String& GetProviderName() const{ return m_providerName; }
115 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
116 inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
117 inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
118 inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
119 inline CreateConnectionRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
120 inline CreateConnectionRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
121 inline CreateConnectionRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
123
125
132 inline bool GetRequestMACSec() const{ return m_requestMACSec; }
133 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
134 inline void SetRequestMACSec(bool value) { m_requestMACSecHasBeenSet = true; m_requestMACSec = value; }
135 inline CreateConnectionRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;}
137 private:
138
139 Aws::String m_location;
140 bool m_locationHasBeenSet = false;
141
142 Aws::String m_bandwidth;
143 bool m_bandwidthHasBeenSet = false;
144
145 Aws::String m_connectionName;
146 bool m_connectionNameHasBeenSet = false;
147
148 Aws::String m_lagId;
149 bool m_lagIdHasBeenSet = false;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_tagsHasBeenSet = false;
153
154 Aws::String m_providerName;
155 bool m_providerNameHasBeenSet = false;
156
157 bool m_requestMACSec;
158 bool m_requestMACSecHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace DirectConnect
163} // namespace Aws
CreateConnectionRequest & WithLagId(const char *value)
CreateConnectionRequest & WithLocation(const Aws::String &value)
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectionRequest & WithRequestMACSec(bool value)
CreateConnectionRequest & WithLagId(const Aws::String &value)
CreateConnectionRequest & AddTags(const Tag &value)
CreateConnectionRequest & WithProviderName(Aws::String &&value)
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateConnectionRequest & WithConnectionName(Aws::String &&value)
CreateConnectionRequest & WithLocation(Aws::String &&value)
CreateConnectionRequest & WithBandwidth(const Aws::String &value)
CreateConnectionRequest & WithLocation(const char *value)
CreateConnectionRequest & WithProviderName(const Aws::String &value)
CreateConnectionRequest & WithConnectionName(const char *value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithLagId(Aws::String &&value)
CreateConnectionRequest & WithProviderName(const char *value)
CreateConnectionRequest & WithConnectionName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithBandwidth(const char *value)
CreateConnectionRequest & WithBandwidth(Aws::String &&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