AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInterconnectName(const Aws::String& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; }
46 inline void SetInterconnectName(Aws::String&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = std::move(value); }
47 inline void SetInterconnectName(const char* value) { m_interconnectNameHasBeenSet = true; m_interconnectName.assign(value); }
49 inline CreateInterconnectRequest& WithInterconnectName(Aws::String&& value) { SetInterconnectName(std::move(value)); return *this;}
50 inline CreateInterconnectRequest& WithInterconnectName(const char* value) { SetInterconnectName(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 CreateInterconnectRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
63 inline CreateInterconnectRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;}
64 inline CreateInterconnectRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
66
68
71 inline const Aws::String& GetLocation() const{ return m_location; }
72 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
73 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
74 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
75 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
76 inline CreateInterconnectRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
77 inline CreateInterconnectRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
78 inline CreateInterconnectRequest& WithLocation(const char* value) { SetLocation(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 CreateInterconnectRequest& WithLagId(const Aws::String& value) { SetLagId(value); return *this;}
91 inline CreateInterconnectRequest& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;}
92 inline CreateInterconnectRequest& 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 CreateInterconnectRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
104 inline CreateInterconnectRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
105 inline CreateInterconnectRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
106 inline CreateInterconnectRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
108
110
113 inline const Aws::String& GetProviderName() const{ return m_providerName; }
114 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
115 inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
116 inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
117 inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
118 inline CreateInterconnectRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
119 inline CreateInterconnectRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
120 inline CreateInterconnectRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
122 private:
123
124 Aws::String m_interconnectName;
125 bool m_interconnectNameHasBeenSet = false;
126
127 Aws::String m_bandwidth;
128 bool m_bandwidthHasBeenSet = false;
129
130 Aws::String m_location;
131 bool m_locationHasBeenSet = false;
132
133 Aws::String m_lagId;
134 bool m_lagIdHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138
139 Aws::String m_providerName;
140 bool m_providerNameHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace DirectConnect
145} // namespace Aws
CreateInterconnectRequest & WithInterconnectName(const char *value)
CreateInterconnectRequest & WithLagId(const Aws::String &value)
CreateInterconnectRequest & WithBandwidth(Aws::String &&value)
CreateInterconnectRequest & WithLocation(const char *value)
CreateInterconnectRequest & WithProviderName(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInterconnectRequest & WithLagId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateInterconnectRequest & AddTags(const Tag &value)
CreateInterconnectRequest & WithInterconnectName(const Aws::String &value)
CreateInterconnectRequest & WithProviderName(const char *value)
CreateInterconnectRequest & WithProviderName(const Aws::String &value)
CreateInterconnectRequest & WithBandwidth(const char *value)
CreateInterconnectRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInterconnectRequest & WithLocation(Aws::String &&value)
CreateInterconnectRequest & WithInterconnectName(Aws::String &&value)
CreateInterconnectRequest & WithBandwidth(const Aws::String &value)
CreateInterconnectRequest & WithLagId(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateInterconnectRequest & WithLocation(const Aws::String &value)
CreateInterconnectRequest & WithTags(const Aws::Vector< Tag > &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