/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace APIGateway { namespace Model { /** *

Import documentation parts from an external (e.g., OpenAPI) definition file. *

See Also:

AWS * API Reference

*/ class ImportDocumentationPartsRequest : public StreamingAPIGatewayRequest { public: AWS_APIGATEWAY_API ImportDocumentationPartsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ImportDocumentationParts"; } AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The string identifier of the associated RestApi.

*/ inline const Aws::String& GetRestApiId() const{ return m_restApiId; } /** *

The string identifier of the associated RestApi.

*/ inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; } /** *

The string identifier of the associated RestApi.

*/ inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; } /** *

The string identifier of the associated RestApi.

*/ inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); } /** *

The string identifier of the associated RestApi.

*/ inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); } /** *

The string identifier of the associated RestApi.

*/ inline ImportDocumentationPartsRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;} /** *

The string identifier of the associated RestApi.

*/ inline ImportDocumentationPartsRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;} /** *

The string identifier of the associated RestApi.

*/ inline ImportDocumentationPartsRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;} /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline const PutMode& GetMode() const{ return m_mode; } /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline void SetMode(const PutMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline void SetMode(PutMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline ImportDocumentationPartsRequest& WithMode(const PutMode& value) { SetMode(value); return *this;} /** *

A query parameter to indicate whether to overwrite (OVERWRITE) * any existing DocumentationParts definition or to merge (MERGE) the * new definition into the existing one. The default value is * MERGE.

*/ inline ImportDocumentationPartsRequest& WithMode(PutMode&& value) { SetMode(std::move(value)); return *this;} /** *

A query parameter to specify whether to rollback the documentation * importation (true) or not (false) when a warning is * encountered. The default value is false.

*/ inline bool GetFailOnWarnings() const{ return m_failOnWarnings; } /** *

A query parameter to specify whether to rollback the documentation * importation (true) or not (false) when a warning is * encountered. The default value is false.

*/ inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; } /** *

A query parameter to specify whether to rollback the documentation * importation (true) or not (false) when a warning is * encountered. The default value is false.

*/ inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; } /** *

A query parameter to specify whether to rollback the documentation * importation (true) or not (false) when a warning is * encountered. The default value is false.

*/ inline ImportDocumentationPartsRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;} private: Aws::String m_restApiId; bool m_restApiIdHasBeenSet = false; PutMode m_mode; bool m_modeHasBeenSet = false; bool m_failOnWarnings; bool m_failOnWarningsHasBeenSet = false; }; } // namespace Model } // namespace APIGateway } // namespace Aws