diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-iam/source/model/UpdateAccountRequest.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-iam/source/model/UpdateAccountRequest.cpp index ae6bb89ac65f62dbc42260a1064c541d5ee9465a..5e178822ea8162c98aacd5976a3c75b144702a9d 100644 --- a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-iam/source/model/UpdateAccountRequest.cpp +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-iam/source/model/UpdateAccountRequest.cpp @@ -7,6 +7,12 @@ #include #include +#include +#include +#include +#include + + using namespace Aws::IAM::Model; using namespace Aws::Utils; diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/S3Client.h b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/S3Client.h index 1427c5debc47d39e6bc26ae921ebc94bedd46881..79b3535bc9640d6d27806cf94b668a0a1a4de33b 100644 --- a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/S3Client.h +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/S3Client.h @@ -24,6 +24,8 @@ #include #include #include +#include + #include #include @@ -154,6 +156,7 @@ namespace Aws class DeleteBucketQosRequest; class DeleteBucketRefererRequest; class DeleteBucketOSCPRequest; + class DeleteBucketMetaSearchRequest; class DeleteBucketCallBackRequest; class DeleteBucketMetricsConfigurationRequest; class DeleteBucketOwnershipControlsRequest; @@ -167,6 +170,7 @@ namespace Aws class DeletePublicAccessBlockRequest; class GetBucketAccelerateConfigurationRequest; class GetBucketAclRequest; + class GetBucketMetaSearchRequest; class GetBucketQuotaRequest; class GetBucketStorageInfoRequest; class GetBucketStorageInfosRequest; @@ -216,6 +220,7 @@ namespace Aws class ListPartsRequest; class PutBucketAccelerateConfigurationRequest; class PutBucketAclRequest; + class PutBucketMetaSearchRequest; class PutBucketQuotaRequest; class PutBucketStorageClassRequest; class AppendObjectRequest; @@ -272,7 +277,8 @@ namespace Aws typedef Aws::Utils::Outcome DeleteBucketQosOutcome; typedef Aws::Utils::Outcome DeleteBucketRefererOutcome; typedef Aws::Utils::Outcome DeleteBucketOSCPOutcome; - typedef Aws::Utils::Outcome DeleteBucketCallBackOutcome; + typedef Aws::Utils::Outcome DeleteBucketMetaSearchOutcome; + typedef Aws::Utils::Outcome DeleteBucketCallBackOutcome; typedef Aws::Utils::Outcome DeleteBucketMetricsConfigurationOutcome; typedef Aws::Utils::Outcome DeleteBucketOwnershipControlsOutcome; @@ -286,6 +292,7 @@ namespace Aws typedef Aws::Utils::Outcome DeletePublicAccessBlockOutcome; typedef Aws::Utils::Outcome GetBucketAccelerateConfigurationOutcome; typedef Aws::Utils::Outcome GetBucketAclOutcome; + typedef Aws::Utils::Outcome GetBucketMetaSearchOutcome; typedef Aws::Utils::Outcome GetBucketQuotaOutcome; typedef Aws::Utils::Outcome GetBucketStorageInfoOutcome; typedef Aws::Utils::Outcome GetBucketStorageInfosOutcome; @@ -336,6 +343,7 @@ namespace Aws typedef Aws::Utils::Outcome ListPartsOutcome; typedef Aws::Utils::Outcome PutBucketAccelerateConfigurationOutcome; typedef Aws::Utils::Outcome PutBucketAclOutcome; + typedef Aws::Utils::Outcome PutBucketMetaSearchOutcome; typedef Aws::Utils::Outcome PutBucketQuotaOutcome; typedef Aws::Utils::Outcome PutBucketStorageClassOutcome; typedef Aws::Utils::Outcome AppendObjectOutcome; @@ -392,6 +400,7 @@ namespace Aws typedef std::future DeleteBucketQosOutcomeCallable; typedef std::future DeleteBucketRefererOutcomeCallable; typedef std::future DeleteBucketOSCPOutcomeCallable; + typedef std::future DeleteBucketMetaSearchOutcomeCallable; typedef std::future DeleteBucketCallBackOutcomeCallable; typedef std::future DeleteBucketMetricsConfigurationOutcomeCallable; @@ -406,6 +415,7 @@ namespace Aws typedef std::future DeletePublicAccessBlockOutcomeCallable; typedef std::future GetBucketAccelerateConfigurationOutcomeCallable; typedef std::future GetBucketAclOutcomeCallable; + typedef std::future GetBucketMetaSearchOutcomeCallable; typedef std::future GetBucketQuotaOutcomeCallable; typedef std::futureGetBucketStorageInfoOutcomeCallable; typedef std::futureGetBucketStorageInfosOutcomeCallable; @@ -458,6 +468,7 @@ namespace Aws typedef std::future ListPartsOutcomeCallable; typedef std::future PutBucketAccelerateConfigurationOutcomeCallable; typedef std::future PutBucketAclOutcomeCallable; + typedef std::future PutBucketMetaSearchOutcomeCallable; typedef std::future PutBucketQuotaOutcomeCallable; typedef std::future PutBucketStorageClassOutcomeCallable; typedef std::future AppendObjectOutcomeCallable; @@ -533,8 +544,7 @@ namespace Aws typedef std::function&) > DeleteBucketOSCPResponseReceivedHandler; - - + typedef std::function&) > DeleteBucketMetaSearchResponseReceivedHandler; typedef std::function&) > DeleteBucketCallBackResponseReceivedHandler; @@ -552,9 +562,9 @@ namespace Aws typedef std::function&) > DeletePublicAccessBlockResponseReceivedHandler; typedef std::function&) > GetBucketAccelerateConfigurationResponseReceivedHandler; typedef std::function&) > GetBucketAclResponseReceivedHandler; - typedef std::function&) > GetBucketQuotaResponseReceivedHandler; + typedef std::function&) > GetBucketMetaSearchResponseReceivedHandler; - + typedef std::function&) > GetBucketQuotaResponseReceivedHandler; typedef std::function&) > GetBucketStorageInfoResponseReceivedHandler; typedef std::function&) > GetBucketStorageInfosResponseReceivedHandler; @@ -616,6 +626,9 @@ namespace Aws typedef std::function&) > ListPartsResponseReceivedHandler; typedef std::function&) > PutBucketAccelerateConfigurationResponseReceivedHandler; typedef std::function&) > PutBucketAclResponseReceivedHandler; + typedef std::function&) > PutBucketMetaSearchResponseReceivedHandler; + + typedef std::function&) > PutBucketQuotaResponseReceivedHandler; typedef std::function&) > PutBucketStorageClassResponseReceivedHandler; @@ -2507,6 +2520,7 @@ namespace Aws virtual Model::DeleteBucketOSCPOutcome DeleteBucketOSCP(const Model::DeleteBucketOSCPRequest& request) const; virtual Model::DeleteBucketCallBackOutcome DeleteBucketCallBack(const Model::DeleteBucketCallBackRequest& request) const; + virtual Model::DeleteBucketMetaSearchOutcome DeleteBucketMetaSearch(const Model::DeleteBucketMetaSearchRequest& request) const; /** *

