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,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