AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
PostToConnectionRequest.h
1
6#pragma once
7#include <aws/apigatewaymanagementapi/ApiGatewayManagementApiRequest.h>
8#include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_EXPORTS.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ApiGatewayManagementApi {
16namespace Model {
17
21 public:
22 AWS_APIGATEWAYMANAGEMENTAPI_API PostToConnectionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PostToConnection"; }
29
31
34 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
35 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
36 template <typename ConnectionIdT = Aws::String>
37 void SetConnectionId(ConnectionIdT&& value) {
38 m_connectionIdHasBeenSet = true;
39 m_connectionId = std::forward<ConnectionIdT>(value);
40 }
41 template <typename ConnectionIdT = Aws::String>
42 PostToConnectionRequest& WithConnectionId(ConnectionIdT&& value) {
43 SetConnectionId(std::forward<ConnectionIdT>(value));
44 return *this;
45 }
47 private:
48 Aws::String m_connectionId;
49 bool m_connectionIdHasBeenSet = false;
50};
51
52} // namespace Model
53} // namespace ApiGatewayManagementApi
54} // namespace Aws
PostToConnectionRequest & WithConnectionId(ConnectionIdT &&value)
AWS_APIGATEWAYMANAGEMENTAPI_API PostToConnectionRequest()=default
bool ConnectionIdHasBeenSet() const
void SetConnectionId(ConnectionIdT &&value)
const Aws::String & GetConnectionId() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String