237 lines
6.8 KiB
C++
237 lines
6.8 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/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ApiGatewayV2
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_APIGATEWAYV2_API GetModelResult
|
|
{
|
|
public:
|
|
GetModelResult();
|
|
GetModelResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetModelResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <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 void SetContentType(const Aws::String& value) { m_contentType = value; }
|
|
|
|
/**
|
|
* <p>The content-type for the model, for example, "application/json".</p>
|
|
*/
|
|
inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The content-type for the model, for example, "application/json".</p>
|
|
*/
|
|
inline void SetContentType(const char* value) { m_contentType.assign(value); }
|
|
|
|
/**
|
|
* <p>The content-type for the model, for example, "application/json".</p>
|
|
*/
|
|
inline GetModelResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The content-type for the model, for example, "application/json".</p>
|
|
*/
|
|
inline GetModelResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The content-type for the model, for example, "application/json".</p>
|
|
*/
|
|
inline GetModelResult& 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 void SetDescription(const Aws::String& value) { m_description = value; }
|
|
|
|
/**
|
|
* <p>The description of the model.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The description of the model.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The description of the model.</p>
|
|
*/
|
|
inline GetModelResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the model.</p>
|
|
*/
|
|
inline GetModelResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the model.</p>
|
|
*/
|
|
inline GetModelResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline const Aws::String& GetModelId() const{ return m_modelId; }
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline void SetModelId(const Aws::String& value) { m_modelId = value; }
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline void SetModelId(Aws::String&& value) { m_modelId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline void SetModelId(const char* value) { m_modelId.assign(value); }
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline GetModelResult& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline GetModelResult& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The model identifier.</p>
|
|
*/
|
|
inline GetModelResult& WithModelId(const char* value) { SetModelId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline GetModelResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline GetModelResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the model. Must be alphanumeric.</p>
|
|
*/
|
|
inline GetModelResult& 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 void SetSchema(const Aws::String& value) { 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_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_schema.assign(value); }
|
|
|
|
/**
|
|
* <p>The schema for the model. For application/json models, this should be JSON
|
|
* schema draft 4 model.</p>
|
|
*/
|
|
inline GetModelResult& 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 GetModelResult& 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 GetModelResult& WithSchema(const char* value) { SetSchema(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_contentType;
|
|
|
|
Aws::String m_description;
|
|
|
|
Aws::String m_modelId;
|
|
|
|
Aws::String m_name;
|
|
|
|
Aws::String m_schema;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ApiGatewayV2
|
|
} // namespace Aws
|