/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
The API identifier.
*/ inline const Aws::String& GetApiId() const{ return m_apiId; } /** *The API identifier.
*/ inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } /** *The API identifier.
*/ inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } /** *The API identifier.
*/ inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } /** *The API identifier.
*/ inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } /** *The API identifier.
*/ inline ReimportApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *The API identifier.
*/ inline ReimportApiRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} /** *The API identifier.
*/ inline ReimportApiRequest& WithApiId(const char* value) { SetApiId(value); return *this;} /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline const Aws::String& GetBasepath() const{ return m_basepath; } /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline bool BasepathHasBeenSet() const { return m_basepathHasBeenSet; } /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline void SetBasepath(const Aws::String& value) { m_basepathHasBeenSet = true; m_basepath = value; } /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline void SetBasepath(Aws::String&& value) { m_basepathHasBeenSet = true; m_basepath = std::move(value); } /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline void SetBasepath(const char* value) { m_basepathHasBeenSet = true; m_basepath.assign(value); } /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithBasepath(const Aws::String& value) { SetBasepath(value); return *this;} /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithBasepath(Aws::String&& value) { SetBasepath(std::move(value)); return *this;} /** *Specifies how to interpret the base path of the API during import. Valid * values are ignore, prepend, and split. The default value is ignore. To learn * more, see Set * the OpenAPI basePath Property. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithBasepath(const char* value) { SetBasepath(value); return *this;} /** *Specifies whether to rollback the API creation when a warning is encountered. * By default, API creation continues if a warning is encountered.
*/ inline bool GetFailOnWarnings() const{ return m_failOnWarnings; } /** *Specifies whether to rollback the API creation when a warning is encountered. * By default, API creation continues if a warning is encountered.
*/ inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; } /** *Specifies whether to rollback the API creation when a warning is encountered. * By default, API creation continues if a warning is encountered.
*/ inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; } /** *Specifies whether to rollback the API creation when a warning is encountered. * By default, API creation continues if a warning is encountered.
*/ inline ReimportApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;} /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline const Aws::String& GetRequestBody() const{ return m_requestBody; } /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline bool RequestBodyHasBeenSet() const { return m_requestBodyHasBeenSet; } /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; } /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = std::move(value); } /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); } /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;} /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(std::move(value)); return *this;} /** *The OpenAPI definition. Supported only for HTTP APIs.
*/ inline ReimportApiRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;} private: Aws::String m_apiId; bool m_apiIdHasBeenSet = false; Aws::String m_basepath; bool m_basepathHasBeenSet = false; bool m_failOnWarnings; bool m_failOnWarningsHasBeenSet = false; Aws::String m_requestBody; bool m_requestBodyHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws