This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-apigatewayv2/include/aws/apigatewayv2/model/UpdateModelRequest.h

315 lines
9.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
#include <aws/apigatewayv2/ApiGatewayV2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ApiGatewayV2
{
namespace Model
{
/**
* <p>Updates a Model.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/UpdateModelRequest">AWS
* API Reference</a></p>
*/
class AWS_APIGATEWAYV2_API UpdateModelRequest : public ApiGatewayV2Request
{
public:
UpdateModelRequest();
// 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 "UpdateModel"; }
Aws::String SerializePayload() const override;
/**
* <p>The API identifier.</p>
*/
inline const Aws::String& GetApiId() const{ return m_apiId; }
/**
* <p>The API identifier.</p>
*/
inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
/**
* <p>The API identifier.</p>
*/
inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
/**
* <p>The API identifier.</p>
*/
inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
/**
* <p>The API identifier.</p>
*/
inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
/**
* <p>The API identifier.</p>
*/
inline UpdateModelRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
/**
* <p>The API identifier.</p>
*/
inline UpdateModelRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
/**
* <p>The API identifier.</p>
*/
inline UpdateModelRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline UpdateModelRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline UpdateModelRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>The content-type for the model, for example, "application/json".</p>
*/
inline UpdateModelRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
/**
* <p>The description of the model.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the model.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the model.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the model.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the model.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the model.</p>
*/
inline UpdateModelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the model.</p>
*/
inline UpdateModelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the model.</p>
*/
inline UpdateModelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The model ID.</p>
*/
inline const Aws::String& GetModelId() const{ return m_modelId; }
/**
* <p>The model ID.</p>
*/
inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
/**
* <p>The model ID.</p>
*/
inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
/**
* <p>The model ID.</p>
*/
inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
/**
* <p>The model ID.</p>
*/
inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
/**
* <p>The model ID.</p>
*/
inline UpdateModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
/**
* <p>The model ID.</p>
*/
inline UpdateModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
/**
* <p>The model ID.</p>
*/
inline UpdateModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
/**
* <p>The name of the model.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the model.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the model.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the model.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the model.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the model.</p>
*/
inline UpdateModelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the model.</p>
*/
inline UpdateModelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the model.</p>
*/
inline UpdateModelRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline const Aws::String& GetSchema() const{ return m_schema; }
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline UpdateModelRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline UpdateModelRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>The schema for the model. For application/json models, this should be JSON
* schema draft 4 model.</p>
*/
inline UpdateModelRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
private:
Aws::String m_apiId;
bool m_apiIdHasBeenSet;
Aws::String m_contentType;
bool m_contentTypeHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_modelId;
bool m_modelIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_schema;
bool m_schemaHasBeenSet;
};
} // namespace Model
} // namespace ApiGatewayV2
} // namespace Aws