Deletes the lifecycle configuration from the specified bucket. Amazon S3 @@ -2538,6 +2552,7 @@ namespace Aws virtual Model::DeleteBucketOSCPOutcomeCallable DeleteBucketOSCPCallable(const Model::DeleteBucketOSCPRequest& request) const; virtual Model::DeleteBucketCallBackOutcomeCallable DeleteBucketCallBackCallable(const Model::DeleteBucketCallBackRequest& request) const; + virtual Model::DeleteBucketMetaSearchOutcomeCallable DeleteBucketMetaSearchCallable(const Model::DeleteBucketMetaSearchRequest& request) const; /** *

Deletes the lifecycle configuration from the specified bucket. Amazon S3 @@ -2568,7 +2583,7 @@ namespace Aws virtual void DeleteBucketOSCPAsync(const Model::DeleteBucketOSCPRequest& request, const DeleteBucketOSCPResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; - + virtual void DeleteBucketMetaSearchAsync(const Model::DeleteBucketMetaSearchRequest& request, const DeleteBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; virtual void DeleteBucketCallBackAsync(const Model::DeleteBucketCallBackRequest& request, const DeleteBucketCallBackResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; @@ -3476,6 +3491,7 @@ namespace Aws virtual Model::GetBucketStorageInfoOutcome GetBucketStorageInfo(const Model::GetBucketStorageInfoRequest& request) const; virtual Model::GetBucketStorageInfosOutcome GetBucketStorageInfos(const Model::GetBucketStorageInfosRequest& request) const; virtual Model::GetBucketQuotaOutcome GetBucketQuota(const Model::GetBucketQuotaRequest& request) const; + virtual Model::GetBucketMetaSearchOutcome GetBucketMetaSearch(const Model::GetBucketMetaSearchRequest& request) const; /** *

This implementation of the GET action uses the acl @@ -3496,6 +3512,7 @@ namespace Aws virtual Model::GetBucketStorageInfoOutcomeCallable GetBucketStorageInfoCallable(const Model::GetBucketStorageInfoRequest& request) const; virtual Model::GetBucketStorageInfosOutcomeCallable GetBucketStorageInfosCallable(const Model::GetBucketStorageInfosRequest& request) const; virtual Model::GetBucketQuotaOutcomeCallable GetBucketQuotaCallable(const Model::GetBucketQuotaRequest& request) const; + virtual Model::GetBucketMetaSearchOutcomeCallable GetBucketMetaSearchCallable(const Model::GetBucketMetaSearchRequest& request) const; /** *

This implementation of the GET action uses the acl @@ -3517,7 +3534,7 @@ namespace Aws virtual void GetBucketStorageInfosAsync(const Model::GetBucketStorageInfosRequest& request, const GetBucketStorageInfosResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; virtual void GetBucketQuotaAsync(const Model::GetBucketQuotaRequest& request, const GetBucketQuotaResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; - + virtual void GetBucketMetaSearchAsync(const Model::GetBucketMetaSearchRequest& request, const GetBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

This implementation of the GET action returns an analytics configuration @@ -6933,6 +6950,7 @@ namespace Aws virtual Model::PutBucketQuotaOutcome PutBucketQuota(const Model::PutBucketQuotaRequest& request) const; virtual Model::PutBucketStorageClassOutcome PutBucketStorageClass(const Model::PutBucketStorageClassRequest& request) const; virtual Model::AppendObjectOutcome AppendObject(const Model::AppendObjectRequest& request) const; + virtual Model::PutBucketMetaSearchOutcome PutBucketMetaSearch(const Model::PutBucketMetaSearchRequest& request) const; /** *

Sets the permissions on an existing bucket using access control lists (ACL). @@ -7023,6 +7041,7 @@ namespace Aws virtual Model::PutBucketQuotaOutcomeCallable PutBucketQuotaCallable(const Model::PutBucketQuotaRequest& request) const; virtual Model::PutBucketStorageClassOutcomeCallable PutBucketStorageClassCallable(const Model::PutBucketStorageClassRequest& request) const; virtual Model::AppendObjectOutcomeCallable AppendObjectCallable(const Model::AppendObjectRequest& request) const; + virtual Model::PutBucketMetaSearchOutcomeCallable PutBucketMetaSearchCallable(const Model::PutBucketMetaSearchRequest& request) const; /** *

Sets the permissions on an existing bucket using access control lists (ACL). @@ -7113,7 +7132,7 @@ namespace Aws virtual void PutBucketQuotaAsync(const Model::PutBucketQuotaRequest& request, const PutBucketQuotaResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; virtual void PutBucketStorageClassAsync(const Model::PutBucketStorageClassRequest& request, const PutBucketStorageClassResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; virtual void AppendObjectAsync(const Model::AppendObjectRequest& request, const AppendObjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; - + virtual void PutBucketMetaSearchAsync(const Model::PutBucketMetaSearchRequest& request, const PutBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Sets an analytics configuration for the bucket (specified by the analytics @@ -11387,13 +11406,10 @@ namespace Aws void DeleteBucketOSCPAsyncHelper(const Model::DeleteBucketOSCPRequest& request, const DeleteBucketOSCPResponseReceivedHandler& handler, const std::shared_ptr& context) const; - - + void DeleteBucketMetaSearchAsyncHelper(const Model::DeleteBucketMetaSearchRequest& request, const DeleteBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteBucketCallBackAsyncHelper(const Model::DeleteBucketCallBackRequest& request, const DeleteBucketCallBackResponseReceivedHandler& handler, const std::shared_ptr& context) const; - - void DeleteBucketMetricsConfigurationAsyncHelper(const Model::DeleteBucketMetricsConfigurationRequest& request, const DeleteBucketMetricsConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteBucketOwnershipControlsAsyncHelper(const Model::DeleteBucketOwnershipControlsRequest& request, const DeleteBucketOwnershipControlsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteBucketPolicyAsyncHelper(const Model::DeleteBucketPolicyRequest& request, const DeleteBucketPolicyResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -11406,9 +11422,9 @@ namespace Aws void DeletePublicAccessBlockAsyncHelper(const Model::DeletePublicAccessBlockRequest& request, const DeletePublicAccessBlockResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetBucketAccelerateConfigurationAsyncHelper(const Model::GetBucketAccelerateConfigurationRequest& request, const GetBucketAccelerateConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetBucketAclAsyncHelper(const Model::GetBucketAclRequest& request, const GetBucketAclResponseReceivedHandler& handler, const std::shared_ptr& context) const; - void GetBucketQuotaAsyncHelper(const Model::GetBucketQuotaRequest& request, const GetBucketQuotaResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetBucketMetaSearchAsyncHelper(const Model::GetBucketMetaSearchRequest& request, const GetBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const; - + void GetBucketQuotaAsyncHelper(const Model::GetBucketQuotaRequest& request, const GetBucketQuotaResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetBucketStorageInfoAsyncHelper(const Model::GetBucketStorageInfoRequest& request, const GetBucketStorageInfoResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetBucketStorageInfosAsyncHelper(const Model::GetBucketStorageInfosRequest& request, const GetBucketStorageInfosResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -11474,6 +11490,8 @@ namespace Aws void ListPartsAsyncHelper(const Model::ListPartsRequest& request, const ListPartsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void PutBucketAccelerateConfigurationAsyncHelper(const Model::PutBucketAccelerateConfigurationRequest& request, const PutBucketAccelerateConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void PutBucketAclAsyncHelper(const Model::PutBucketAclRequest& request, const PutBucketAclResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void PutBucketMetaSearchAsyncHelper(const Model::PutBucketMetaSearchRequest& request, const PutBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void PutBucketQuotaAsyncHelper(const Model::PutBucketQuotaRequest& request, const PutBucketQuotaResponseReceivedHandler& handler, const std::shared_ptr& context) const; void PutBucketStorageClassAsyncHelper(const Model::PutBucketStorageClassRequest& request, const PutBucketStorageClassResponseReceivedHandler& handler, const std::shared_ptr& context) const; diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/DeleteBucketMetaSearchRequest.h b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/DeleteBucketMetaSearchRequest.h new file mode 100644 index 0000000000000000000000000000000000000000..e14b84eba90a7ecddea6a02506d959843e54b3ac --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/DeleteBucketMetaSearchRequest.h @@ -0,0 +1,195 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace S3 +{ +namespace Model +{ + + /** + */ + class AWS_S3_API DeleteBucketMetaSearchRequest : public S3Request + { + public: + DeleteBucketMetaSearchRequest(); + + // 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 "DeleteBucketMetaSearch"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline const Aws::String& GetBucket() const{ return m_bucket; } + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline DeleteBucketMetaSearchRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline DeleteBucketMetaSearchRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} + + /** + *

The bucket name of the lifecycle to delete.

+ */ + inline DeleteBucketMetaSearchRequest& WithBucket(const char* value) { SetBucket(value); return *this;} + + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline DeleteBucketMetaSearchRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline DeleteBucketMetaSearchRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline DeleteBucketMetaSearchRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;} + + + + inline const Aws::Map& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; } + + + inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; } + + + inline void SetCustomizedAccessLogTag(const Aws::Map& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; } + + + inline void SetCustomizedAccessLogTag(Aws::Map&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); } + + + inline DeleteBucketMetaSearchRequest& WithCustomizedAccessLogTag(const Aws::Map& value) { SetCustomizedAccessLogTag(value); return *this;} + + + inline DeleteBucketMetaSearchRequest& WithCustomizedAccessLogTag(Aws::Map&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;} + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } + + + inline DeleteBucketMetaSearchRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } + + private: + + Aws::String m_bucket; + bool m_bucketHasBeenSet; + + Aws::String m_expectedBucketOwner; + bool m_expectedBucketOwnerHasBeenSet; + + Aws::Map m_customizedAccessLogTag; + bool m_customizedAccessLogTagHasBeenSet; + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchRequest.h b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchRequest.h new file mode 100644 index 0000000000000000000000000000000000000000..4ababff73a8c757e32f669973e3f9aa81305bee8 --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchRequest.h @@ -0,0 +1,195 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace S3 +{ +namespace Model +{ + + /** + */ + class AWS_S3_API GetBucketMetaSearchRequest : public S3Request + { + public: + GetBucketMetaSearchRequest(); + + // 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 "GetBucketMetaSearch"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline const Aws::String& GetBucket() const{ return m_bucket; } + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline GetBucketMetaSearchRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline GetBucketMetaSearchRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} + + /** + *

Specifies the S3 bucket whose ACL is being requested.

+ */ + inline GetBucketMetaSearchRequest& WithBucket(const char* value) { SetBucket(value); return *this;} + + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline GetBucketMetaSearchRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline GetBucketMetaSearchRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline GetBucketMetaSearchRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;} + + + + inline const Aws::Map& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; } + + + inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; } + + + inline void SetCustomizedAccessLogTag(const Aws::Map& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; } + + + inline void SetCustomizedAccessLogTag(Aws::Map&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); } + + + inline GetBucketMetaSearchRequest& WithCustomizedAccessLogTag(const Aws::Map& value) { SetCustomizedAccessLogTag(value); return *this;} + + + inline GetBucketMetaSearchRequest& WithCustomizedAccessLogTag(Aws::Map&& value) { SetCustomizedAccessLogTag(std::move(value)); return *this;} + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; } + + + inline GetBucketMetaSearchRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; } + + private: + + Aws::String m_bucket; + bool m_bucketHasBeenSet; + + Aws::String m_expectedBucketOwner; + bool m_expectedBucketOwnerHasBeenSet; + + Aws::Map m_customizedAccessLogTag; + bool m_customizedAccessLogTagHasBeenSet; + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchResult.h b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchResult.h new file mode 100644 index 0000000000000000000000000000000000000000..1416f492377b61cdb3be41ca1b41019f1e2ca38e --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/GetBucketMetaSearchResult.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace S3 +{ +namespace Model +{ + class AWS_S3_API GetBucketMetaSearchResult + { + public: + GetBucketMetaSearchResult(); + GetBucketMetaSearchResult(const Aws::AmazonWebServiceResult& result); + GetBucketMetaSearchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Container for the bucket owner's display name and ID.

+ */ + inline const Owner& GetOwner() const{ return m_owner; } + + /** + *

Container for the bucket owner's display name and ID.

+ */ + inline void SetOwner(const Owner& value) { m_owner = value; } + + /** + *

Container for the bucket owner's display name and ID.

+ */ + inline void SetOwner(Owner&& value) { m_owner = std::move(value); } + + /** + *

Container for the bucket owner's display name and ID.

+ */ + inline GetBucketMetaSearchResult& WithOwner(const Owner& value) { SetOwner(value); return *this;} + + /** + *

Container for the bucket owner's display name and ID.

+ */ + inline GetBucketMetaSearchResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} + + inline const Aws::String& GetMetaSearch() const{ return m_metasearch; } + + inline bool MetaSearchHasBeenSet() const { return m_metasearchHasBeenSet; } + + inline void SetMetaSearch(const Aws::String& value) { m_metasearchHasBeenSet = true; m_metasearch = value; } + + inline void SetMetaSearch(Aws::String&& value) { m_metasearchHasBeenSet = true; m_metasearch = std::move(value); } + + inline void SetMetaSearch(const char* value) { m_metasearchHasBeenSet = true; m_metasearch.assign(value); } + + inline GetBucketMetaSearchResult& WithMetaSearch(const Aws::String& value) { SetMetaSearch(value); return *this;} + + inline GetBucketMetaSearchResult& WithMetaSearch(Aws::String&& value) { SetMetaSearch(std::move(value)); return *this;} + + inline GetBucketMetaSearchResult& WithMetaSearch(const char* value) { SetMetaSearch(value); return *this;} + + private: + + Owner m_owner; + + Aws::String m_metasearch; + bool m_metasearchHasBeenSet; + + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/PutBucketMetaSearchRequest.h b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/PutBucketMetaSearchRequest.h new file mode 100644 index 0000000000000000000000000000000000000000..a2b21ea67ca5f7eb163f056ada7ed9808c03607e --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/include/aws/s3/model/PutBucketMetaSearchRequest.h @@ -0,0 +1,258 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace S3 +{ +namespace Model +{ + + /** + */ + class AWS_S3_API PutBucketMetaSearchRequest : public S3Request + { + public: + PutBucketMetaSearchRequest(); + + // 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 "PutBucketMetaSearch"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + inline bool ShouldComputeContentMd5() const override { return true; } + + + /** + *

The bucket to which to apply the ACL.

+ */ + inline const Aws::String& GetBucket() const{ return m_bucket; } + + /** + *

The bucket to which to apply the ACL.

+ */ + inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } + + /** + *

The bucket to which to apply the ACL.

+ */ + inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } + + /** + *

The bucket to which to apply the ACL.

+ */ + inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } + + /** + *

The bucket to which to apply the ACL.

+ */ + inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } + + /** + *

The bucket to which to apply the ACL.

+ */ + inline PutBucketMetaSearchRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} + + /** + *

The bucket to which to apply the ACL.

+ */ + inline PutBucketMetaSearchRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} + + /** + *

The bucket to which to apply the ACL.

+ */ + inline PutBucketMetaSearchRequest& WithBucket(const char* value) { SetBucket(value); return *this;} + + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline const Aws::String& GetContentMD5() const{ return m_contentMD5; } + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; } + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; } + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); } + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); } + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline PutBucketMetaSearchRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;} + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline PutBucketMetaSearchRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;} + + /** + *

The base64-encoded 128-bit MD5 digest of the data. This header must be used + * as a message integrity check to verify that the request body was not corrupted + * in transit. For more information, go to RFC 1864.

For requests + * made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is + * calculated automatically.

+ */ + inline PutBucketMetaSearchRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); } + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline PutBucketMetaSearchRequest& WithExpectedBucketOwner(const Aws::String& value) { SetExpectedBucketOwner(value); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline PutBucketMetaSearchRequest& WithExpectedBucketOwner(Aws::String&& value) { SetExpectedBucketOwner(std::move(value)); return *this;} + + /** + *

The account ID of the expected bucket owner. If the bucket is owned by a + * different account, the request will fail with an HTTP 403 (Access + * Denied) error.

+ */ + inline PutBucketMetaSearchRequest& WithExpectedBucketOwner(const char* value) { SetExpectedBucketOwner(value); return *this;} + + inline const Aws::String& GetMetaSearch() const{ return m_metasearch; } + + inline bool MetaSearchHasBeenSet() const { return m_metasearchHasBeenSet; } + + inline void SetMetaSearch(const Aws::String& value) { m_metasearchHasBeenSet = true; m_metasearch = value; } + + inline void SetMetaSearch(Aws::String&& value) { m_metasearchHasBeenSet = true; m_metasearch = std::move(value); } + + inline void SetMetaSearch(const char* value) { m_metasearchHasBeenSet = true; m_metasearch.assign(value); } + + inline PutBucketMetaSearchRequest& WithMetaSearch(const Aws::String& value) { SetMetaSearch(value); return *this;} + + inline PutBucketMetaSearchRequest& WithMetaSearch(Aws::String&& value) { SetMetaSearch(std::move(value)); return *this;} + + inline PutBucketMetaSearchRequest& WithMetaSearch(const char* value) { SetMetaSearch(value); return *this;} + + private: + + Aws::String m_bucket; + bool m_bucketHasBeenSet; + + Aws::String m_metasearch; + bool m_metasearchHasBeenSet; + + Aws::String m_contentMD5; + bool m_contentMD5HasBeenSet; + + Aws::String m_expectedBucketOwner; + bool m_expectedBucketOwnerHasBeenSet; + }; + +} // namespace Model +} // namespace S3 +} // namespace Aws diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/S3Client.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/S3Client.cpp index 97501c9912a739544113b5f4129dea5d9fd4d076..a08e9a5732ef58d8acec42106bd71f0f414ee206 100644 --- a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/S3Client.cpp +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/S3Client.cpp @@ -38,6 +38,7 @@ #include #include +#include #include @@ -53,6 +54,8 @@ #include #include #include +#include + #include #include #include @@ -108,6 +111,8 @@ #include #include #include +#include + #include #include #include @@ -880,10 +885,6 @@ void S3Client::DeleteBucketRefererAsyncHelper(const DeleteBucketRefererRequest& - - - - DeleteBucketOSCPOutcome S3Client::DeleteBucketOSCP(const DeleteBucketOSCPRequest& request) const { if (!request.BucketHasBeenSet()) @@ -905,7 +906,7 @@ DeleteBucketOSCPOutcome S3Client::DeleteBucketOSCP(const DeleteBucketOSCPRequest DeleteBucketOSCPOutcomeCallable S3Client::DeleteBucketOSCPCallable(const DeleteBucketOSCPRequest& request) const { - auto task = Aws::MakeShared< std::packaged_task< DeleteBucketQosOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteBucketOSCP(request); } ); + auto task = Aws::MakeShared< std::packaged_task< DeleteBucketOSCPOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteBucketOSCP(request); } ); auto packagedFunction = [task]() { (*task)(); }; m_executor->Submit(packagedFunction); return task->get_future(); @@ -922,6 +923,43 @@ void S3Client::DeleteBucketOSCPAsyncHelper(const DeleteBucketOSCPRequest& reques } +DeleteBucketMetaSearchOutcome S3Client::DeleteBucketMetaSearch(const DeleteBucketMetaSearchRequest& request) const +{ + if (!request.BucketHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteBucketMetaSearch", "Required field: Bucket, is not set"); + return DeleteBucketMetaSearchOutcome(Aws::Client::AWSError(S3Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Bucket]", false)); + } + ComputeEndpointOutcome computeEndpointOutcome = ComputeEndpointString(request.GetBucket()); + if (!computeEndpointOutcome.IsSuccess()) + { + return DeleteBucketMetaSearchOutcome(computeEndpointOutcome.GetError()); + } + Aws::Http::URI uri = computeEndpointOutcome.GetResult().endpoint; + Aws::StringStream ss; + ss.str("?metasearch"); + uri.SetQueryString(ss.str()); + return DeleteBucketMetaSearchOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER, computeEndpointOutcome.GetResult().signerRegion.c_str() /*signerRegionOverride*/, computeEndpointOutcome.GetResult().signerServiceName.c_str() /*signerServiceNameOverride*/)); +} + +DeleteBucketMetaSearchOutcomeCallable S3Client::DeleteBucketMetaSearchCallable(const DeleteBucketMetaSearchRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteBucketMetaSearchOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteBucketMetaSearch(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void S3Client::DeleteBucketMetaSearchAsync(const DeleteBucketMetaSearchRequest& request, const DeleteBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteBucketMetaSearchAsyncHelper( request, handler, context ); } ); +} + +void S3Client::DeleteBucketMetaSearchAsyncHelper(const DeleteBucketMetaSearchRequest& request, const DeleteBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteBucketMetaSearch(request), context); +} + @@ -1441,6 +1479,44 @@ void S3Client::GetBucketAclAsyncHelper(const GetBucketAclRequest& request, const +GetBucketMetaSearchOutcome S3Client::GetBucketMetaSearch(const GetBucketMetaSearchRequest& request) const +{ + if (!request.BucketHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetBucketMetaSearch", "Required field: Bucket, is not set"); + return GetBucketMetaSearchOutcome(Aws::Client::AWSError(S3Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Bucket]", false)); + } + ComputeEndpointOutcome computeEndpointOutcome = ComputeEndpointString(request.GetBucket()); + if (!computeEndpointOutcome.IsSuccess()) + { + return GetBucketMetaSearchOutcome(computeEndpointOutcome.GetError()); + } + Aws::Http::URI uri = computeEndpointOutcome.GetResult().endpoint; + Aws::StringStream ss; + ss.str("?metasearch"); + uri.SetQueryString(ss.str()); + return GetBucketMetaSearchOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER, computeEndpointOutcome.GetResult().signerRegion.c_str() /*signerRegionOverride*/, computeEndpointOutcome.GetResult().signerServiceName.c_str() /*signerServiceNameOverride*/)); +} + +GetBucketMetaSearchOutcomeCallable S3Client::GetBucketMetaSearchCallable(const GetBucketMetaSearchRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetBucketMetaSearchOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetBucketMetaSearch(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void S3Client::GetBucketMetaSearchAsync(const GetBucketMetaSearchRequest& request, const GetBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetBucketMetaSearchAsyncHelper( request, handler, context ); } ); +} + +void S3Client::GetBucketMetaSearchAsyncHelper(const GetBucketMetaSearchRequest& request, const GetBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetBucketMetaSearch(request), context); +} + + GetBucketQuotaOutcome S3Client::GetBucketQuota(const GetBucketQuotaRequest& request) const { @@ -3444,6 +3520,43 @@ void S3Client::PutBucketAclAsyncHelper(const PutBucketAclRequest& request, const } +PutBucketMetaSearchOutcome S3Client::PutBucketMetaSearch(const PutBucketMetaSearchRequest& request) const +{ + if (!request.BucketHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("PutBucketMetaSearch", "Required field: Bucket, is not set"); + return PutBucketMetaSearchOutcome(Aws::Client::AWSError(S3Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Bucket]", false)); + } + ComputeEndpointOutcome computeEndpointOutcome = ComputeEndpointString(request.GetBucket()); + if (!computeEndpointOutcome.IsSuccess()) + { + return PutBucketMetaSearchOutcome(computeEndpointOutcome.GetError()); + } + Aws::Http::URI uri = computeEndpointOutcome.GetResult().endpoint; + Aws::StringStream ss; + ss.str("?metasearch"); + uri.SetQueryString(ss.str()); + return PutBucketMetaSearchOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER, computeEndpointOutcome.GetResult().signerRegion.c_str() /*signerRegionOverride*/, computeEndpointOutcome.GetResult().signerServiceName.c_str() /*signerServiceNameOverride*/)); +} + +PutBucketMetaSearchOutcomeCallable S3Client::PutBucketMetaSearchCallable(const PutBucketMetaSearchRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< PutBucketMetaSearchOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->PutBucketMetaSearch(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void S3Client::PutBucketMetaSearchAsync(const PutBucketMetaSearchRequest& request, const PutBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->PutBucketMetaSearchAsyncHelper( request, handler, context ); } ); +} + +void S3Client::PutBucketMetaSearchAsyncHelper(const PutBucketMetaSearchRequest& request, const PutBucketMetaSearchResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, PutBucketMetaSearch(request), context); +} + PutBucketQuotaOutcome S3Client::PutBucketQuota(const PutBucketQuotaRequest& request) const { diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/CompleteMultipartUploadResult.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/CompleteMultipartUploadResult.cpp index 629d34704b04c2e60d8c9a9fdbcdf50b703203ef..9356916701d49db1ad3918c21b9aeb151805f925 100644 --- a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/CompleteMultipartUploadResult.cpp +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/CompleteMultipartUploadResult.cpp @@ -86,49 +86,53 @@ CompleteMultipartUploadResult& CompleteMultipartUploadResult::operator =(Aws::Am m_requestCharged = RequestChargedMapper::GetRequestChargedForName(requestChargedIter->second); } - /* 解析body */ - if(body_tmp.GetUnderlyingStream().rdbuf()->in_avail() != 0) - { - std::stringstream ss; - ss << body_tmp.GetUnderlyingStream().rdbuf(); - std::string str = ss.str(); - m_body = str.c_str(); - - /* 尝试解析xml,解析失败也没有关系 */ - Aws::Http::HeaderValueCollection m_responseHeaders; - Aws::Http::HttpResponseCode m_responseCode = Aws::Http::HttpResponseCode::OK; - - Aws::Client::XmlOutcome out(Aws::AmazonWebServiceResult( - Aws::Utils::Xml::XmlDocument::CreateFromXmlStream(ss), - m_responseHeaders, m_responseCode)); - - const Aws::Utils::Xml::XmlDocument& xmlDocument = out.GetResult().GetPayload(); - - Aws::Utils::Xml::XmlNode resultNode = xmlDocument.GetRootElement(); - if (!resultNode.IsNull()) - { - Aws::Utils::Xml::XmlNode locationNode = resultNode.FirstChild("Location"); - if (!locationNode.IsNull()) - { - m_location = Aws::Utils::Xml::DecodeEscapedXmlText(locationNode.GetText()); - } - Aws::Utils::Xml::XmlNode bucketNode = resultNode.FirstChild("Bucket"); - if (!bucketNode.IsNull()) - { - m_bucket = Aws::Utils::Xml::DecodeEscapedXmlText(locationNode.GetText()); - - } - Aws::Utils::Xml::XmlNode keyNode = resultNode.FirstChild("Key"); - if (!keyNode.IsNull()) - { - m_key = Aws::Utils::Xml::DecodeEscapedXmlText(keyNode.GetText()); - } - Aws::Utils::Xml::XmlNode eTagNode = resultNode.FirstChild("ETag"); - if (!eTagNode.IsNull()) - { - m_eTag = Aws::Utils::Xml::DecodeEscapedXmlText(eTagNode.GetText()); - } - } + if(headers.size() == 0) + { + return *this; + } + + /* 解析body */ + if(body_tmp.GetUnderlyingStream().rdbuf()->in_avail() != 0) + { + std::stringstream ss; + ss << body_tmp.GetUnderlyingStream().rdbuf(); + std::string str = ss.str(); + m_body = str.c_str(); + + /* 尝试解析xml,解析失败也没有关系 */ + Aws::Http::HeaderValueCollection m_responseHeaders; + Aws::Http::HttpResponseCode m_responseCode = Aws::Http::HttpResponseCode::OK; + + Aws::Client::XmlOutcome out(Aws::AmazonWebServiceResult( + Aws::Utils::Xml::XmlDocument::CreateFromXmlStream(ss), + m_responseHeaders, m_responseCode)); + + const Aws::Utils::Xml::XmlDocument& xmlDocument = out.GetResult().GetPayload(); + + Aws::Utils::Xml::XmlNode resultNode = xmlDocument.GetRootElement(); + if (!resultNode.IsNull()) + { + Aws::Utils::Xml::XmlNode locationNode = resultNode.FirstChild("Location"); + if (!locationNode.IsNull()) + { + m_location = Aws::Utils::Xml::DecodeEscapedXmlText(locationNode.GetText()); + } + Aws::Utils::Xml::XmlNode bucketNode = resultNode.FirstChild("Bucket"); + if (!bucketNode.IsNull()) + { + m_bucket = Aws::Utils::Xml::DecodeEscapedXmlText(locationNode.GetText()); + } + Aws::Utils::Xml::XmlNode keyNode = resultNode.FirstChild("Key"); + if (!keyNode.IsNull()) + { + m_key = Aws::Utils::Xml::DecodeEscapedXmlText(keyNode.GetText()); + } + Aws::Utils::Xml::XmlNode eTagNode = resultNode.FirstChild("ETag"); + if (!eTagNode.IsNull()) + { + m_eTag = Aws::Utils::Xml::DecodeEscapedXmlText(eTagNode.GetText()); + } + } } diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/DeleteBucketMetaSearchRequest.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/DeleteBucketMetaSearchRequest.cpp new file mode 100644 index 0000000000000000000000000000000000000000..19d2368646a4e7eb35b363329cbf6c0cd831fda2 --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/DeleteBucketMetaSearchRequest.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::S3::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteBucketMetaSearchRequest::DeleteBucketMetaSearchRequest() : + m_bucketHasBeenSet(false), + m_expectedBucketOwnerHasBeenSet(false), + m_customizedAccessLogTagHasBeenSet(false) +{ +} + +Aws::String DeleteBucketMetaSearchRequest::SerializePayload() const +{ + return {}; +} + +void DeleteBucketMetaSearchRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(!m_customizedAccessLogTag.empty()) + { + // only accept customized LogTag which starts with "x-" + Aws::Map collectedLogTags; + for(const auto& entry: m_customizedAccessLogTag) + { + if (!entry.first.empty() && !entry.second.empty() && entry.first.substr(0, 2) == "x-") + { + collectedLogTags.emplace(entry.first, entry.second); + } + } + + if (!collectedLogTags.empty()) + { + uri.AddQueryStringParameter(collectedLogTags); + } + } +} + +Aws::Http::HeaderValueCollection DeleteBucketMetaSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_expectedBucketOwnerHasBeenSet) + { + ss << m_expectedBucketOwner; + headers.emplace("x-amz-expected-bucket-owner", ss.str()); + ss.str(""); + } + + return headers; +} diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchRequest.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchRequest.cpp new file mode 100644 index 0000000000000000000000000000000000000000..620efb14589586109f61050456be23a2fc3c322c --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchRequest.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::S3::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetBucketMetaSearchRequest::GetBucketMetaSearchRequest() : + m_bucketHasBeenSet(false), + m_expectedBucketOwnerHasBeenSet(false), + m_customizedAccessLogTagHasBeenSet(false) +{ +} + +Aws::String GetBucketMetaSearchRequest::SerializePayload() const +{ + return {}; +} + +void GetBucketMetaSearchRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(!m_customizedAccessLogTag.empty()) + { + // only accept customized LogTag which starts with "x-" + Aws::Map collectedLogTags; + for(const auto& entry: m_customizedAccessLogTag) + { + if (!entry.first.empty() && !entry.second.empty() && entry.first.substr(0, 2) == "x-") + { + collectedLogTags.emplace(entry.first, entry.second); + } + } + + if (!collectedLogTags.empty()) + { + uri.AddQueryStringParameter(collectedLogTags); + } + } +} + +Aws::Http::HeaderValueCollection GetBucketMetaSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + if(m_expectedBucketOwnerHasBeenSet) + { + ss << m_expectedBucketOwner; + headers.emplace("x-amz-expected-bucket-owner", ss.str()); + ss.str(""); + } + + return headers; +} diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchResult.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchResult.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ced9554c54ea1d3b01aedd0813d6cb1766da0d9a --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/GetBucketMetaSearchResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::S3::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws; + +GetBucketMetaSearchResult::GetBucketMetaSearchResult() +{ +} + +GetBucketMetaSearchResult::GetBucketMetaSearchResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetBucketMetaSearchResult& GetBucketMetaSearchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode resultNode = xmlDocument.GetRootElement(); + + if(!resultNode.IsNull()) + { + XmlNode ownerNode = resultNode.FirstChild("Owner"); + if(!ownerNode.IsNull()) + { + m_owner = ownerNode; + } + + XmlNode statusNode = resultNode.FirstChild("Status"); + if(!statusNode.IsNull()) + { + m_metasearch = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); + m_metasearchHasBeenSet = true; + } + } + + return *this; +} diff --git a/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/PutBucketMetaSearchRequest.cpp b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/PutBucketMetaSearchRequest.cpp new file mode 100644 index 0000000000000000000000000000000000000000..33548e98168134fab76caa225e769db1880e7429 --- /dev/null +++ b/aws-sdk-cpp-1.8.183/aws-sdk-cpp-1.8.183/aws-cpp-sdk-s3/source/model/PutBucketMetaSearchRequest.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +using namespace Aws::S3::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils; +using namespace Aws::Http; + +PutBucketMetaSearchRequest::PutBucketMetaSearchRequest() : + m_bucketHasBeenSet(false), + m_contentMD5HasBeenSet(false), + m_expectedBucketOwnerHasBeenSet(false), + m_metasearchHasBeenSet(false) +{ +} + +Aws::String PutBucketMetaSearchRequest::SerializePayload() const +{ + XmlDocument payloadDoc = XmlDocument::CreateWithRootNode("MetaSearchConfiguration"); + + XmlNode parentNode = payloadDoc.GetRootElement(); + parentNode.SetAttributeValue("xmlns", "http://s3.amazonaws.com/doc/2006-03-01/"); + + if(m_metasearchHasBeenSet) + { + XmlNode statusNode = parentNode.CreateChildElement("Status"); + statusNode.SetText(m_metasearch); + } + + if(parentNode.HasChildren()) + { + return payloadDoc.ConvertToString(); + } + + return {}; +} + +void PutBucketMetaSearchRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + +} + +Aws::Http::HeaderValueCollection PutBucketMetaSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + Aws::StringStream ss; + + if(m_contentMD5HasBeenSet) + { + ss << m_contentMD5; + headers.emplace("content-md5", ss.str()); + ss.str(""); + } + + if(m_expectedBucketOwnerHasBeenSet) + { + ss << m_expectedBucketOwner; + headers.emplace("x-amz-expected-bucket-owner", ss.str()); + ss.str(""); + } + + return headers; +}