AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateGatewayResponseRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/GatewayResponseType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigateway/model/PatchOperation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace APIGateway
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_APIGATEWAY_API UpdateGatewayResponseRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateGatewayResponse"; }
38
39 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
47 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
48 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
49 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
50 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
51 inline UpdateGatewayResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
52 inline UpdateGatewayResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
53 inline UpdateGatewayResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
55
57
60 inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
61 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
62 inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
63 inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
65 inline UpdateGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
67
69
74 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
75 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
76 inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
77 inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
80 inline UpdateGatewayResponseRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
81 inline UpdateGatewayResponseRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_restApiId;
86 bool m_restApiIdHasBeenSet = false;
87
88 GatewayResponseType m_responseType;
89 bool m_responseTypeHasBeenSet = false;
90
91 Aws::Vector<PatchOperation> m_patchOperations;
92 bool m_patchOperationsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace APIGateway
97} // namespace Aws
UpdateGatewayResponseRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateGatewayResponseRequest & WithRestApiId(Aws::String &&value)
UpdateGatewayResponseRequest & AddPatchOperations(PatchOperation &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateGatewayResponseRequest & WithResponseType(const GatewayResponseType &value)
UpdateGatewayResponseRequest & WithRestApiId(const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateGatewayResponseRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateGatewayResponseRequest & AddPatchOperations(const PatchOperation &value)
UpdateGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateGatewayResponseRequest & WithRestApiId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector