AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
ImportDocumentationPartsRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PutMode.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API ImportDocumentationPartsRequest() = default;
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 "ImportDocumentationParts"; }
37
38 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
45 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
46 template <typename RestApiIdT = Aws::String>
47 void SetRestApiId(RestApiIdT&& value) {
48 m_restApiIdHasBeenSet = true;
49 m_restApiId = std::forward<RestApiIdT>(value);
50 }
51 template <typename RestApiIdT = Aws::String>
53 SetRestApiId(std::forward<RestApiIdT>(value));
54 return *this;
55 }
57
59
65 inline PutMode GetMode() const { return m_mode; }
66 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
67 inline void SetMode(PutMode value) {
68 m_modeHasBeenSet = true;
69 m_mode = value;
70 }
72 SetMode(value);
73 return *this;
74 }
76
78
83 inline bool GetFailOnWarnings() const { return m_failOnWarnings; }
84 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
85 inline void SetFailOnWarnings(bool value) {
86 m_failOnWarningsHasBeenSet = true;
87 m_failOnWarnings = value;
88 }
90 SetFailOnWarnings(value);
91 return *this;
92 }
94 private:
95 Aws::String m_restApiId;
96
98
99 bool m_failOnWarnings{false};
100
101 bool m_restApiIdHasBeenSet = false;
102 bool m_modeHasBeenSet = false;
103 bool m_failOnWarningsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace APIGateway
108} // namespace Aws
AWS_APIGATEWAY_API ImportDocumentationPartsRequest()=default
ImportDocumentationPartsRequest & WithMode(PutMode value)
ImportDocumentationPartsRequest & WithRestApiId(RestApiIdT &&value)
ImportDocumentationPartsRequest & WithFailOnWarnings(bool value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String