AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateConnectionRequest.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/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AwsLocation.h>
12#include <aws/datazone/model/Configuration.h>
13#include <aws/datazone/model/ConnectionPropertiesPatch.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API UpdateConnectionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnection"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
40 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
41 template <typename ConfigurationsT = Aws::Vector<Configuration>>
42 void SetConfigurations(ConfigurationsT&& value) {
43 m_configurationsHasBeenSet = true;
44 m_configurations = std::forward<ConfigurationsT>(value);
45 }
46 template <typename ConfigurationsT = Aws::Vector<Configuration>>
47 UpdateConnectionRequest& WithConfigurations(ConfigurationsT&& value) {
48 SetConfigurations(std::forward<ConfigurationsT>(value));
49 return *this;
50 }
51 template <typename ConfigurationsT = Configuration>
52 UpdateConnectionRequest& AddConfigurations(ConfigurationsT&& value) {
53 m_configurationsHasBeenSet = true;
54 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
64 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
65 template <typename DomainIdentifierT = Aws::String>
66 void SetDomainIdentifier(DomainIdentifierT&& value) {
67 m_domainIdentifierHasBeenSet = true;
68 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
69 }
70 template <typename DomainIdentifierT = Aws::String>
71 UpdateConnectionRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
72 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetIdentifier() const { return m_identifier; }
82 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
83 template <typename IdentifierT = Aws::String>
84 void SetIdentifier(IdentifierT&& value) {
85 m_identifierHasBeenSet = true;
86 m_identifier = std::forward<IdentifierT>(value);
87 }
88 template <typename IdentifierT = Aws::String>
90 SetIdentifier(std::forward<IdentifierT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
118 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
119 template <typename AwsLocationT = AwsLocation>
120 void SetAwsLocation(AwsLocationT&& value) {
121 m_awsLocationHasBeenSet = true;
122 m_awsLocation = std::forward<AwsLocationT>(value);
123 }
124 template <typename AwsLocationT = AwsLocation>
126 SetAwsLocation(std::forward<AwsLocationT>(value));
127 return *this;
128 }
130
132
135 inline const ConnectionPropertiesPatch& GetProps() const { return m_props; }
136 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
137 template <typename PropsT = ConnectionPropertiesPatch>
138 void SetProps(PropsT&& value) {
139 m_propsHasBeenSet = true;
140 m_props = std::forward<PropsT>(value);
141 }
142 template <typename PropsT = ConnectionPropertiesPatch>
144 SetProps(std::forward<PropsT>(value));
145 return *this;
146 }
148 private:
149 Aws::Vector<Configuration> m_configurations;
150
151 Aws::String m_domainIdentifier;
152
153 Aws::String m_identifier;
154
155 Aws::String m_description;
156
157 AwsLocation m_awsLocation;
158
160 bool m_configurationsHasBeenSet = false;
161 bool m_domainIdentifierHasBeenSet = false;
162 bool m_identifierHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_awsLocationHasBeenSet = false;
165 bool m_propsHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace DataZone
170} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Configuration > & GetConfigurations() const
UpdateConnectionRequest & WithConfigurations(ConfigurationsT &&value)
const ConnectionPropertiesPatch & GetProps() const
UpdateConnectionRequest & WithProps(PropsT &&value)
UpdateConnectionRequest & AddConfigurations(ConfigurationsT &&value)
UpdateConnectionRequest & WithAwsLocation(AwsLocationT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateConnectionRequest & WithDomainIdentifier(DomainIdentifierT &&value)
UpdateConnectionRequest & WithIdentifier(IdentifierT &&value)
AWS_DATAZONE_API UpdateConnectionRequest()=default
UpdateConnectionRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector