/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace APIGateway
{
namespace Model
{
/**
* The POST request to import API keys from an external source, such as a
* CSV-formatted file.
See Also:
AWS
* API Reference
*/
class ImportApiKeysRequest : public StreamingAPIGatewayRequest
{
public:
AWS_APIGATEWAY_API ImportApiKeysRequest();
// 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 "ImportApiKeys"; }
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline const ApiKeysFormat& GetFormat() const{ return m_format; }
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline void SetFormat(const ApiKeysFormat& value) { m_formatHasBeenSet = true; m_format = value; }
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline void SetFormat(ApiKeysFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline ImportApiKeysRequest& WithFormat(const ApiKeysFormat& value) { SetFormat(value); return *this;}
/**
* A query parameter to specify the input format to imported API keys.
* Currently, only the csv
format is supported.
*/
inline ImportApiKeysRequest& WithFormat(ApiKeysFormat&& value) { SetFormat(std::move(value)); return *this;}
/**
* A query parameter to indicate whether to rollback ApiKey importation
* (true
) or not (false
) when error is encountered.
*/
inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
/**
* A query parameter to indicate whether to rollback ApiKey importation
* (true
) or not (false
) when error is encountered.
*/
inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
/**
* A query parameter to indicate whether to rollback ApiKey importation
* (true
) or not (false
) when error is encountered.
*/
inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
/**
* A query parameter to indicate whether to rollback ApiKey importation
* (true
) or not (false
) when error is encountered.
*/
inline ImportApiKeysRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
private:
ApiKeysFormat m_format;
bool m_formatHasBeenSet = false;
bool m_failOnWarnings;
bool m_failOnWarningsHasBeenSet = false;
};
} // namespace Model
} // namespace APIGateway
} // namespace Aws