AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/glue/GlueRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glue
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
43 
48  inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
49 
54  inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
55 
60  inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
61 
66  inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
67 
72  inline UpdateConnectionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
73 
78  inline UpdateConnectionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
79 
84  inline UpdateConnectionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 
100  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 
105  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 
110  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 
115  inline UpdateConnectionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
116 
120  inline UpdateConnectionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 
125  inline UpdateConnectionRequest& WithName(const char* value) { SetName(value); return *this;}
126 
127 
132  inline const ConnectionInput& GetConnectionInput() const{ return m_connectionInput; }
133 
138  inline bool ConnectionInputHasBeenSet() const { return m_connectionInputHasBeenSet; }
139 
144  inline void SetConnectionInput(const ConnectionInput& value) { m_connectionInputHasBeenSet = true; m_connectionInput = value; }
145 
150  inline void SetConnectionInput(ConnectionInput&& value) { m_connectionInputHasBeenSet = true; m_connectionInput = std::move(value); }
151 
156  inline UpdateConnectionRequest& WithConnectionInput(const ConnectionInput& value) { SetConnectionInput(value); return *this;}
157 
162  inline UpdateConnectionRequest& WithConnectionInput(ConnectionInput&& value) { SetConnectionInput(std::move(value)); return *this;}
163 
164  private:
165 
166  Aws::String m_catalogId;
167  bool m_catalogIdHasBeenSet;
168 
169  Aws::String m_name;
170  bool m_nameHasBeenSet;
171 
172  ConnectionInput m_connectionInput;
173  bool m_connectionInputHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace Glue
178 } // namespace Aws
Aws::Glue::Model::UpdateConnectionRequest
Definition: UpdateConnectionRequest.h:23
Aws::Glue::Model::UpdateConnectionRequest::WithCatalogId
UpdateConnectionRequest & WithCatalogId(const char *value)
Definition: UpdateConnectionRequest.h:84
Aws::Glue::Model::UpdateConnectionRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateConnectionRequest.h:105
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glue::Model::UpdateConnectionRequest::WithName
UpdateConnectionRequest & WithName(Aws::String &&value)
Definition: UpdateConnectionRequest.h:120
Glue_EXPORTS.h
Aws::Glue::Model::UpdateConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glue::Model::UpdateConnectionRequest::SetName
void SetName(const char *value)
Definition: UpdateConnectionRequest.h:110
Aws::Glue::Model::UpdateConnectionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateConnectionRequest.h:95
Aws::Glue::Model::UpdateConnectionRequest::WithCatalogId
UpdateConnectionRequest & WithCatalogId(Aws::String &&value)
Definition: UpdateConnectionRequest.h:78
Aws::Glue::Model::UpdateConnectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glue::Model::UpdateConnectionRequest::SetCatalogId
void SetCatalogId(const Aws::String &value)
Definition: UpdateConnectionRequest.h:54
Aws::Glue::Model::UpdateConnectionRequest::WithName
UpdateConnectionRequest & WithName(const Aws::String &value)
Definition: UpdateConnectionRequest.h:115
Aws::Glue::Model::UpdateConnectionRequest::GetCatalogId
const Aws::String & GetCatalogId() const
Definition: UpdateConnectionRequest.h:42
Aws::Glue::Model::UpdateConnectionRequest::SetConnectionInput
void SetConnectionInput(const ConnectionInput &value)
Definition: UpdateConnectionRequest.h:144
AWS_GLUE_API
#define AWS_GLUE_API
Definition: Glue_EXPORTS.h:28
Aws::Glue::Model::UpdateConnectionRequest::UpdateConnectionRequest
UpdateConnectionRequest()
Aws::Glue::Model::UpdateConnectionRequest::WithName
UpdateConnectionRequest & WithName(const char *value)
Definition: UpdateConnectionRequest.h:125
Aws::Glue::Model::UpdateConnectionRequest::SetCatalogId
void SetCatalogId(Aws::String &&value)
Definition: UpdateConnectionRequest.h:60
AWSString.h
Aws::Glue::Model::UpdateConnectionRequest::GetName
const Aws::String & GetName() const
Definition: UpdateConnectionRequest.h:90
Aws::Glue::Model::UpdateConnectionRequest::GetConnectionInput
const ConnectionInput & GetConnectionInput() const
Definition: UpdateConnectionRequest.h:132
Aws::Glue::Model::UpdateConnectionRequest::WithCatalogId
UpdateConnectionRequest & WithCatalogId(const Aws::String &value)
Definition: UpdateConnectionRequest.h:72
Aws::Glue::Model::UpdateConnectionRequest::CatalogIdHasBeenSet
bool CatalogIdHasBeenSet() const
Definition: UpdateConnectionRequest.h:48
ConnectionInput.h
Aws::Glue::GlueRequest
Definition: GlueRequest.h:17
Aws::Glue::Model::UpdateConnectionRequest::SetConnectionInput
void SetConnectionInput(ConnectionInput &&value)
Definition: UpdateConnectionRequest.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glue::Model::UpdateConnectionRequest::ConnectionInputHasBeenSet
bool ConnectionInputHasBeenSet() const
Definition: UpdateConnectionRequest.h:138
Aws::Glue::Model::ConnectionInput
Definition: ConnectionInput.h:38
Aws::Glue::Model::UpdateConnectionRequest::WithConnectionInput
UpdateConnectionRequest & WithConnectionInput(ConnectionInput &&value)
Definition: UpdateConnectionRequest.h:162
Aws::Glue::Model::UpdateConnectionRequest::WithConnectionInput
UpdateConnectionRequest & WithConnectionInput(const ConnectionInput &value)
Definition: UpdateConnectionRequest.h:156
Aws::Glue::Model::UpdateConnectionRequest::SetCatalogId
void SetCatalogId(const char *value)
Definition: UpdateConnectionRequest.h:66
Aws::Glue::Model::UpdateConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateConnectionRequest.h:31
Aws::Glue::Model::UpdateConnectionRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateConnectionRequest.h:100
GlueRequest.h