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-apigateway/include/aws/apigateway/model/CreateResourceRequest.h

176 lines
5.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/apigateway/APIGateway_EXPORTS.h>
#include <aws/apigateway/APIGatewayRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace APIGateway
{
namespace Model
{
/**
* <p>Requests API Gateway to create a <a>Resource</a> resource.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/CreateResourceRequest">AWS
* API Reference</a></p>
*/
class AWS_APIGATEWAY_API CreateResourceRequest : public APIGatewayRequest
{
public:
CreateResourceRequest();
// 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 "CreateResource"; }
Aws::String SerializePayload() const override;
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline CreateResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline CreateResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
/**
* <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
*/
inline CreateResourceRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline const Aws::String& GetParentId() const{ return m_parentId; }
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline CreateResourceRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline CreateResourceRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
/**
* <p>[Required] The parent resource's identifier.</p>
*/
inline CreateResourceRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
/**
* <p>The last path segment for this resource.</p>
*/
inline const Aws::String& GetPathPart() const{ return m_pathPart; }
/**
* <p>The last path segment for this resource.</p>
*/
inline bool PathPartHasBeenSet() const { return m_pathPartHasBeenSet; }
/**
* <p>The last path segment for this resource.</p>
*/
inline void SetPathPart(const Aws::String& value) { m_pathPartHasBeenSet = true; m_pathPart = value; }
/**
* <p>The last path segment for this resource.</p>
*/
inline void SetPathPart(Aws::String&& value) { m_pathPartHasBeenSet = true; m_pathPart = std::move(value); }
/**
* <p>The last path segment for this resource.</p>
*/
inline void SetPathPart(const char* value) { m_pathPartHasBeenSet = true; m_pathPart.assign(value); }
/**
* <p>The last path segment for this resource.</p>
*/
inline CreateResourceRequest& WithPathPart(const Aws::String& value) { SetPathPart(value); return *this;}
/**
* <p>The last path segment for this resource.</p>
*/
inline CreateResourceRequest& WithPathPart(Aws::String&& value) { SetPathPart(std::move(value)); return *this;}
/**
* <p>The last path segment for this resource.</p>
*/
inline CreateResourceRequest& WithPathPart(const char* value) { SetPathPart(value); return *this;}
private:
Aws::String m_restApiId;
bool m_restApiIdHasBeenSet;
Aws::String m_parentId;
bool m_parentIdHasBeenSet;
Aws::String m_pathPart;
bool m_pathPartHasBeenSet;
};
} // namespace Model
} // namespace APIGateway
} // namespace Aws