AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateModelRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/PatchOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API UpdateModelRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateModel"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline UpdateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline UpdateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline UpdateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
59 inline const Aws::String& GetModelName() const{ return m_modelName; }
60 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
61 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
62 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
63 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
64 inline UpdateModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
65 inline UpdateModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
66 inline UpdateModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
68
70
75 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
76 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
77 inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
78 inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
80 inline UpdateModelRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
81 inline UpdateModelRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
82 inline UpdateModelRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_restApiId;
87 bool m_restApiIdHasBeenSet = false;
88
89 Aws::String m_modelName;
90 bool m_modelNameHasBeenSet = false;
91
92 Aws::Vector<PatchOperation> m_patchOperations;
93 bool m_patchOperationsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace APIGateway
98} // namespace Aws
UpdateModelRequest & WithModelName(const char *value)
UpdateModelRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetRestApiId(const Aws::String &value)
UpdateModelRequest & WithRestApiId(Aws::String &&value)
void SetModelName(const Aws::String &value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateModelRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateModelRequest & AddPatchOperations(const PatchOperation &value)
UpdateModelRequest & AddPatchOperations(PatchOperation &&value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
virtual const char * GetServiceRequestName() const override
UpdateModelRequest & WithModelName(Aws::String &&value)
UpdateModelRequest & WithRestApiId(const Aws::String &value)
UpdateModelRequest & WithModelName(const Aws::String &value)
UpdateModelRequest & WithRestApiId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector