feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,242 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/cur/CostandUsageReportServiceErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/cur/model/DeleteReportDefinitionResult.h>
#include <aws/cur/model/DescribeReportDefinitionsResult.h>
#include <aws/cur/model/ModifyReportDefinitionResult.h>
#include <aws/cur/model/PutReportDefinitionResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace CostandUsageReportService
{
namespace Model
{
class DeleteReportDefinitionRequest;
class DescribeReportDefinitionsRequest;
class ModifyReportDefinitionRequest;
class PutReportDefinitionRequest;
typedef Aws::Utils::Outcome<DeleteReportDefinitionResult, CostandUsageReportServiceError> DeleteReportDefinitionOutcome;
typedef Aws::Utils::Outcome<DescribeReportDefinitionsResult, CostandUsageReportServiceError> DescribeReportDefinitionsOutcome;
typedef Aws::Utils::Outcome<ModifyReportDefinitionResult, CostandUsageReportServiceError> ModifyReportDefinitionOutcome;
typedef Aws::Utils::Outcome<PutReportDefinitionResult, CostandUsageReportServiceError> PutReportDefinitionOutcome;
typedef std::future<DeleteReportDefinitionOutcome> DeleteReportDefinitionOutcomeCallable;
typedef std::future<DescribeReportDefinitionsOutcome> DescribeReportDefinitionsOutcomeCallable;
typedef std::future<ModifyReportDefinitionOutcome> ModifyReportDefinitionOutcomeCallable;
typedef std::future<PutReportDefinitionOutcome> PutReportDefinitionOutcomeCallable;
} // namespace Model
class CostandUsageReportServiceClient;
typedef std::function<void(const CostandUsageReportServiceClient*, const Model::DeleteReportDefinitionRequest&, const Model::DeleteReportDefinitionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteReportDefinitionResponseReceivedHandler;
typedef std::function<void(const CostandUsageReportServiceClient*, const Model::DescribeReportDefinitionsRequest&, const Model::DescribeReportDefinitionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeReportDefinitionsResponseReceivedHandler;
typedef std::function<void(const CostandUsageReportServiceClient*, const Model::ModifyReportDefinitionRequest&, const Model::ModifyReportDefinitionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ModifyReportDefinitionResponseReceivedHandler;
typedef std::function<void(const CostandUsageReportServiceClient*, const Model::PutReportDefinitionRequest&, const Model::PutReportDefinitionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PutReportDefinitionResponseReceivedHandler;
/**
* <p>The AWS Cost and Usage Report API enables you to programmatically create,
* query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and
* Usage reports track the monthly AWS costs and usage associated with your AWS
* account. The report contains line items for each unique combination of AWS
* product, usage type, and operation that your AWS account uses. You can configure
* the AWS Cost and Usage report to show only the data that you want, using the AWS
* Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report
* API provides the following endpoint:</p> <ul> <li>
* <p>cur.us-east-1.amazonaws.com</p> </li> </ul>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API CostandUsageReportServiceClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
CostandUsageReportServiceClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
CostandUsageReportServiceClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
CostandUsageReportServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~CostandUsageReportServiceClient();
/**
* <p>Deletes the specified report.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition">AWS
* API Reference</a></p>
*/
virtual Model::DeleteReportDefinitionOutcome DeleteReportDefinition(const Model::DeleteReportDefinitionRequest& request) const;
/**
* <p>Deletes the specified report.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteReportDefinitionOutcomeCallable DeleteReportDefinitionCallable(const Model::DeleteReportDefinitionRequest& request) const;
/**
* <p>Deletes the specified report.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteReportDefinitionAsync(const Model::DeleteReportDefinitionRequest& request, const DeleteReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the AWS Cost and Usage reports available to this account.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions">AWS
* API Reference</a></p>
*/
virtual Model::DescribeReportDefinitionsOutcome DescribeReportDefinitions(const Model::DescribeReportDefinitionsRequest& request) const;
/**
* <p>Lists the AWS Cost and Usage reports available to this account.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeReportDefinitionsOutcomeCallable DescribeReportDefinitionsCallable(const Model::DescribeReportDefinitionsRequest& request) const;
/**
* <p>Lists the AWS Cost and Usage reports available to this account.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeReportDefinitionsAsync(const Model::DescribeReportDefinitionsRequest& request, const DescribeReportDefinitionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Allows you to programatically update your report preferences.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition">AWS
* API Reference</a></p>
*/
virtual Model::ModifyReportDefinitionOutcome ModifyReportDefinition(const Model::ModifyReportDefinitionRequest& request) const;
/**
* <p>Allows you to programatically update your report preferences.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ModifyReportDefinitionOutcomeCallable ModifyReportDefinitionCallable(const Model::ModifyReportDefinitionRequest& request) const;
/**
* <p>Allows you to programatically update your report preferences.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ModifyReportDefinitionAsync(const Model::ModifyReportDefinitionRequest& request, const ModifyReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Creates a new report using the description that you provide.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition">AWS
* API Reference</a></p>
*/
virtual Model::PutReportDefinitionOutcome PutReportDefinition(const Model::PutReportDefinitionRequest& request) const;
/**
* <p>Creates a new report using the description that you provide.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::PutReportDefinitionOutcomeCallable PutReportDefinitionCallable(const Model::PutReportDefinitionRequest& request) const;
/**
* <p>Creates a new report using the description that you provide.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void PutReportDefinitionAsync(const Model::PutReportDefinitionRequest& request, const PutReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void DeleteReportDefinitionAsyncHelper(const Model::DeleteReportDefinitionRequest& request, const DeleteReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeReportDefinitionsAsyncHelper(const Model::DescribeReportDefinitionsRequest& request, const DescribeReportDefinitionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ModifyReportDefinitionAsyncHelper(const Model::ModifyReportDefinitionRequest& request, const ModifyReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void PutReportDefinitionAsyncHelper(const Model::PutReportDefinitionRequest& request, const PutReportDefinitionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace CostandUsageReportServiceEndpoint
{
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CostandUsageReportServiceEndpoint
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_COSTANDUSAGEREPORTSERVICE_API CostandUsageReportServiceErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
namespace Aws
{
namespace CostandUsageReportService
{
enum class CostandUsageReportServiceErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
DUPLICATE_REPORT_NAME= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_ERROR,
REPORT_LIMIT_REACHED
};
class AWS_COSTANDUSAGEREPORTSERVICE_API CostandUsageReportServiceError : public Aws::Client::AWSError<CostandUsageReportServiceErrors>
{
public:
CostandUsageReportServiceError() {}
CostandUsageReportServiceError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CostandUsageReportServiceErrors>(rhs) {}
CostandUsageReportServiceError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CostandUsageReportServiceErrors>(rhs) {}
CostandUsageReportServiceError(const Aws::Client::AWSError<CostandUsageReportServiceErrors>& rhs) : Aws::Client::AWSError<CostandUsageReportServiceErrors>(rhs) {}
CostandUsageReportServiceError(Aws::Client::AWSError<CostandUsageReportServiceErrors>&& rhs) : Aws::Client::AWSError<CostandUsageReportServiceErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CostandUsageReportServiceErrorMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CostandUsageReportService
{
class AWS_COSTANDUSAGEREPORTSERVICE_API CostandUsageReportServiceRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CostandUsageReportServiceRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-01-06"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_COSTANDUSAGEREPORTSERVICE_EXPORTS
#define AWS_COSTANDUSAGEREPORTSERVICE_API __declspec(dllexport)
#else
#define AWS_COSTANDUSAGEREPORTSERVICE_API __declspec(dllimport)
#endif /* AWS_COSTANDUSAGEREPORTSERVICE_EXPORTS */
#else
#define AWS_COSTANDUSAGEREPORTSERVICE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_COSTANDUSAGEREPORTSERVICE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class AWSRegion
{
NOT_SET,
us_east_1,
us_west_1,
us_west_2,
eu_central_1,
eu_west_1,
ap_southeast_1,
ap_southeast_2,
ap_northeast_1,
eu_north_1,
ap_northeast_3,
ap_east_1
};
namespace AWSRegionMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API AWSRegion GetAWSRegionForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForAWSRegion(AWSRegion value);
} // namespace AWSRegionMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class AdditionalArtifact
{
NOT_SET,
REDSHIFT,
QUICKSIGHT,
ATHENA
};
namespace AdditionalArtifactMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API AdditionalArtifact GetAdditionalArtifactForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForAdditionalArtifact(AdditionalArtifact value);
} // namespace AdditionalArtifactMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class CompressionFormat
{
NOT_SET,
ZIP,
GZIP,
Parquet
};
namespace CompressionFormatMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API CompressionFormat GetCompressionFormatForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForCompressionFormat(CompressionFormat value);
} // namespace CompressionFormatMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/cur/CostandUsageReportServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>Deletes the specified report.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionRequest">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API DeleteReportDefinitionRequest : public CostandUsageReportServiceRequest
{
public:
DeleteReportDefinitionRequest();
// 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 "DeleteReportDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
inline const Aws::String& GetReportName() const{ return m_reportName; }
inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
inline void SetReportName(const Aws::String& value) { m_reportNameHasBeenSet = true; m_reportName = value; }
inline void SetReportName(Aws::String&& value) { m_reportNameHasBeenSet = true; m_reportName = std::move(value); }
inline void SetReportName(const char* value) { m_reportNameHasBeenSet = true; m_reportName.assign(value); }
inline DeleteReportDefinitionRequest& WithReportName(const Aws::String& value) { SetReportName(value); return *this;}
inline DeleteReportDefinitionRequest& WithReportName(Aws::String&& value) { SetReportName(std::move(value)); return *this;}
inline DeleteReportDefinitionRequest& WithReportName(const char* value) { SetReportName(value); return *this;}
private:
Aws::String m_reportName;
bool m_reportNameHasBeenSet;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_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 CostandUsageReportService
{
namespace Model
{
/**
* <p>If the action is successful, the service sends back an HTTP 200
* response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionResponse">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API DeleteReportDefinitionResult
{
public:
DeleteReportDefinitionResult();
DeleteReportDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteReportDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetResponseMessage() const{ return m_responseMessage; }
inline void SetResponseMessage(const Aws::String& value) { m_responseMessage = value; }
inline void SetResponseMessage(Aws::String&& value) { m_responseMessage = std::move(value); }
inline void SetResponseMessage(const char* value) { m_responseMessage.assign(value); }
inline DeleteReportDefinitionResult& WithResponseMessage(const Aws::String& value) { SetResponseMessage(value); return *this;}
inline DeleteReportDefinitionResult& WithResponseMessage(Aws::String&& value) { SetResponseMessage(std::move(value)); return *this;}
inline DeleteReportDefinitionResult& WithResponseMessage(const char* value) { SetResponseMessage(value); return *this;}
private:
Aws::String m_responseMessage;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/cur/CostandUsageReportServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>Requests a list of AWS Cost and Usage reports owned by the
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsRequest">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API DescribeReportDefinitionsRequest : public CostandUsageReportServiceRequest
{
public:
DescribeReportDefinitionsRequest();
// 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 "DescribeReportDefinitions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline DescribeReportDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
inline DescribeReportDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline DescribeReportDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline DescribeReportDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,109 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cur/model/ReportDefinition.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>If the action is successful, the service sends back an HTTP 200
* response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsResponse">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API DescribeReportDefinitionsResult
{
public:
DescribeReportDefinitionsResult();
DescribeReportDefinitionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeReportDefinitionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline const Aws::Vector<ReportDefinition>& GetReportDefinitions() const{ return m_reportDefinitions; }
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline void SetReportDefinitions(const Aws::Vector<ReportDefinition>& value) { m_reportDefinitions = value; }
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline void SetReportDefinitions(Aws::Vector<ReportDefinition>&& value) { m_reportDefinitions = std::move(value); }
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline DescribeReportDefinitionsResult& WithReportDefinitions(const Aws::Vector<ReportDefinition>& value) { SetReportDefinitions(value); return *this;}
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline DescribeReportDefinitionsResult& WithReportDefinitions(Aws::Vector<ReportDefinition>&& value) { SetReportDefinitions(std::move(value)); return *this;}
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline DescribeReportDefinitionsResult& AddReportDefinitions(const ReportDefinition& value) { m_reportDefinitions.push_back(value); return *this; }
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
inline DescribeReportDefinitionsResult& AddReportDefinitions(ReportDefinition&& value) { m_reportDefinitions.push_back(std::move(value)); return *this; }
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline DescribeReportDefinitionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline DescribeReportDefinitionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline DescribeReportDefinitionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ReportDefinition> m_reportDefinitions;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/cur/CostandUsageReportServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cur/model/ReportDefinition.h>
#include <utility>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
/**
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API ModifyReportDefinitionRequest : public CostandUsageReportServiceRequest
{
public:
ModifyReportDefinitionRequest();
// 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 "ModifyReportDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
inline const Aws::String& GetReportName() const{ return m_reportName; }
inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
inline void SetReportName(const Aws::String& value) { m_reportNameHasBeenSet = true; m_reportName = value; }
inline void SetReportName(Aws::String&& value) { m_reportNameHasBeenSet = true; m_reportName = std::move(value); }
inline void SetReportName(const char* value) { m_reportNameHasBeenSet = true; m_reportName.assign(value); }
inline ModifyReportDefinitionRequest& WithReportName(const Aws::String& value) { SetReportName(value); return *this;}
inline ModifyReportDefinitionRequest& WithReportName(Aws::String&& value) { SetReportName(std::move(value)); return *this;}
inline ModifyReportDefinitionRequest& WithReportName(const char* value) { SetReportName(value); return *this;}
inline const ReportDefinition& GetReportDefinition() const{ return m_reportDefinition; }
inline bool ReportDefinitionHasBeenSet() const { return m_reportDefinitionHasBeenSet; }
inline void SetReportDefinition(const ReportDefinition& value) { m_reportDefinitionHasBeenSet = true; m_reportDefinition = value; }
inline void SetReportDefinition(ReportDefinition&& value) { m_reportDefinitionHasBeenSet = true; m_reportDefinition = std::move(value); }
inline ModifyReportDefinitionRequest& WithReportDefinition(const ReportDefinition& value) { SetReportDefinition(value); return *this;}
inline ModifyReportDefinitionRequest& WithReportDefinition(ReportDefinition&& value) { SetReportDefinition(std::move(value)); return *this;}
private:
Aws::String m_reportName;
bool m_reportNameHasBeenSet;
ReportDefinition m_reportDefinition;
bool m_reportDefinitionHasBeenSet;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CostandUsageReportService
{
namespace Model
{
class AWS_COSTANDUSAGEREPORTSERVICE_API ModifyReportDefinitionResult
{
public:
ModifyReportDefinitionResult();
ModifyReportDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyReportDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/cur/CostandUsageReportServiceRequest.h>
#include <aws/cur/model/ReportDefinition.h>
#include <utility>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>Creates a Cost and Usage Report.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionRequest">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API PutReportDefinitionRequest : public CostandUsageReportServiceRequest
{
public:
PutReportDefinitionRequest();
// 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 "PutReportDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline const ReportDefinition& GetReportDefinition() const{ return m_reportDefinition; }
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline bool ReportDefinitionHasBeenSet() const { return m_reportDefinitionHasBeenSet; }
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline void SetReportDefinition(const ReportDefinition& value) { m_reportDefinitionHasBeenSet = true; m_reportDefinition = value; }
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline void SetReportDefinition(ReportDefinition&& value) { m_reportDefinitionHasBeenSet = true; m_reportDefinition = std::move(value); }
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline PutReportDefinitionRequest& WithReportDefinition(const ReportDefinition& value) { SetReportDefinition(value); return *this;}
/**
* <p>Represents the output of the PutReportDefinition operation. The content
* consists of the detailed metadata and data file information. </p>
*/
inline PutReportDefinitionRequest& WithReportDefinition(ReportDefinition&& value) { SetReportDefinition(std::move(value)); return *this;}
private:
ReportDefinition m_reportDefinition;
bool m_reportDefinitionHasBeenSet;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>If the action is successful, the service sends back an HTTP 200 response with
* an empty HTTP body.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionResponse">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API PutReportDefinitionResult
{
public:
PutReportDefinitionResult();
PutReportDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutReportDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,402 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/cur/model/TimeUnit.h>
#include <aws/cur/model/ReportFormat.h>
#include <aws/cur/model/CompressionFormat.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cur/model/AWSRegion.h>
#include <aws/cur/model/ReportVersioning.h>
#include <aws/cur/model/SchemaElement.h>
#include <aws/cur/model/AdditionalArtifact.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CostandUsageReportService
{
namespace Model
{
/**
* <p>The definition of AWS Cost and Usage Report. You can specify the report name,
* time unit, report format, compression format, S3 bucket, additional artifacts,
* and schema elements in the definition. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ReportDefinition">AWS
* API Reference</a></p>
*/
class AWS_COSTANDUSAGEREPORTSERVICE_API ReportDefinition
{
public:
ReportDefinition();
ReportDefinition(Aws::Utils::Json::JsonView jsonValue);
ReportDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetReportName() const{ return m_reportName; }
inline bool ReportNameHasBeenSet() const { return m_reportNameHasBeenSet; }
inline void SetReportName(const Aws::String& value) { m_reportNameHasBeenSet = true; m_reportName = value; }
inline void SetReportName(Aws::String&& value) { m_reportNameHasBeenSet = true; m_reportName = std::move(value); }
inline void SetReportName(const char* value) { m_reportNameHasBeenSet = true; m_reportName.assign(value); }
inline ReportDefinition& WithReportName(const Aws::String& value) { SetReportName(value); return *this;}
inline ReportDefinition& WithReportName(Aws::String&& value) { SetReportName(std::move(value)); return *this;}
inline ReportDefinition& WithReportName(const char* value) { SetReportName(value); return *this;}
inline const TimeUnit& GetTimeUnit() const{ return m_timeUnit; }
inline bool TimeUnitHasBeenSet() const { return m_timeUnitHasBeenSet; }
inline void SetTimeUnit(const TimeUnit& value) { m_timeUnitHasBeenSet = true; m_timeUnit = value; }
inline void SetTimeUnit(TimeUnit&& value) { m_timeUnitHasBeenSet = true; m_timeUnit = std::move(value); }
inline ReportDefinition& WithTimeUnit(const TimeUnit& value) { SetTimeUnit(value); return *this;}
inline ReportDefinition& WithTimeUnit(TimeUnit&& value) { SetTimeUnit(std::move(value)); return *this;}
inline const ReportFormat& GetFormat() const{ return m_format; }
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
inline void SetFormat(const ReportFormat& value) { m_formatHasBeenSet = true; m_format = value; }
inline void SetFormat(ReportFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
inline ReportDefinition& WithFormat(const ReportFormat& value) { SetFormat(value); return *this;}
inline ReportDefinition& WithFormat(ReportFormat&& value) { SetFormat(std::move(value)); return *this;}
inline const CompressionFormat& GetCompression() const{ return m_compression; }
inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
inline void SetCompression(const CompressionFormat& value) { m_compressionHasBeenSet = true; m_compression = value; }
inline void SetCompression(CompressionFormat&& value) { m_compressionHasBeenSet = true; m_compression = std::move(value); }
inline ReportDefinition& WithCompression(const CompressionFormat& value) { SetCompression(value); return *this;}
inline ReportDefinition& WithCompression(CompressionFormat&& value) { SetCompression(std::move(value)); return *this;}
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline const Aws::Vector<SchemaElement>& GetAdditionalSchemaElements() const{ return m_additionalSchemaElements; }
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline bool AdditionalSchemaElementsHasBeenSet() const { return m_additionalSchemaElementsHasBeenSet; }
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline void SetAdditionalSchemaElements(const Aws::Vector<SchemaElement>& value) { m_additionalSchemaElementsHasBeenSet = true; m_additionalSchemaElements = value; }
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline void SetAdditionalSchemaElements(Aws::Vector<SchemaElement>&& value) { m_additionalSchemaElementsHasBeenSet = true; m_additionalSchemaElements = std::move(value); }
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline ReportDefinition& WithAdditionalSchemaElements(const Aws::Vector<SchemaElement>& value) { SetAdditionalSchemaElements(value); return *this;}
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline ReportDefinition& WithAdditionalSchemaElements(Aws::Vector<SchemaElement>&& value) { SetAdditionalSchemaElements(std::move(value)); return *this;}
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline ReportDefinition& AddAdditionalSchemaElements(const SchemaElement& value) { m_additionalSchemaElementsHasBeenSet = true; m_additionalSchemaElements.push_back(value); return *this; }
/**
* <p>A list of strings that indicate additional content that Amazon Web Services
* includes in the report, such as individual resource IDs. </p>
*/
inline ReportDefinition& AddAdditionalSchemaElements(SchemaElement&& value) { m_additionalSchemaElementsHasBeenSet = true; m_additionalSchemaElements.push_back(std::move(value)); return *this; }
inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
inline ReportDefinition& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
inline ReportDefinition& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
inline ReportDefinition& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; }
inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; }
inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::move(value); }
inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); }
inline ReportDefinition& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;}
inline ReportDefinition& WithS3Prefix(Aws::String&& value) { SetS3Prefix(std::move(value)); return *this;}
inline ReportDefinition& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;}
inline const AWSRegion& GetS3Region() const{ return m_s3Region; }
inline bool S3RegionHasBeenSet() const { return m_s3RegionHasBeenSet; }
inline void SetS3Region(const AWSRegion& value) { m_s3RegionHasBeenSet = true; m_s3Region = value; }
inline void SetS3Region(AWSRegion&& value) { m_s3RegionHasBeenSet = true; m_s3Region = std::move(value); }
inline ReportDefinition& WithS3Region(const AWSRegion& value) { SetS3Region(value); return *this;}
inline ReportDefinition& WithS3Region(AWSRegion&& value) { SetS3Region(std::move(value)); return *this;}
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline const Aws::Vector<AdditionalArtifact>& GetAdditionalArtifacts() const{ return m_additionalArtifacts; }
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline bool AdditionalArtifactsHasBeenSet() const { return m_additionalArtifactsHasBeenSet; }
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline void SetAdditionalArtifacts(const Aws::Vector<AdditionalArtifact>& value) { m_additionalArtifactsHasBeenSet = true; m_additionalArtifacts = value; }
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline void SetAdditionalArtifacts(Aws::Vector<AdditionalArtifact>&& value) { m_additionalArtifactsHasBeenSet = true; m_additionalArtifacts = std::move(value); }
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline ReportDefinition& WithAdditionalArtifacts(const Aws::Vector<AdditionalArtifact>& value) { SetAdditionalArtifacts(value); return *this;}
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline ReportDefinition& WithAdditionalArtifacts(Aws::Vector<AdditionalArtifact>&& value) { SetAdditionalArtifacts(std::move(value)); return *this;}
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline ReportDefinition& AddAdditionalArtifacts(const AdditionalArtifact& value) { m_additionalArtifactsHasBeenSet = true; m_additionalArtifacts.push_back(value); return *this; }
/**
* <p>A list of manifests that you want Amazon Web Services to create for this
* report.</p>
*/
inline ReportDefinition& AddAdditionalArtifacts(AdditionalArtifact&& value) { m_additionalArtifactsHasBeenSet = true; m_additionalArtifacts.push_back(std::move(value)); return *this; }
/**
* <p>Whether you want Amazon Web Services to update your reports after they have
* been finalized if Amazon Web Services detects charges related to previous
* months. These charges can include refunds, credits, or support fees.</p>
*/
inline bool GetRefreshClosedReports() const{ return m_refreshClosedReports; }
/**
* <p>Whether you want Amazon Web Services to update your reports after they have
* been finalized if Amazon Web Services detects charges related to previous
* months. These charges can include refunds, credits, or support fees.</p>
*/
inline bool RefreshClosedReportsHasBeenSet() const { return m_refreshClosedReportsHasBeenSet; }
/**
* <p>Whether you want Amazon Web Services to update your reports after they have
* been finalized if Amazon Web Services detects charges related to previous
* months. These charges can include refunds, credits, or support fees.</p>
*/
inline void SetRefreshClosedReports(bool value) { m_refreshClosedReportsHasBeenSet = true; m_refreshClosedReports = value; }
/**
* <p>Whether you want Amazon Web Services to update your reports after they have
* been finalized if Amazon Web Services detects charges related to previous
* months. These charges can include refunds, credits, or support fees.</p>
*/
inline ReportDefinition& WithRefreshClosedReports(bool value) { SetRefreshClosedReports(value); return *this;}
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline const ReportVersioning& GetReportVersioning() const{ return m_reportVersioning; }
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline bool ReportVersioningHasBeenSet() const { return m_reportVersioningHasBeenSet; }
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline void SetReportVersioning(const ReportVersioning& value) { m_reportVersioningHasBeenSet = true; m_reportVersioning = value; }
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline void SetReportVersioning(ReportVersioning&& value) { m_reportVersioningHasBeenSet = true; m_reportVersioning = std::move(value); }
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline ReportDefinition& WithReportVersioning(const ReportVersioning& value) { SetReportVersioning(value); return *this;}
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of
* each report or to deliver the report in addition to the previous versions.</p>
*/
inline ReportDefinition& WithReportVersioning(ReportVersioning&& value) { SetReportVersioning(std::move(value)); return *this;}
private:
Aws::String m_reportName;
bool m_reportNameHasBeenSet;
TimeUnit m_timeUnit;
bool m_timeUnitHasBeenSet;
ReportFormat m_format;
bool m_formatHasBeenSet;
CompressionFormat m_compression;
bool m_compressionHasBeenSet;
Aws::Vector<SchemaElement> m_additionalSchemaElements;
bool m_additionalSchemaElementsHasBeenSet;
Aws::String m_s3Bucket;
bool m_s3BucketHasBeenSet;
Aws::String m_s3Prefix;
bool m_s3PrefixHasBeenSet;
AWSRegion m_s3Region;
bool m_s3RegionHasBeenSet;
Aws::Vector<AdditionalArtifact> m_additionalArtifacts;
bool m_additionalArtifactsHasBeenSet;
bool m_refreshClosedReports;
bool m_refreshClosedReportsHasBeenSet;
ReportVersioning m_reportVersioning;
bool m_reportVersioningHasBeenSet;
};
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class ReportFormat
{
NOT_SET,
textORcsv,
Parquet
};
namespace ReportFormatMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API ReportFormat GetReportFormatForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForReportFormat(ReportFormat value);
} // namespace ReportFormatMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class ReportVersioning
{
NOT_SET,
CREATE_NEW_REPORT,
OVERWRITE_REPORT
};
namespace ReportVersioningMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API ReportVersioning GetReportVersioningForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForReportVersioning(ReportVersioning value);
} // namespace ReportVersioningMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class SchemaElement
{
NOT_SET,
RESOURCES
};
namespace SchemaElementMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API SchemaElement GetSchemaElementForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForSchemaElement(SchemaElement value);
} // namespace SchemaElementMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cur/CostandUsageReportService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CostandUsageReportService
{
namespace Model
{
enum class TimeUnit
{
NOT_SET,
HOURLY,
DAILY
};
namespace TimeUnitMapper
{
AWS_COSTANDUSAGEREPORTSERVICE_API TimeUnit GetTimeUnitForName(const Aws::String& name);
AWS_COSTANDUSAGEREPORTSERVICE_API Aws::String GetNameForTimeUnit(TimeUnit value);
} // namespace TimeUnitMapper
} // namespace Model
} // namespace CostandUsageReportService
} // namespace Aws