Create convenience functions for requests that have full optional input. This also grants backwards compatibility to operations that previously never had a optional request, but now support one. i.e.
#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/ListBucketsRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::S3;
using namespace Aws::S3::Model;
auto main() -> int {
SDKOptions options;
options.loggingOptions.logLevel = Utils::Logging::LogLevel::Debug;
InitAPI(options);
{
const S3Client client;
const auto result = client.ListBuckets();
assert(result.IsSuccess());
const auto otherResult = client.ListBuckets(ListBucketsRequest());
assert(otherResult.IsSuccess());
}
ShutdownAPI(options);
return 0;
}
Check all that applies:
[x] Did a review by yourself.
[x] Added proper tests to cover this PR. (If tests are not applicable, explain.)
[x] Checked if this PR is a breaking (APIs have been changed) change.
[x] Checked if this PR will not introduce cross-platform inconsistent behavior.
[x] Checked if this PR would require a ReadMe/Wiki update.
Check which platforms you have built SDK on to verify the correctness of this PR.
[x] Linux
[x] Windows
[ ] Android
[x] MacOS
[ ] IOS
[ ] Other Platforms
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Description of changes:
Create convenience functions for requests that have full optional input. This also grants backwards compatibility to operations that previously never had a optional request, but now support one. i.e.
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.