/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Request to add a new Model to an existing RestApi
* resource.See Also:
AWS
* API Reference
[Required] The RestApi identifier under which the Model will be * created.
*/ inline const Aws::String& GetRestApiId() const{ return m_restApiId; } /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; } /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; } /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); } /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); } /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline CreateModelRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;} /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline CreateModelRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;} /** *[Required] The RestApi identifier under which the Model will be * created.
*/ inline CreateModelRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;} /** *[Required] The name of the model. Must be alphanumeric.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *[Required] The name of the model. Must be alphanumeric.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *[Required] The name of the model. Must be alphanumeric.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *[Required] The name of the model. Must be alphanumeric.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *[Required] The name of the model. Must be alphanumeric.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *[Required] The name of the model. Must be alphanumeric.
*/ inline CreateModelRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *[Required] The name of the model. Must be alphanumeric.
*/ inline CreateModelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *[Required] The name of the model. Must be alphanumeric.
*/ inline CreateModelRequest& WithName(const char* value) { SetName(value); return *this;} /** *The description of the model.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the model.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the model.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the model.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the model.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the model.
*/ inline CreateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the model.
*/ inline CreateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the model.
*/ inline CreateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
The schema for the model. For application/json models, this
* should be JSON schema draft 4 model.
[Required] The content-type for the model.
*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *[Required] The content-type for the model.
*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *[Required] The content-type for the model.
*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *[Required] The content-type for the model.
*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *[Required] The content-type for the model.
*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *[Required] The content-type for the model.
*/ inline CreateModelRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *[Required] The content-type for the model.
*/ inline CreateModelRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *[Required] The content-type for the model.
*/ inline CreateModelRequest& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::String m_restApiId; bool m_restApiIdHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_schema; bool m_schemaHasBeenSet; Aws::String m_contentType; bool m_contentTypeHasBeenSet; }; } // namespace Model } // namespace APIGateway } // namespace Aws