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,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace GlacierEndpoint
{
AWS_GLACIER_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace GlacierEndpoint
} // namespace Glacier
} // namespace Aws

View File

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

View File

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

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
#include <aws/core/AmazonStreamingWebServiceRequest.h>
namespace Aws
{
namespace Glacier
{
class AWS_GLACIER_API GlacierRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~GlacierRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2012-06-01"));
headers.emplace(Aws::Http::HeaderValuePair("x-amz-glacier-version", "2012-06-01"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
typedef Aws::AmazonStreamingWebServiceRequest StreamingGlacierRequest;
} // namespace Glacier
} // namespace Aws

View File

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

View File

@@ -0,0 +1,211 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to abort a multipart upload identified by the upload ID.</p>
* <p>For information about the underlying REST API, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html">Abort
* Multipart Upload</a>. For conceptual information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working
* with Archives in Amazon S3 Glacier</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/AbortMultipartUploadInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API AbortMultipartUploadRequest : public GlacierRequest
{
public:
AbortMultipartUploadRequest();
// 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 "AbortMultipartUpload"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AbortMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AbortMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AbortMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline AbortMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AbortMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AbortMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>The upload ID of the multipart upload to delete.</p>
*/
inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_uploadId;
bool m_uploadIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input values for <code>AbortVaultLock</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/AbortVaultLockInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API AbortVaultLockRequest : public GlacierRequest
{
public:
AbortVaultLockRequest();
// 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 "AbortVaultLock"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline AbortVaultLockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline AbortVaultLockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline AbortVaultLockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline AbortVaultLockRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AbortVaultLockRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AbortVaultLockRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class ActionCode
{
NOT_SET,
ArchiveRetrieval,
InventoryRetrieval,
Select
};
namespace ActionCodeMapper
{
AWS_GLACIER_API ActionCode GetActionCodeForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForActionCode(ActionCode value);
} // namespace ActionCodeMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,246 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input values for <code>AddTagsToVault</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/AddTagsToVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API AddTagsToVaultRequest : public GlacierRequest
{
public:
AddTagsToVaultRequest();
// 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 "AddTagsToVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AddTagsToVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AddTagsToVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline AddTagsToVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline AddTagsToVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AddTagsToVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline AddTagsToVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags to add to the vault. Each tag is composed of a key and a value. The
* value can be an empty string.</p>
*/
inline AddTagsToVaultRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,338 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/FileHeaderInfo.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the comma-separated value (CSV) file to select
* from.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CSVInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CSVInput
{
public:
CSVInput();
CSVInput(Aws::Utils::Json::JsonView jsonValue);
CSVInput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline const FileHeaderInfo& GetFileHeaderInfo() const{ return m_fileHeaderInfo; }
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline bool FileHeaderInfoHasBeenSet() const { return m_fileHeaderInfoHasBeenSet; }
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline void SetFileHeaderInfo(const FileHeaderInfo& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = value; }
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline void SetFileHeaderInfo(FileHeaderInfo&& value) { m_fileHeaderInfoHasBeenSet = true; m_fileHeaderInfo = std::move(value); }
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline CSVInput& WithFileHeaderInfo(const FileHeaderInfo& value) { SetFileHeaderInfo(value); return *this;}
/**
* <p>Describes the first line of input. Valid values are <code>None</code>,
* <code>Ignore</code>, and <code>Use</code>.</p>
*/
inline CSVInput& WithFileHeaderInfo(FileHeaderInfo&& value) { SetFileHeaderInfo(std::move(value)); return *this;}
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline const Aws::String& GetComments() const{ return m_comments; }
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline void SetComments(const Aws::String& value) { m_commentsHasBeenSet = true; m_comments = value; }
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline void SetComments(Aws::String&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline void SetComments(const char* value) { m_commentsHasBeenSet = true; m_comments.assign(value); }
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline CSVInput& WithComments(const Aws::String& value) { SetComments(value); return *this;}
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline CSVInput& WithComments(Aws::String&& value) { SetComments(std::move(value)); return *this;}
/**
* <p>A single character used to indicate that a row should be ignored when the
* character is present at the start of that row.</p>
*/
inline CSVInput& WithComments(const char* value) { SetComments(value); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline const Aws::String& GetQuoteEscapeCharacter() const{ return m_quoteEscapeCharacter; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(const Aws::String& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = value; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(Aws::String&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::move(value); }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(const char* value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter.assign(value); }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVInput& WithQuoteEscapeCharacter(const Aws::String& value) { SetQuoteEscapeCharacter(value); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVInput& WithQuoteEscapeCharacter(Aws::String&& value) { SetQuoteEscapeCharacter(std::move(value)); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVInput& WithQuoteEscapeCharacter(const char* value) { SetQuoteEscapeCharacter(value); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline const Aws::String& GetRecordDelimiter() const{ return m_recordDelimiter; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(const Aws::String& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = value; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(Aws::String&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::move(value); }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(const char* value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter.assign(value); }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVInput& WithRecordDelimiter(const Aws::String& value) { SetRecordDelimiter(value); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVInput& WithRecordDelimiter(Aws::String&& value) { SetRecordDelimiter(std::move(value)); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVInput& WithRecordDelimiter(const char* value) { SetRecordDelimiter(value); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVInput& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVInput& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVInput& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline const Aws::String& GetQuoteCharacter() const{ return m_quoteCharacter; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(const Aws::String& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = value; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(Aws::String&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::move(value); }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(const char* value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter.assign(value); }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVInput& WithQuoteCharacter(const Aws::String& value) { SetQuoteCharacter(value); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVInput& WithQuoteCharacter(Aws::String&& value) { SetQuoteCharacter(std::move(value)); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVInput& WithQuoteCharacter(const char* value) { SetQuoteCharacter(value); return *this;}
private:
FileHeaderInfo m_fileHeaderInfo;
bool m_fileHeaderInfoHasBeenSet;
Aws::String m_comments;
bool m_commentsHasBeenSet;
Aws::String m_quoteEscapeCharacter;
bool m_quoteEscapeCharacterHasBeenSet;
Aws::String m_recordDelimiter;
bool m_recordDelimiterHasBeenSet;
Aws::String m_fieldDelimiter;
bool m_fieldDelimiterHasBeenSet;
Aws::String m_quoteCharacter;
bool m_quoteCharacterHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,286 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/QuoteFields.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the comma-separated value (CSV) file that the job
* results are stored in.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CSVOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CSVOutput
{
public:
CSVOutput();
CSVOutput(Aws::Utils::Json::JsonView jsonValue);
CSVOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline const QuoteFields& GetQuoteFields() const{ return m_quoteFields; }
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline bool QuoteFieldsHasBeenSet() const { return m_quoteFieldsHasBeenSet; }
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline void SetQuoteFields(const QuoteFields& value) { m_quoteFieldsHasBeenSet = true; m_quoteFields = value; }
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline void SetQuoteFields(QuoteFields&& value) { m_quoteFieldsHasBeenSet = true; m_quoteFields = std::move(value); }
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline CSVOutput& WithQuoteFields(const QuoteFields& value) { SetQuoteFields(value); return *this;}
/**
* <p>A value that indicates whether all output fields should be contained within
* quotation marks.</p>
*/
inline CSVOutput& WithQuoteFields(QuoteFields&& value) { SetQuoteFields(std::move(value)); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline const Aws::String& GetQuoteEscapeCharacter() const{ return m_quoteEscapeCharacter; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline bool QuoteEscapeCharacterHasBeenSet() const { return m_quoteEscapeCharacterHasBeenSet; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(const Aws::String& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = value; }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(Aws::String&& value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter = std::move(value); }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline void SetQuoteEscapeCharacter(const char* value) { m_quoteEscapeCharacterHasBeenSet = true; m_quoteEscapeCharacter.assign(value); }
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVOutput& WithQuoteEscapeCharacter(const Aws::String& value) { SetQuoteEscapeCharacter(value); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVOutput& WithQuoteEscapeCharacter(Aws::String&& value) { SetQuoteEscapeCharacter(std::move(value)); return *this;}
/**
* <p>A single character used for escaping the quotation-mark character inside an
* already escaped value.</p>
*/
inline CSVOutput& WithQuoteEscapeCharacter(const char* value) { SetQuoteEscapeCharacter(value); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline const Aws::String& GetRecordDelimiter() const{ return m_recordDelimiter; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline bool RecordDelimiterHasBeenSet() const { return m_recordDelimiterHasBeenSet; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(const Aws::String& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = value; }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(Aws::String&& value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter = std::move(value); }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline void SetRecordDelimiter(const char* value) { m_recordDelimiterHasBeenSet = true; m_recordDelimiter.assign(value); }
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVOutput& WithRecordDelimiter(const Aws::String& value) { SetRecordDelimiter(value); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVOutput& WithRecordDelimiter(Aws::String&& value) { SetRecordDelimiter(std::move(value)); return *this;}
/**
* <p>A value used to separate individual records from each other.</p>
*/
inline CSVOutput& WithRecordDelimiter(const char* value) { SetRecordDelimiter(value); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVOutput& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVOutput& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
/**
* <p>A value used to separate individual fields from each other within a
* record.</p>
*/
inline CSVOutput& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline const Aws::String& GetQuoteCharacter() const{ return m_quoteCharacter; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(const Aws::String& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = value; }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(Aws::String&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::move(value); }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline void SetQuoteCharacter(const char* value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter.assign(value); }
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVOutput& WithQuoteCharacter(const Aws::String& value) { SetQuoteCharacter(value); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVOutput& WithQuoteCharacter(Aws::String&& value) { SetQuoteCharacter(std::move(value)); return *this;}
/**
* <p>A value used as an escape character where the field delimiter is part of the
* value.</p>
*/
inline CSVOutput& WithQuoteCharacter(const char* value) { SetQuoteCharacter(value); return *this;}
private:
QuoteFields m_quoteFields;
bool m_quoteFieldsHasBeenSet;
Aws::String m_quoteEscapeCharacter;
bool m_quoteEscapeCharacterHasBeenSet;
Aws::String m_recordDelimiter;
bool m_recordDelimiterHasBeenSet;
Aws::String m_fieldDelimiter;
bool m_fieldDelimiterHasBeenSet;
Aws::String m_quoteCharacter;
bool m_quoteCharacterHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class CannedACL
{
NOT_SET,
private_,
public_read,
public_read_write,
aws_exec_read,
authenticated_read,
bucket_owner_read,
bucket_owner_full_control
};
namespace CannedACLMapper
{
AWS_GLACIER_API CannedACL GetCannedACLForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForCannedACL(CannedACL value);
} // namespace CannedACLMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,332 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to complete a multipart upload operation. This informs
* Amazon Glacier that all the archive parts have been uploaded and Amazon S3
* Glacier (Glacier) can now assemble the archive from the uploaded parts. After
* assembling and saving the archive to the vault, Glacier returns the URI path of
* the newly created archive resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CompleteMultipartUploadInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CompleteMultipartUploadRequest : public GlacierRequest
{
public:
CompleteMultipartUploadRequest();
// 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 "CompleteMultipartUpload"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline CompleteMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline CompleteMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline CompleteMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline CompleteMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CompleteMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CompleteMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline CompleteMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline CompleteMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline CompleteMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline const Aws::String& GetArchiveSize() const{ return m_archiveSize; }
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline bool ArchiveSizeHasBeenSet() const { return m_archiveSizeHasBeenSet; }
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline void SetArchiveSize(const Aws::String& value) { m_archiveSizeHasBeenSet = true; m_archiveSize = value; }
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline void SetArchiveSize(Aws::String&& value) { m_archiveSizeHasBeenSet = true; m_archiveSize = std::move(value); }
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline void SetArchiveSize(const char* value) { m_archiveSizeHasBeenSet = true; m_archiveSize.assign(value); }
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline CompleteMultipartUploadRequest& WithArchiveSize(const Aws::String& value) { SetArchiveSize(value); return *this;}
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline CompleteMultipartUploadRequest& WithArchiveSize(Aws::String&& value) { SetArchiveSize(std::move(value)); return *this;}
/**
* <p>The total size, in bytes, of the entire archive. This value should be the sum
* of all the sizes of the individual parts that you uploaded.</p>
*/
inline CompleteMultipartUploadRequest& WithArchiveSize(const char* value) { SetArchiveSize(value); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline CompleteMultipartUploadRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline CompleteMultipartUploadRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive. It is the tree hash of SHA256
* tree hash of the individual parts. If the value you specify in the request does
* not match the SHA256 tree hash of the final assembled archive as computed by
* Amazon S3 Glacier (Glacier), Glacier returns an error and the request fails.</p>
*/
inline CompleteMultipartUploadRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_uploadId;
bool m_uploadIdHasBeenSet;
Aws::String m_archiveSize;
bool m_archiveSizeHasBeenSet;
Aws::String m_checksum;
bool m_checksumHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p> <p>For
* information about the underlying REST API, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html">Upload
* Archive</a>. For conceptual information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working
* with Archives in Amazon S3 Glacier</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ArchiveCreationOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CompleteMultipartUploadResult
{
public:
CompleteMultipartUploadResult();
CompleteMultipartUploadResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CompleteMultipartUploadResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline CompleteMultipartUploadResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline CompleteMultipartUploadResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline CompleteMultipartUploadResult& WithLocation(const char* value) { SetLocation(value); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(const char* value) { m_checksum.assign(value); }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline CompleteMultipartUploadResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline CompleteMultipartUploadResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline CompleteMultipartUploadResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(const char* value) { m_archiveId.assign(value); }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline CompleteMultipartUploadResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline CompleteMultipartUploadResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline CompleteMultipartUploadResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
private:
Aws::String m_location;
Aws::String m_checksum;
Aws::String m_archiveId;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input values for <code>CompleteVaultLock</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CompleteVaultLockInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CompleteVaultLockRequest : public GlacierRequest
{
public:
CompleteVaultLockRequest();
// 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 "CompleteVaultLock"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline CompleteVaultLockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline CompleteVaultLockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline CompleteVaultLockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline CompleteVaultLockRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CompleteVaultLockRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CompleteVaultLockRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline const Aws::String& GetLockId() const{ return m_lockId; }
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline bool LockIdHasBeenSet() const { return m_lockIdHasBeenSet; }
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline void SetLockId(const Aws::String& value) { m_lockIdHasBeenSet = true; m_lockId = value; }
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline void SetLockId(Aws::String&& value) { m_lockIdHasBeenSet = true; m_lockId = std::move(value); }
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline void SetLockId(const char* value) { m_lockIdHasBeenSet = true; m_lockId.assign(value); }
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline CompleteVaultLockRequest& WithLockId(const Aws::String& value) { SetLockId(value); return *this;}
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline CompleteVaultLockRequest& WithLockId(Aws::String&& value) { SetLockId(std::move(value)); return *this;}
/**
* <p>The <code>lockId</code> value is the lock ID obtained from a
* <a>InitiateVaultLock</a> request.</p>
*/
inline CompleteVaultLockRequest& WithLockId(const char* value) { SetLockId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_lockId;
bool m_lockIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to create a vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CreateVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CreateVaultRequest : public GlacierRequest
{
public:
CreateVaultRequest();
// 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 "CreateVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline CreateVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline CreateVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated
* with the credentials used to sign the request. If you specify your account ID,
* do not include any hyphens ('-') in the ID.</p>
*/
inline CreateVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline CreateVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CreateVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline CreateVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/CreateVaultOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API CreateVaultResult
{
public:
CreateVaultResult();
CreateVaultResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateVaultResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The URI of the vault that was created.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The URI of the vault that was created.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The URI of the vault that was created.</p>
*/
inline CreateVaultResult& WithLocation(const char* value) { SetLocation(value); return *this;}
private:
Aws::String m_location;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glacier/model/DataRetrievalRule.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Data retrieval policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DataRetrievalPolicy">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DataRetrievalPolicy
{
public:
DataRetrievalPolicy();
DataRetrievalPolicy(Aws::Utils::Json::JsonView jsonValue);
DataRetrievalPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline const Aws::Vector<DataRetrievalRule>& GetRules() const{ return m_rules; }
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline void SetRules(const Aws::Vector<DataRetrievalRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline void SetRules(Aws::Vector<DataRetrievalRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline DataRetrievalPolicy& WithRules(const Aws::Vector<DataRetrievalRule>& value) { SetRules(value); return *this;}
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline DataRetrievalPolicy& WithRules(Aws::Vector<DataRetrievalRule>&& value) { SetRules(std::move(value)); return *this;}
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline DataRetrievalPolicy& AddRules(const DataRetrievalRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
/**
* <p>The policy rule. Although this is a list type, currently there must be only
* one rule, which contains a Strategy field and optionally a BytesPerHour
* field.</p>
*/
inline DataRetrievalPolicy& AddRules(DataRetrievalRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DataRetrievalRule> m_rules;
bool m_rulesHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Data retrieval policy rule.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DataRetrievalRule">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DataRetrievalRule
{
public:
DataRetrievalRule();
DataRetrievalRule(Aws::Utils::Json::JsonView jsonValue);
DataRetrievalRule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline const Aws::String& GetStrategy() const{ return m_strategy; }
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline void SetStrategy(const Aws::String& value) { m_strategyHasBeenSet = true; m_strategy = value; }
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline void SetStrategy(Aws::String&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline void SetStrategy(const char* value) { m_strategyHasBeenSet = true; m_strategy.assign(value); }
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline DataRetrievalRule& WithStrategy(const Aws::String& value) { SetStrategy(value); return *this;}
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline DataRetrievalRule& WithStrategy(Aws::String&& value) { SetStrategy(std::move(value)); return *this;}
/**
* <p>The type of data retrieval policy to set.</p> <p>Valid values:
* BytesPerHour|FreeTier|None</p>
*/
inline DataRetrievalRule& WithStrategy(const char* value) { SetStrategy(value); return *this;}
/**
* <p>The maximum number of bytes that can be retrieved in an hour.</p> <p>This
* field is required only if the value of the Strategy field is
* <code>BytesPerHour</code>. Your PUT operation will be rejected if the Strategy
* field is not set to <code>BytesPerHour</code> and you set this field.</p>
*/
inline long long GetBytesPerHour() const{ return m_bytesPerHour; }
/**
* <p>The maximum number of bytes that can be retrieved in an hour.</p> <p>This
* field is required only if the value of the Strategy field is
* <code>BytesPerHour</code>. Your PUT operation will be rejected if the Strategy
* field is not set to <code>BytesPerHour</code> and you set this field.</p>
*/
inline bool BytesPerHourHasBeenSet() const { return m_bytesPerHourHasBeenSet; }
/**
* <p>The maximum number of bytes that can be retrieved in an hour.</p> <p>This
* field is required only if the value of the Strategy field is
* <code>BytesPerHour</code>. Your PUT operation will be rejected if the Strategy
* field is not set to <code>BytesPerHour</code> and you set this field.</p>
*/
inline void SetBytesPerHour(long long value) { m_bytesPerHourHasBeenSet = true; m_bytesPerHour = value; }
/**
* <p>The maximum number of bytes that can be retrieved in an hour.</p> <p>This
* field is required only if the value of the Strategy field is
* <code>BytesPerHour</code>. Your PUT operation will be rejected if the Strategy
* field is not set to <code>BytesPerHour</code> and you set this field.</p>
*/
inline DataRetrievalRule& WithBytesPerHour(long long value) { SetBytesPerHour(value); return *this;}
private:
Aws::String m_strategy;
bool m_strategyHasBeenSet;
long long m_bytesPerHour;
bool m_bytesPerHourHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,207 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for deleting an archive from an Amazon S3 Glacier
* vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DeleteArchiveInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DeleteArchiveRequest : public GlacierRequest
{
public:
DeleteArchiveRequest();
// 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 "DeleteArchive"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DeleteArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The ID of the archive to delete.</p>
*/
inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
/**
* <p>The ID of the archive to delete.</p>
*/
inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
/**
* <p>The ID of the archive to delete.</p>
*/
inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
/**
* <p>The ID of the archive to delete.</p>
*/
inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
/**
* <p>The ID of the archive to delete.</p>
*/
inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
/**
* <p>The ID of the archive to delete.</p>
*/
inline DeleteArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
/**
* <p>The ID of the archive to delete.</p>
*/
inline DeleteArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
/**
* <p>The ID of the archive to delete.</p>
*/
inline DeleteArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_archiveId;
bool m_archiveIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>DeleteVaultAccessPolicy input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DeleteVaultAccessPolicyInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DeleteVaultAccessPolicyRequest : public GlacierRequest
{
public:
DeleteVaultAccessPolicyRequest();
// 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 "DeleteVaultAccessPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultAccessPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultAccessPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultAccessPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultAccessPolicyRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultAccessPolicyRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultAccessPolicyRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for deleting a vault notification configuration from an
* Amazon Glacier vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DeleteVaultNotificationsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DeleteVaultNotificationsRequest : public GlacierRequest
{
public:
DeleteVaultNotificationsRequest();
// 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 "DeleteVaultNotifications"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultNotificationsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultNotificationsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DeleteVaultNotificationsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultNotificationsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultNotificationsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultNotificationsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for deleting a vault from Amazon S3 Glacier.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DeleteVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DeleteVaultRequest : public GlacierRequest
{
public:
DeleteVaultRequest();
// 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 "DeleteVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline DeleteVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DeleteVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,207 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving a job description.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DescribeJobInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DescribeJobRequest : public GlacierRequest
{
public:
DescribeJobRequest();
// 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 "DescribeJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DescribeJobRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeJobRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeJobRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The ID of the job to describe.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The ID of the job to describe.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The ID of the job to describe.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The ID of the job to describe.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The ID of the job to describe.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The ID of the job to describe.</p>
*/
inline DescribeJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The ID of the job to describe.</p>
*/
inline DescribeJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The ID of the job to describe.</p>
*/
inline DescribeJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,924 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/ActionCode.h>
#include <aws/glacier/model/StatusCode.h>
#include <aws/glacier/model/InventoryRetrievalJobDescription.h>
#include <aws/glacier/model/SelectParameters.h>
#include <aws/glacier/model/OutputLocation.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the description of an Amazon S3 Glacier job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GlacierJobDescription">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DescribeJobResult
{
public:
DescribeJobResult();
DescribeJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline DescribeJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline DescribeJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>An opaque string that identifies an Amazon S3 Glacier job.</p>
*/
inline DescribeJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The job description provided when initiating the job.</p>
*/
inline const Aws::String& GetJobDescription() const{ return m_jobDescription; }
/**
* <p>The job description provided when initiating the job.</p>
*/
inline void SetJobDescription(const Aws::String& value) { m_jobDescription = value; }
/**
* <p>The job description provided when initiating the job.</p>
*/
inline void SetJobDescription(Aws::String&& value) { m_jobDescription = std::move(value); }
/**
* <p>The job description provided when initiating the job.</p>
*/
inline void SetJobDescription(const char* value) { m_jobDescription.assign(value); }
/**
* <p>The job description provided when initiating the job.</p>
*/
inline DescribeJobResult& WithJobDescription(const Aws::String& value) { SetJobDescription(value); return *this;}
/**
* <p>The job description provided when initiating the job.</p>
*/
inline DescribeJobResult& WithJobDescription(Aws::String&& value) { SetJobDescription(std::move(value)); return *this;}
/**
* <p>The job description provided when initiating the job.</p>
*/
inline DescribeJobResult& WithJobDescription(const char* value) { SetJobDescription(value); return *this;}
/**
* <p>The job type. This value is either <code>ArchiveRetrieval</code>,
* <code>InventoryRetrieval</code>, or <code>Select</code>. </p>
*/
inline const ActionCode& GetAction() const{ return m_action; }
/**
* <p>The job type. This value is either <code>ArchiveRetrieval</code>,
* <code>InventoryRetrieval</code>, or <code>Select</code>. </p>
*/
inline void SetAction(const ActionCode& value) { m_action = value; }
/**
* <p>The job type. This value is either <code>ArchiveRetrieval</code>,
* <code>InventoryRetrieval</code>, or <code>Select</code>. </p>
*/
inline void SetAction(ActionCode&& value) { m_action = std::move(value); }
/**
* <p>The job type. This value is either <code>ArchiveRetrieval</code>,
* <code>InventoryRetrieval</code>, or <code>Select</code>. </p>
*/
inline DescribeJobResult& WithAction(const ActionCode& value) { SetAction(value); return *this;}
/**
* <p>The job type. This value is either <code>ArchiveRetrieval</code>,
* <code>InventoryRetrieval</code>, or <code>Select</code>. </p>
*/
inline DescribeJobResult& WithAction(ActionCode&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; }
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); }
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline void SetArchiveId(const char* value) { m_archiveId.assign(value); }
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline DescribeJobResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline DescribeJobResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
/**
* <p>The archive ID requested for a select job or archive retrieval. Otherwise,
* this field is null.</p>
*/
inline DescribeJobResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline const Aws::String& GetVaultARN() const{ return m_vaultARN; }
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline void SetVaultARN(const Aws::String& value) { m_vaultARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline void SetVaultARN(Aws::String&& value) { m_vaultARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline void SetVaultARN(const char* value) { m_vaultARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline DescribeJobResult& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline DescribeJobResult& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault from which an archive retrieval
* was requested.</p>
*/
inline DescribeJobResult& WithVaultARN(const char* value) { SetVaultARN(value); return *this;}
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; }
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); }
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDate.assign(value); }
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline DescribeJobResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline DescribeJobResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The UTC date when the job was created. This value is a string representation
* of ISO 8601 date format, for example
* <code>"2012-03-20T17:03:43.221Z"</code>.</p>
*/
inline DescribeJobResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
/**
* <p>The job status. When a job is completed, you get the job's output using Get
* Job Output (GET output).</p>
*/
inline bool GetCompleted() const{ return m_completed; }
/**
* <p>The job status. When a job is completed, you get the job's output using Get
* Job Output (GET output).</p>
*/
inline void SetCompleted(bool value) { m_completed = value; }
/**
* <p>The job status. When a job is completed, you get the job's output using Get
* Job Output (GET output).</p>
*/
inline DescribeJobResult& WithCompleted(bool value) { SetCompleted(value); return *this;}
/**
* <p>The status code can be <code>InProgress</code>, <code>Succeeded</code>, or
* <code>Failed</code>, and indicates the status of the job.</p>
*/
inline const StatusCode& GetStatusCode() const{ return m_statusCode; }
/**
* <p>The status code can be <code>InProgress</code>, <code>Succeeded</code>, or
* <code>Failed</code>, and indicates the status of the job.</p>
*/
inline void SetStatusCode(const StatusCode& value) { m_statusCode = value; }
/**
* <p>The status code can be <code>InProgress</code>, <code>Succeeded</code>, or
* <code>Failed</code>, and indicates the status of the job.</p>
*/
inline void SetStatusCode(StatusCode&& value) { m_statusCode = std::move(value); }
/**
* <p>The status code can be <code>InProgress</code>, <code>Succeeded</code>, or
* <code>Failed</code>, and indicates the status of the job.</p>
*/
inline DescribeJobResult& WithStatusCode(const StatusCode& value) { SetStatusCode(value); return *this;}
/**
* <p>The status code can be <code>InProgress</code>, <code>Succeeded</code>, or
* <code>Failed</code>, and indicates the status of the job.</p>
*/
inline DescribeJobResult& WithStatusCode(StatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
/**
* <p>A friendly message that describes the job status.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>A friendly message that describes the job status.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
/**
* <p>A friendly message that describes the job status.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
/**
* <p>A friendly message that describes the job status.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
/**
* <p>A friendly message that describes the job status.</p>
*/
inline DescribeJobResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>A friendly message that describes the job status.</p>
*/
inline DescribeJobResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>A friendly message that describes the job status.</p>
*/
inline DescribeJobResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>For an archive retrieval job, this value is the size in bytes of the archive
* being requested for download. For an inventory retrieval or select job, this
* value is null.</p>
*/
inline long long GetArchiveSizeInBytes() const{ return m_archiveSizeInBytes; }
/**
* <p>For an archive retrieval job, this value is the size in bytes of the archive
* being requested for download. For an inventory retrieval or select job, this
* value is null.</p>
*/
inline void SetArchiveSizeInBytes(long long value) { m_archiveSizeInBytes = value; }
/**
* <p>For an archive retrieval job, this value is the size in bytes of the archive
* being requested for download. For an inventory retrieval or select job, this
* value is null.</p>
*/
inline DescribeJobResult& WithArchiveSizeInBytes(long long value) { SetArchiveSizeInBytes(value); return *this;}
/**
* <p>For an inventory retrieval job, this value is the size in bytes of the
* inventory requested for download. For an archive retrieval or select job, this
* value is null.</p>
*/
inline long long GetInventorySizeInBytes() const{ return m_inventorySizeInBytes; }
/**
* <p>For an inventory retrieval job, this value is the size in bytes of the
* inventory requested for download. For an archive retrieval or select job, this
* value is null.</p>
*/
inline void SetInventorySizeInBytes(long long value) { m_inventorySizeInBytes = value; }
/**
* <p>For an inventory retrieval job, this value is the size in bytes of the
* inventory requested for download. For an archive retrieval or select job, this
* value is null.</p>
*/
inline DescribeJobResult& WithInventorySizeInBytes(long long value) { SetInventorySizeInBytes(value); return *this;}
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline void SetSNSTopic(const Aws::String& value) { m_sNSTopic = value; }
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline void SetSNSTopic(Aws::String&& value) { m_sNSTopic = std::move(value); }
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline void SetSNSTopic(const char* value) { m_sNSTopic.assign(value); }
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline DescribeJobResult& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline DescribeJobResult& WithSNSTopic(Aws::String&& value) { SetSNSTopic(std::move(value)); return *this;}
/**
* <p>An Amazon SNS topic that receives notification.</p>
*/
inline DescribeJobResult& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline const Aws::String& GetCompletionDate() const{ return m_completionDate; }
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline void SetCompletionDate(const Aws::String& value) { m_completionDate = value; }
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline void SetCompletionDate(Aws::String&& value) { m_completionDate = std::move(value); }
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline void SetCompletionDate(const char* value) { m_completionDate.assign(value); }
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline DescribeJobResult& WithCompletionDate(const Aws::String& value) { SetCompletionDate(value); return *this;}
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline DescribeJobResult& WithCompletionDate(Aws::String&& value) { SetCompletionDate(std::move(value)); return *this;}
/**
* <p>The UTC time that the job request completed. While the job is in progress,
* the value is null.</p>
*/
inline DescribeJobResult& WithCompletionDate(const char* value) { SetCompletionDate(value); return *this;}
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline const Aws::String& GetSHA256TreeHash() const{ return m_sHA256TreeHash; }
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline void SetSHA256TreeHash(const Aws::String& value) { m_sHA256TreeHash = value; }
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline void SetSHA256TreeHash(Aws::String&& value) { m_sHA256TreeHash = std::move(value); }
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline void SetSHA256TreeHash(const char* value) { m_sHA256TreeHash.assign(value); }
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline DescribeJobResult& WithSHA256TreeHash(const Aws::String& value) { SetSHA256TreeHash(value); return *this;}
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline DescribeJobResult& WithSHA256TreeHash(Aws::String&& value) { SetSHA256TreeHash(std::move(value)); return *this;}
/**
* <p>For an archive retrieval job, this value is the checksum of the archive.
* Otherwise, this value is null.</p> <p>The SHA256 tree hash value for the
* requested range of an archive. If the <b>InitiateJob</b> request for an archive
* specified a tree-hash aligned range, then this field returns a value.</p> <p>If
* the whole archive is retrieved, this value is the same as the
* ArchiveSHA256TreeHash value.</p> <p>This field is null for the following:</p>
* <ul> <li> <p>Archive retrieval jobs that specify a range that is not tree-hash
* aligned</p> </li> </ul> <ul> <li> <p>Archival jobs that specify a range that is
* equal to the whole archive, when the job status is <code>InProgress</code> </p>
* </li> </ul> <ul> <li> <p>Inventory jobs</p> </li> <li> <p>Select jobs</p> </li>
* </ul>
*/
inline DescribeJobResult& WithSHA256TreeHash(const char* value) { SetSHA256TreeHash(value); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline const Aws::String& GetArchiveSHA256TreeHash() const{ return m_archiveSHA256TreeHash; }
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline void SetArchiveSHA256TreeHash(const Aws::String& value) { m_archiveSHA256TreeHash = value; }
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline void SetArchiveSHA256TreeHash(Aws::String&& value) { m_archiveSHA256TreeHash = std::move(value); }
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline void SetArchiveSHA256TreeHash(const char* value) { m_archiveSHA256TreeHash.assign(value); }
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline DescribeJobResult& WithArchiveSHA256TreeHash(const Aws::String& value) { SetArchiveSHA256TreeHash(value); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline DescribeJobResult& WithArchiveSHA256TreeHash(Aws::String&& value) { SetArchiveSHA256TreeHash(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash of the entire archive for an archive retrieval. For
* inventory retrieval or select jobs, this field is null.</p>
*/
inline DescribeJobResult& WithArchiveSHA256TreeHash(const char* value) { SetArchiveSHA256TreeHash(value); return *this;}
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline const Aws::String& GetRetrievalByteRange() const{ return m_retrievalByteRange; }
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline void SetRetrievalByteRange(const Aws::String& value) { m_retrievalByteRange = value; }
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline void SetRetrievalByteRange(Aws::String&& value) { m_retrievalByteRange = std::move(value); }
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline void SetRetrievalByteRange(const char* value) { m_retrievalByteRange.assign(value); }
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline DescribeJobResult& WithRetrievalByteRange(const Aws::String& value) { SetRetrievalByteRange(value); return *this;}
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline DescribeJobResult& WithRetrievalByteRange(Aws::String&& value) { SetRetrievalByteRange(std::move(value)); return *this;}
/**
* <p>The retrieved byte range for archive retrieval jobs in the form
* <i>StartByteValue</i>-<i>EndByteValue</i>. If no range was specified in the
* archive retrieval, then the whole archive is retrieved. In this case,
* <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size of the
* archive minus 1. For inventory retrieval or select jobs, this field is null.
* </p>
*/
inline DescribeJobResult& WithRetrievalByteRange(const char* value) { SetRetrievalByteRange(value); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline const Aws::String& GetTier() const{ return m_tier; }
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(const Aws::String& value) { m_tier = value; }
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(Aws::String&& value) { m_tier = std::move(value); }
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(const char* value) { m_tier.assign(value); }
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline DescribeJobResult& WithTier(const Aws::String& value) { SetTier(value); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline DescribeJobResult& WithTier(Aws::String&& value) { SetTier(std::move(value)); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline DescribeJobResult& WithTier(const char* value) { SetTier(value); return *this;}
/**
* <p>Parameters used for range inventory retrieval.</p>
*/
inline const InventoryRetrievalJobDescription& GetInventoryRetrievalParameters() const{ return m_inventoryRetrievalParameters; }
/**
* <p>Parameters used for range inventory retrieval.</p>
*/
inline void SetInventoryRetrievalParameters(const InventoryRetrievalJobDescription& value) { m_inventoryRetrievalParameters = value; }
/**
* <p>Parameters used for range inventory retrieval.</p>
*/
inline void SetInventoryRetrievalParameters(InventoryRetrievalJobDescription&& value) { m_inventoryRetrievalParameters = std::move(value); }
/**
* <p>Parameters used for range inventory retrieval.</p>
*/
inline DescribeJobResult& WithInventoryRetrievalParameters(const InventoryRetrievalJobDescription& value) { SetInventoryRetrievalParameters(value); return *this;}
/**
* <p>Parameters used for range inventory retrieval.</p>
*/
inline DescribeJobResult& WithInventoryRetrievalParameters(InventoryRetrievalJobDescription&& value) { SetInventoryRetrievalParameters(std::move(value)); return *this;}
/**
* <p>Contains the job output location.</p>
*/
inline const Aws::String& GetJobOutputPath() const{ return m_jobOutputPath; }
/**
* <p>Contains the job output location.</p>
*/
inline void SetJobOutputPath(const Aws::String& value) { m_jobOutputPath = value; }
/**
* <p>Contains the job output location.</p>
*/
inline void SetJobOutputPath(Aws::String&& value) { m_jobOutputPath = std::move(value); }
/**
* <p>Contains the job output location.</p>
*/
inline void SetJobOutputPath(const char* value) { m_jobOutputPath.assign(value); }
/**
* <p>Contains the job output location.</p>
*/
inline DescribeJobResult& WithJobOutputPath(const Aws::String& value) { SetJobOutputPath(value); return *this;}
/**
* <p>Contains the job output location.</p>
*/
inline DescribeJobResult& WithJobOutputPath(Aws::String&& value) { SetJobOutputPath(std::move(value)); return *this;}
/**
* <p>Contains the job output location.</p>
*/
inline DescribeJobResult& WithJobOutputPath(const char* value) { SetJobOutputPath(value); return *this;}
/**
* <p>Contains the parameters used for a select.</p>
*/
inline const SelectParameters& GetSelectParameters() const{ return m_selectParameters; }
/**
* <p>Contains the parameters used for a select.</p>
*/
inline void SetSelectParameters(const SelectParameters& value) { m_selectParameters = value; }
/**
* <p>Contains the parameters used for a select.</p>
*/
inline void SetSelectParameters(SelectParameters&& value) { m_selectParameters = std::move(value); }
/**
* <p>Contains the parameters used for a select.</p>
*/
inline DescribeJobResult& WithSelectParameters(const SelectParameters& value) { SetSelectParameters(value); return *this;}
/**
* <p>Contains the parameters used for a select.</p>
*/
inline DescribeJobResult& WithSelectParameters(SelectParameters&& value) { SetSelectParameters(std::move(value)); return *this;}
/**
* <p>Contains the location where the data from the select job is stored.</p>
*/
inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
/**
* <p>Contains the location where the data from the select job is stored.</p>
*/
inline void SetOutputLocation(const OutputLocation& value) { m_outputLocation = value; }
/**
* <p>Contains the location where the data from the select job is stored.</p>
*/
inline void SetOutputLocation(OutputLocation&& value) { m_outputLocation = std::move(value); }
/**
* <p>Contains the location where the data from the select job is stored.</p>
*/
inline DescribeJobResult& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;}
/**
* <p>Contains the location where the data from the select job is stored.</p>
*/
inline DescribeJobResult& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
private:
Aws::String m_jobId;
Aws::String m_jobDescription;
ActionCode m_action;
Aws::String m_archiveId;
Aws::String m_vaultARN;
Aws::String m_creationDate;
bool m_completed;
StatusCode m_statusCode;
Aws::String m_statusMessage;
long long m_archiveSizeInBytes;
long long m_inventorySizeInBytes;
Aws::String m_sNSTopic;
Aws::String m_completionDate;
Aws::String m_sHA256TreeHash;
Aws::String m_archiveSHA256TreeHash;
Aws::String m_retrievalByteRange;
Aws::String m_tier;
InventoryRetrievalJobDescription m_inventoryRetrievalParameters;
Aws::String m_jobOutputPath;
SelectParameters m_selectParameters;
OutputLocation m_outputLocation;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,317 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DescribeVaultOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DescribeVaultOutput
{
public:
DescribeVaultOutput();
DescribeVaultOutput(Aws::Utils::Json::JsonView jsonValue);
DescribeVaultOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline const Aws::String& GetVaultARN() const{ return m_vaultARN; }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline bool VaultARNHasBeenSet() const { return m_vaultARNHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(const Aws::String& value) { m_vaultARNHasBeenSet = true; m_vaultARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(Aws::String&& value) { m_vaultARNHasBeenSet = true; m_vaultARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(const char* value) { m_vaultARNHasBeenSet = true; m_vaultARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultARN(const char* value) { SetVaultARN(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultOutput& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline const Aws::String& GetLastInventoryDate() const{ return m_lastInventoryDate; }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline bool LastInventoryDateHasBeenSet() const { return m_lastInventoryDateHasBeenSet; }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(const Aws::String& value) { m_lastInventoryDateHasBeenSet = true; m_lastInventoryDate = value; }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(Aws::String&& value) { m_lastInventoryDateHasBeenSet = true; m_lastInventoryDate = std::move(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(const char* value) { m_lastInventoryDateHasBeenSet = true; m_lastInventoryDate.assign(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithLastInventoryDate(const Aws::String& value) { SetLastInventoryDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithLastInventoryDate(Aws::String&& value) { SetLastInventoryDate(std::move(value)); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultOutput& WithLastInventoryDate(const char* value) { SetLastInventoryDate(value); return *this;}
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline long long GetNumberOfArchives() const{ return m_numberOfArchives; }
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline bool NumberOfArchivesHasBeenSet() const { return m_numberOfArchivesHasBeenSet; }
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline void SetNumberOfArchives(long long value) { m_numberOfArchivesHasBeenSet = true; m_numberOfArchives = value; }
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline DescribeVaultOutput& WithNumberOfArchives(long long value) { SetNumberOfArchives(value); return *this;}
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline long long GetSizeInBytes() const{ return m_sizeInBytes; }
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline DescribeVaultOutput& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
private:
Aws::String m_vaultARN;
bool m_vaultARNHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_creationDate;
bool m_creationDateHasBeenSet;
Aws::String m_lastInventoryDate;
bool m_lastInventoryDateHasBeenSet;
long long m_numberOfArchives;
bool m_numberOfArchivesHasBeenSet;
long long m_sizeInBytes;
bool m_sizeInBytesHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving metadata for a specific vault in Amazon
* Glacier.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DescribeVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DescribeVaultRequest : public GlacierRequest
{
public:
DescribeVaultRequest();
// 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 "DescribeVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline DescribeVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/DescribeVaultOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API DescribeVaultResult
{
public:
DescribeVaultResult();
DescribeVaultResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeVaultResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline const Aws::String& GetVaultARN() const{ return m_vaultARN; }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(const Aws::String& value) { m_vaultARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(Aws::String&& value) { m_vaultARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline void SetVaultARN(const char* value) { m_vaultARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultResult& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultResult& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault.</p>
*/
inline DescribeVaultResult& WithVaultARN(const char* value) { SetVaultARN(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultResult& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultResult& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline DescribeVaultResult& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDate.assign(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when the vault was created. This
* value should be a string in the ISO 8601 date format, for example
* <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline const Aws::String& GetLastInventoryDate() const{ return m_lastInventoryDate; }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(const Aws::String& value) { m_lastInventoryDate = value; }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(Aws::String&& value) { m_lastInventoryDate = std::move(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline void SetLastInventoryDate(const char* value) { m_lastInventoryDate.assign(value); }
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithLastInventoryDate(const Aws::String& value) { SetLastInventoryDate(value); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithLastInventoryDate(Aws::String&& value) { SetLastInventoryDate(std::move(value)); return *this;}
/**
* <p>The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed
* the last vault inventory. This value should be a string in the ISO 8601 date
* format, for example <code>2012-03-20T17:03:43.221Z</code>.</p>
*/
inline DescribeVaultResult& WithLastInventoryDate(const char* value) { SetLastInventoryDate(value); return *this;}
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline long long GetNumberOfArchives() const{ return m_numberOfArchives; }
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline void SetNumberOfArchives(long long value) { m_numberOfArchives = value; }
/**
* <p>The number of archives in the vault as of the last inventory date. This field
* will return <code>null</code> if an inventory has not yet run on the vault, for
* example if you just created the vault.</p>
*/
inline DescribeVaultResult& WithNumberOfArchives(long long value) { SetNumberOfArchives(value); return *this;}
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline long long GetSizeInBytes() const{ return m_sizeInBytes; }
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline void SetSizeInBytes(long long value) { m_sizeInBytes = value; }
/**
* <p>Total size, in bytes, of the archives in the vault as of the last inventory
* date. This field will return null if an inventory has not yet run on the vault,
* for example if you just created the vault.</p>
*/
inline DescribeVaultResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
private:
Aws::String m_vaultARN;
Aws::String m_vaultName;
Aws::String m_creationDate;
Aws::String m_lastInventoryDate;
long long m_numberOfArchives;
long long m_sizeInBytes;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,198 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/EncryptionType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/Encryption">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API Encryption
{
public:
Encryption();
Encryption(Aws::Utils::Json::JsonView jsonValue);
Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline Encryption& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
/**
* <p>The server-side encryption algorithm used when storing job results in Amazon
* S3, for example <code>AES256</code> or <code>aws:kms</code>.</p>
*/
inline Encryption& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline Encryption& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline Encryption& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
/**
* <p>The AWS KMS key ID to use for object encryption. All GET and PUT requests for
* an object protected by AWS KMS fail if not made by using Secure Sockets Layer
* (SSL) or Signature Version 4. </p>
*/
inline Encryption& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline const Aws::String& GetKMSContext() const{ return m_kMSContext; }
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline bool KMSContextHasBeenSet() const { return m_kMSContextHasBeenSet; }
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline void SetKMSContext(const Aws::String& value) { m_kMSContextHasBeenSet = true; m_kMSContext = value; }
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline void SetKMSContext(Aws::String&& value) { m_kMSContextHasBeenSet = true; m_kMSContext = std::move(value); }
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline void SetKMSContext(const char* value) { m_kMSContextHasBeenSet = true; m_kMSContext.assign(value); }
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline Encryption& WithKMSContext(const Aws::String& value) { SetKMSContext(value); return *this;}
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline Encryption& WithKMSContext(Aws::String&& value) { SetKMSContext(std::move(value)); return *this;}
/**
* <p>Optional. If the encryption type is <code>aws:kms</code>, you can use this
* value to specify the encryption context for the job results.</p>
*/
inline Encryption& WithKMSContext(const char* value) { SetKMSContext(value); return *this;}
private:
EncryptionType m_encryptionType;
bool m_encryptionTypeHasBeenSet;
Aws::String m_kMSKeyId;
bool m_kMSKeyIdHasBeenSet;
Aws::String m_kMSContext;
bool m_kMSContextHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class EncryptionType
{
NOT_SET,
aws_kms,
AES256
};
namespace EncryptionTypeMapper
{
AWS_GLACIER_API EncryptionType GetEncryptionTypeForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForEncryptionType(EncryptionType value);
} // namespace EncryptionTypeMapper
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class ExpressionType
{
NOT_SET,
SQL
};
namespace ExpressionTypeMapper
{
AWS_GLACIER_API ExpressionType GetExpressionTypeForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForExpressionType(ExpressionType value);
} // namespace ExpressionTypeMapper
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class FileHeaderInfo
{
NOT_SET,
USE,
IGNORE,
NONE
};
namespace FileHeaderInfoMapper
{
AWS_GLACIER_API FileHeaderInfo GetFileHeaderInfoForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForFileHeaderInfo(FileHeaderInfo value);
} // namespace FileHeaderInfoMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,126 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Input for GetDataRetrievalPolicy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetDataRetrievalPolicyInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetDataRetrievalPolicyRequest : public GlacierRequest
{
public:
GetDataRetrievalPolicyRequest();
// 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 "GetDataRetrievalPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline GetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline GetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID. </p>
*/
inline GetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/DataRetrievalPolicy.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to the
* <code>GetDataRetrievalPolicy</code> request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetDataRetrievalPolicyOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetDataRetrievalPolicyResult
{
public:
GetDataRetrievalPolicyResult();
GetDataRetrievalPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDataRetrievalPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the returned data retrieval policy in JSON format.</p>
*/
inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
/**
* <p>Contains the returned data retrieval policy in JSON format.</p>
*/
inline void SetPolicy(const DataRetrievalPolicy& value) { m_policy = value; }
/**
* <p>Contains the returned data retrieval policy in JSON format.</p>
*/
inline void SetPolicy(DataRetrievalPolicy&& value) { m_policy = std::move(value); }
/**
* <p>Contains the returned data retrieval policy in JSON format.</p>
*/
inline GetDataRetrievalPolicyResult& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
/**
* <p>Contains the returned data retrieval policy in JSON format.</p>
*/
inline GetDataRetrievalPolicyResult& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;}
private:
DataRetrievalPolicy m_policy;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,421 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for downloading output of an Amazon S3 Glacier
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetJobOutputInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetJobOutputRequest : public GlacierRequest
{
public:
GetJobOutputRequest();
// 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 "GetJobOutput"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetJobOutputRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetJobOutputRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetJobOutputRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline GetJobOutputRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetJobOutputRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetJobOutputRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline GetJobOutputRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline GetJobOutputRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The job ID whose data is downloaded.</p>
*/
inline GetJobOutputRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline const Aws::String& GetRange() const{ return m_range; }
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline void SetRange(const Aws::String& value) { m_rangeHasBeenSet = true; m_range = value; }
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline void SetRange(Aws::String&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline void SetRange(const char* value) { m_rangeHasBeenSet = true; m_range.assign(value); }
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline GetJobOutputRequest& WithRange(const Aws::String& value) { SetRange(value); return *this;}
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline GetJobOutputRequest& WithRange(Aws::String&& value) { SetRange(std::move(value)); return *this;}
/**
* <p>The range of bytes to retrieve from the output. For example, if you want to
* download the first 1,048,576 bytes, specify the range as
* <code>bytes=0-1048575</code>. By default, this operation downloads the entire
* output.</p> <p>If the job output is large, then you can use a range to retrieve
* a portion of the output. This allows you to download the entire output in
* smaller chunks of bytes. For example, suppose you have 1 GB of job output you
* want to download and you decide to download 128 MB chunks of data at a time,
* which is a total of eight Get Job Output requests. You use the following process
* to download the job output:</p> <ol> <li> <p>Download a 128 MB chunk of output
* by specifying the appropriate byte range. Verify that all 128 MB of data was
* received.</p> </li> <li> <p>Along with the data, the response includes a SHA256
* tree hash of the payload. You compute the checksum of the payload on the client
* and compare it with the checksum you received in the response to ensure you
* received all the expected data.</p> </li> <li> <p>Repeat steps 1 and 2 for all
* the eight 128 MB chunks of output data, each time specifying the appropriate
* byte range.</p> </li> <li> <p>After downloading all the parts of the job output,
* you have a list of eight checksum values. Compute the tree hash of these values
* to find the checksum of the entire output. Using the <a>DescribeJob</a> API,
* obtain job information of the job that provided you the output. The response
* includes the checksum of the entire archive stored in Amazon S3 Glacier. You
* compare this value with the checksum you computed to ensure you have downloaded
* the entire archive content with no errors.</p> <p/> </li> </ol>
*/
inline GetJobOutputRequest& WithRange(const char* value) { SetRange(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
Aws::String m_range;
bool m_rangeHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,400 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/stream/ResponseStream.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetJobOutputOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetJobOutputResult
{
public:
GetJobOutputResult();
//We have to define these because Microsoft doesn't auto generate them
GetJobOutputResult(GetJobOutputResult&&);
GetJobOutputResult& operator=(GetJobOutputResult&&);
//we delete these because Microsoft doesn't handle move generation correctly
//and we therefore don't trust them to get it right here either.
GetJobOutputResult(const GetJobOutputResult&) = delete;
GetJobOutputResult& operator=(const GetJobOutputResult&) = delete;
GetJobOutputResult(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
GetJobOutputResult& operator=(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
/**
* <p>The job data, either archive data or inventory data.</p>
*/
inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
/**
* <p>The job data, either archive data or inventory data.</p>
*/
inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline void SetChecksum(const char* value) { m_checksum.assign(value); }
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline GetJobOutputResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline GetJobOutputResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The checksum of the data in the response. This header is returned only when
* retrieving the output for an archive retrieval job. Furthermore, this header
* appears only under the following conditions:</p> <ul> <li> <p>You get the entire
* range of the archive.</p> </li> <li> <p>You request a range to return of the
* archive that starts and ends on a multiple of 1 MB. For example, if you have an
* 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at
* 2 MB, then the x-amz-sha256-tree-hash is returned as a response header.</p>
* </li> <li> <p>You request a range of the archive to return that starts on a
* multiple of 1 MB and goes to the end of the archive. For example, if you have a
* 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB
* (the end of the archive), then the x-amz-sha256-tree-hash is returned as a
* response header.</p> </li> </ul>
*/
inline GetJobOutputResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
/**
* <p>The HTTP response code for a job output request. The value depends on whether
* a range was specified in the request.</p>
*/
inline int GetStatus() const{ return m_status; }
/**
* <p>The HTTP response code for a job output request. The value depends on whether
* a range was specified in the request.</p>
*/
inline void SetStatus(int value) { m_status = value; }
/**
* <p>The HTTP response code for a job output request. The value depends on whether
* a range was specified in the request.</p>
*/
inline GetJobOutputResult& WithStatus(int value) { SetStatus(value); return *this;}
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline const Aws::String& GetContentRange() const{ return m_contentRange; }
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline GetJobOutputResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline GetJobOutputResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
/**
* <p>The range of bytes returned by Amazon S3 Glacier. If only partial output is
* downloaded, the response provides the range of bytes Amazon S3 Glacier returned.
* For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.</p>
*/
inline GetJobOutputResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = std::move(value); }
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline GetJobOutputResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline GetJobOutputResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
/**
* <p>Indicates the range units accepted. For more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">RFC2616</a>. </p>
*/
inline GetJobOutputResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentType = value; }
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline void SetContentType(const char* value) { m_contentType.assign(value); }
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline GetJobOutputResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline GetJobOutputResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>The Content-Type depends on whether the job output is an archive or a vault
* inventory. For archive data, the Content-Type is application/octet-stream. For
* vault inventory, if you requested CSV format when you initiated the job, the
* Content-Type is text/csv. Otherwise, by default, vault inventory is returned as
* JSON, and the Content-Type is application/json.</p>
*/
inline GetJobOutputResult& WithContentType(const char* value) { SetContentType(value); return *this;}
/**
* <p>The description of an archive.</p>
*/
inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
/**
* <p>The description of an archive.</p>
*/
inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; }
/**
* <p>The description of an archive.</p>
*/
inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = std::move(value); }
/**
* <p>The description of an archive.</p>
*/
inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); }
/**
* <p>The description of an archive.</p>
*/
inline GetJobOutputResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
/**
* <p>The description of an archive.</p>
*/
inline GetJobOutputResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
/**
* <p>The description of an archive.</p>
*/
inline GetJobOutputResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
private:
Aws::Utils::Stream::ResponseStream m_body;
Aws::String m_checksum;
int m_status;
Aws::String m_contentRange;
Aws::String m_acceptRanges;
Aws::String m_contentType;
Aws::String m_archiveDescription;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Input for GetVaultAccessPolicy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultAccessPolicyInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultAccessPolicyRequest : public GlacierRequest
{
public:
GetVaultAccessPolicyRequest();
// 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 "GetVaultAccessPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultAccessPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultAccessPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultAccessPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline GetVaultAccessPolicyRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultAccessPolicyRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultAccessPolicyRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/VaultAccessPolicy.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Output for GetVaultAccessPolicy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultAccessPolicyOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultAccessPolicyResult
{
public:
GetVaultAccessPolicyResult();
GetVaultAccessPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetVaultAccessPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the returned vault access policy as a JSON string.</p>
*/
inline const VaultAccessPolicy& GetPolicy() const{ return m_policy; }
/**
* <p>Contains the returned vault access policy as a JSON string.</p>
*/
inline void SetPolicy(const VaultAccessPolicy& value) { m_policy = value; }
/**
* <p>Contains the returned vault access policy as a JSON string.</p>
*/
inline void SetPolicy(VaultAccessPolicy&& value) { m_policy = std::move(value); }
/**
* <p>Contains the returned vault access policy as a JSON string.</p>
*/
inline GetVaultAccessPolicyResult& WithPolicy(const VaultAccessPolicy& value) { SetPolicy(value); return *this;}
/**
* <p>Contains the returned vault access policy as a JSON string.</p>
*/
inline GetVaultAccessPolicyResult& WithPolicy(VaultAccessPolicy&& value) { SetPolicy(std::move(value)); return *this;}
private:
VaultAccessPolicy m_policy;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input values for <code>GetVaultLock</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultLockInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultLockRequest : public GlacierRequest
{
public:
GetVaultLockRequest();
// 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 "GetVaultLock"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultLockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultLockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultLockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline GetVaultLockRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultLockRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultLockRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,225 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultLockOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultLockResult
{
public:
GetVaultLockResult();
GetVaultLockResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetVaultLockResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline void SetPolicy(const char* value) { m_policy.assign(value); }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline GetVaultLockResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline GetVaultLockResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline GetVaultLockResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline void SetState(const Aws::String& value) { m_state = value; }
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline void SetState(const char* value) { m_state.assign(value); }
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline GetVaultLockResult& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline GetVaultLockResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The state of the vault lock. <code>InProgress</code> or
* <code>Locked</code>.</p>
*/
inline GetVaultLockResult& WithState(const char* value) { SetState(value); return *this;}
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline const Aws::String& GetExpirationDate() const{ return m_expirationDate; }
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline void SetExpirationDate(const Aws::String& value) { m_expirationDate = value; }
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline void SetExpirationDate(Aws::String&& value) { m_expirationDate = std::move(value); }
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline void SetExpirationDate(const char* value) { m_expirationDate.assign(value); }
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline GetVaultLockResult& WithExpirationDate(const Aws::String& value) { SetExpirationDate(value); return *this;}
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline GetVaultLockResult& WithExpirationDate(Aws::String&& value) { SetExpirationDate(std::move(value)); return *this;}
/**
* <p>The UTC date and time at which the lock ID expires. This value can be
* <code>null</code> if the vault lock is in a <code>Locked</code> state.</p>
*/
inline GetVaultLockResult& WithExpirationDate(const char* value) { SetExpirationDate(value); return *this;}
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; }
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); }
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDate.assign(value); }
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline GetVaultLockResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline GetVaultLockResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The UTC date and time at which the vault lock was put into the
* <code>InProgress</code> state.</p>
*/
inline GetVaultLockResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
private:
Aws::String m_policy;
Aws::String m_state;
Aws::String m_expirationDate;
Aws::String m_creationDate;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving the notification configuration set on an
* Amazon Glacier vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultNotificationsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultNotificationsRequest : public GlacierRequest
{
public:
GetVaultNotificationsRequest();
// 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 "GetVaultNotifications"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultNotificationsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultNotificationsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline GetVaultNotificationsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline GetVaultNotificationsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultNotificationsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline GetVaultNotificationsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/VaultNotificationConfig.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/GetVaultNotificationsOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API GetVaultNotificationsResult
{
public:
GetVaultNotificationsResult();
GetVaultNotificationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetVaultNotificationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Returns the notification configuration set on the vault.</p>
*/
inline const VaultNotificationConfig& GetVaultNotificationConfig() const{ return m_vaultNotificationConfig; }
/**
* <p>Returns the notification configuration set on the vault.</p>
*/
inline void SetVaultNotificationConfig(const VaultNotificationConfig& value) { m_vaultNotificationConfig = value; }
/**
* <p>Returns the notification configuration set on the vault.</p>
*/
inline void SetVaultNotificationConfig(VaultNotificationConfig&& value) { m_vaultNotificationConfig = std::move(value); }
/**
* <p>Returns the notification configuration set on the vault.</p>
*/
inline GetVaultNotificationsResult& WithVaultNotificationConfig(const VaultNotificationConfig& value) { SetVaultNotificationConfig(value); return *this;}
/**
* <p>Returns the notification configuration set on the vault.</p>
*/
inline GetVaultNotificationsResult& WithVaultNotificationConfig(VaultNotificationConfig&& value) { SetVaultNotificationConfig(std::move(value)); return *this;}
private:
VaultNotificationConfig m_vaultNotificationConfig;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/Grantee.h>
#include <aws/glacier/model/Permission.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about a grant.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/Grant">AWS API
* Reference</a></p>
*/
class AWS_GLACIER_API Grant
{
public:
Grant();
Grant(Aws::Utils::Json::JsonView jsonValue);
Grant& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The grantee.</p>
*/
inline const Grantee& GetGrantee() const{ return m_grantee; }
/**
* <p>The grantee.</p>
*/
inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
/**
* <p>The grantee.</p>
*/
inline void SetGrantee(const Grantee& value) { m_granteeHasBeenSet = true; m_grantee = value; }
/**
* <p>The grantee.</p>
*/
inline void SetGrantee(Grantee&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
/**
* <p>The grantee.</p>
*/
inline Grant& WithGrantee(const Grantee& value) { SetGrantee(value); return *this;}
/**
* <p>The grantee.</p>
*/
inline Grant& WithGrantee(Grantee&& value) { SetGrantee(std::move(value)); return *this;}
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline const Permission& GetPermission() const{ return m_permission; }
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline void SetPermission(const Permission& value) { m_permissionHasBeenSet = true; m_permission = value; }
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline void SetPermission(Permission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline Grant& WithPermission(const Permission& value) { SetPermission(value); return *this;}
/**
* <p>Specifies the permission given to the grantee. </p>
*/
inline Grant& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;}
private:
Grantee m_grantee;
bool m_granteeHasBeenSet;
Permission m_permission;
bool m_permissionHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,255 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/Type.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the grantee.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/Grantee">AWS API
* Reference</a></p>
*/
class AWS_GLACIER_API Grantee
{
public:
Grantee();
Grantee(Aws::Utils::Json::JsonView jsonValue);
Grantee& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Type of grantee</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>Type of grantee</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Type of grantee</p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Type of grantee</p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Type of grantee</p>
*/
inline Grantee& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>Type of grantee</p>
*/
inline Grantee& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Screen name of the grantee.</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>Screen name of the grantee.</p>
*/
inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
/**
* <p>Screen name of the grantee.</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
/**
* <p>Screen name of the grantee.</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
/**
* <p>Screen name of the grantee.</p>
*/
inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
/**
* <p>Screen name of the grantee.</p>
*/
inline Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>Screen name of the grantee.</p>
*/
inline Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>Screen name of the grantee.</p>
*/
inline Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>URI of the grantee group.</p>
*/
inline const Aws::String& GetURI() const{ return m_uRI; }
/**
* <p>URI of the grantee group.</p>
*/
inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
/**
* <p>URI of the grantee group.</p>
*/
inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
/**
* <p>URI of the grantee group.</p>
*/
inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
/**
* <p>URI of the grantee group.</p>
*/
inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
/**
* <p>URI of the grantee group.</p>
*/
inline Grantee& WithURI(const Aws::String& value) { SetURI(value); return *this;}
/**
* <p>URI of the grantee group.</p>
*/
inline Grantee& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
/**
* <p>URI of the grantee group.</p>
*/
inline Grantee& WithURI(const char* value) { SetURI(value); return *this;}
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline const Aws::String& GetID() const{ return m_iD; }
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline Grantee& WithID(const Aws::String& value) { SetID(value); return *this;}
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline Grantee& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
/**
* <p>The canonical user ID of the grantee.</p>
*/
inline Grantee& WithID(const char* value) { SetID(value); return *this;}
/**
* <p>Email address of the grantee.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>Email address of the grantee.</p>
*/
inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
/**
* <p>Email address of the grantee.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
/**
* <p>Email address of the grantee.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
/**
* <p>Email address of the grantee.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
/**
* <p>Email address of the grantee.</p>
*/
inline Grantee& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>Email address of the grantee.</p>
*/
inline Grantee& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>Email address of the grantee.</p>
*/
inline Grantee& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
private:
Type m_type;
bool m_typeHasBeenSet;
Aws::String m_displayName;
bool m_displayNameHasBeenSet;
Aws::String m_uRI;
bool m_uRIHasBeenSet;
Aws::String m_iD;
bool m_iDHasBeenSet;
Aws::String m_emailAddress;
bool m_emailAddressHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,198 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/JobParameters.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for initiating an Amazon S3 Glacier job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateJobInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateJobRequest : public GlacierRequest
{
public:
InitiateJobRequest();
// 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 "InitiateJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline InitiateJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline InitiateJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline InitiateJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline InitiateJobRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateJobRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateJobRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>Provides options for specifying job information.</p>
*/
inline const JobParameters& GetJobParameters() const{ return m_jobParameters; }
/**
* <p>Provides options for specifying job information.</p>
*/
inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
/**
* <p>Provides options for specifying job information.</p>
*/
inline void SetJobParameters(const JobParameters& value) { m_jobParametersHasBeenSet = true; m_jobParameters = value; }
/**
* <p>Provides options for specifying job information.</p>
*/
inline void SetJobParameters(JobParameters&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = std::move(value); }
/**
* <p>Provides options for specifying job information.</p>
*/
inline InitiateJobRequest& WithJobParameters(const JobParameters& value) { SetJobParameters(value); return *this;}
/**
* <p>Provides options for specifying job information.</p>
*/
inline InitiateJobRequest& WithJobParameters(JobParameters&& value) { SetJobParameters(std::move(value)); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
JobParameters m_jobParameters;
bool m_jobParametersHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateJobOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateJobResult
{
public:
InitiateJobResult();
InitiateJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InitiateJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The relative URI path of the job.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The relative URI path of the job.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The relative URI path of the job.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The relative URI path of the job.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The relative URI path of the job.</p>
*/
inline InitiateJobResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The relative URI path of the job.</p>
*/
inline InitiateJobResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The relative URI path of the job.</p>
*/
inline InitiateJobResult& WithLocation(const char* value) { SetLocation(value); return *this;}
/**
* <p>The ID of the job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The ID of the job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The ID of the job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The ID of the job.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The ID of the job.</p>
*/
inline InitiateJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The ID of the job.</p>
*/
inline InitiateJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The ID of the job.</p>
*/
inline InitiateJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline const Aws::String& GetJobOutputPath() const{ return m_jobOutputPath; }
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline void SetJobOutputPath(const Aws::String& value) { m_jobOutputPath = value; }
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline void SetJobOutputPath(Aws::String&& value) { m_jobOutputPath = std::move(value); }
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline void SetJobOutputPath(const char* value) { m_jobOutputPath.assign(value); }
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline InitiateJobResult& WithJobOutputPath(const Aws::String& value) { SetJobOutputPath(value); return *this;}
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline InitiateJobResult& WithJobOutputPath(Aws::String&& value) { SetJobOutputPath(std::move(value)); return *this;}
/**
* <p>The path to the location of where the select results are stored.</p>
*/
inline InitiateJobResult& WithJobOutputPath(const char* value) { SetJobOutputPath(value); return *this;}
private:
Aws::String m_location;
Aws::String m_jobId;
Aws::String m_jobOutputPath;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,285 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for initiating a multipart upload to an Amazon S3 Glacier
* vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateMultipartUploadInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateMultipartUploadRequest : public GlacierRequest
{
public:
InitiateMultipartUploadRequest();
// 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 "InitiateMultipartUpload"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline InitiateMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline InitiateMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline InitiateMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline InitiateMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline InitiateMultipartUploadRequest& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline InitiateMultipartUploadRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
/**
* <p>The archive description that you are uploading in parts.</p> <p>The part size
* must be a megabyte (1024 KB) multiplied by a power of 2, for example 1048576 (1
* MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum
* allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).</p>
*/
inline InitiateMultipartUploadRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline const Aws::String& GetPartSize() const{ return m_partSize; }
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; }
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline void SetPartSize(const Aws::String& value) { m_partSizeHasBeenSet = true; m_partSize = value; }
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline void SetPartSize(Aws::String&& value) { m_partSizeHasBeenSet = true; m_partSize = std::move(value); }
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline void SetPartSize(const char* value) { m_partSizeHasBeenSet = true; m_partSize.assign(value); }
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline InitiateMultipartUploadRequest& WithPartSize(const Aws::String& value) { SetPartSize(value); return *this;}
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline InitiateMultipartUploadRequest& WithPartSize(Aws::String&& value) { SetPartSize(std::move(value)); return *this;}
/**
* <p>The size of each part except the last, in bytes. The last part can be smaller
* than this part size.</p>
*/
inline InitiateMultipartUploadRequest& WithPartSize(const char* value) { SetPartSize(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_archiveDescription;
bool m_archiveDescriptionHasBeenSet;
Aws::String m_partSize;
bool m_partSizeHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>The Amazon S3 Glacier response to your request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateMultipartUploadOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateMultipartUploadResult
{
public:
InitiateMultipartUploadResult();
InitiateMultipartUploadResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InitiateMultipartUploadResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline InitiateMultipartUploadResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline InitiateMultipartUploadResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The relative URI path of the multipart upload ID Amazon S3 Glacier
* created.</p>
*/
inline InitiateMultipartUploadResult& WithLocation(const char* value) { SetLocation(value); return *this;}
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); }
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline InitiateMultipartUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline InitiateMultipartUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>The ID of the multipart upload. This value is also included as part of the
* location.</p>
*/
inline InitiateMultipartUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
private:
Aws::String m_location;
Aws::String m_uploadId;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/VaultLockPolicy.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input values for <code>InitiateVaultLock</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateVaultLockInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateVaultLockRequest : public GlacierRequest
{
public:
InitiateVaultLockRequest();
// 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 "InitiateVaultLock"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline InitiateVaultLockRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline InitiateVaultLockRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline InitiateVaultLockRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline InitiateVaultLockRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateVaultLockRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline InitiateVaultLockRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline const VaultLockPolicy& GetPolicy() const{ return m_policy; }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline void SetPolicy(const VaultLockPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline void SetPolicy(VaultLockPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline InitiateVaultLockRequest& WithPolicy(const VaultLockPolicy& value) { SetPolicy(value); return *this;}
/**
* <p>The vault lock policy as a JSON string, which uses "\" as an escape
* character.</p>
*/
inline InitiateVaultLockRequest& WithPolicy(VaultLockPolicy&& value) { SetPolicy(std::move(value)); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
VaultLockPolicy m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InitiateVaultLockOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InitiateVaultLockResult
{
public:
InitiateVaultLockResult();
InitiateVaultLockResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InitiateVaultLockResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline const Aws::String& GetLockId() const{ return m_lockId; }
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline void SetLockId(const Aws::String& value) { m_lockId = value; }
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline void SetLockId(Aws::String&& value) { m_lockId = std::move(value); }
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline void SetLockId(const char* value) { m_lockId.assign(value); }
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline InitiateVaultLockResult& WithLockId(const Aws::String& value) { SetLockId(value); return *this;}
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline InitiateVaultLockResult& WithLockId(Aws::String&& value) { SetLockId(std::move(value)); return *this;}
/**
* <p>The lock ID, which is used to complete the vault locking process.</p>
*/
inline InitiateVaultLockResult& WithLockId(const char* value) { SetLockId(value); return *this;}
private:
Aws::String m_lockId;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/CSVInput.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Describes how the archive is serialized.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InputSerialization">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InputSerialization
{
public:
InputSerialization();
InputSerialization(Aws::Utils::Json::JsonView jsonValue);
InputSerialization& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline const CSVInput& GetCsv() const{ return m_csv; }
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline bool CsvHasBeenSet() const { return m_csvHasBeenSet; }
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline void SetCsv(const CSVInput& value) { m_csvHasBeenSet = true; m_csv = value; }
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline void SetCsv(CSVInput&& value) { m_csvHasBeenSet = true; m_csv = std::move(value); }
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline InputSerialization& WithCsv(const CSVInput& value) { SetCsv(value); return *this;}
/**
* <p>Describes the serialization of a CSV-encoded object.</p>
*/
inline InputSerialization& WithCsv(CSVInput&& value) { SetCsv(std::move(value)); return *this;}
private:
CSVInput m_csv;
bool m_csvHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if there is insufficient capacity to process this expedited request.
* This error only applies to expedited retrievals and not to standard or bulk
* retrievals.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InsufficientCapacityException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InsufficientCapacityException
{
public:
InsufficientCapacityException();
InsufficientCapacityException(Aws::Utils::Json::JsonView jsonValue);
InsufficientCapacityException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetType() const{ return m_type; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
inline InsufficientCapacityException& WithType(const Aws::String& value) { SetType(value); return *this;}
inline InsufficientCapacityException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
inline InsufficientCapacityException& WithType(const char* value) { SetType(value); return *this;}
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline InsufficientCapacityException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline InsufficientCapacityException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline InsufficientCapacityException& WithCode(const char* value) { SetCode(value); return *this;}
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline InsufficientCapacityException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InsufficientCapacityException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InsufficientCapacityException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if a parameter of the request is incorrectly
* specified.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InvalidParameterValueException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InvalidParameterValueException
{
public:
InvalidParameterValueException();
InvalidParameterValueException(Aws::Utils::Json::JsonView jsonValue);
InvalidParameterValueException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client</p>
*/
inline InvalidParameterValueException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client</p>
*/
inline InvalidParameterValueException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client</p>
*/
inline InvalidParameterValueException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>400 Bad Request</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>400 Bad Request</p>
*/
inline InvalidParameterValueException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline InvalidParameterValueException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline InvalidParameterValueException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline InvalidParameterValueException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline InvalidParameterValueException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if a parameter of the request is incorrectly specified.</p>
*/
inline InvalidParameterValueException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Describes the options for a range inventory retrieval job.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InventoryRetrievalJobDescription">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InventoryRetrievalJobDescription
{
public:
InventoryRetrievalJobDescription();
InventoryRetrievalJobDescription(Aws::Utils::Json::JsonView jsonValue);
InventoryRetrievalJobDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline const Aws::String& GetFormat() const{ return m_format; }
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
/**
* <p>The output format for the vault inventory list, which is set by the
* <b>InitiateJob</b> request when initiating a job to retrieve a vault inventory.
* Valid values are <code>CSV</code> and <code>JSON</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithFormat(const char* value) { SetFormat(value); return *this;}
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline const Aws::String& GetStartDate() const{ return m_startDate; }
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
/**
* <p>The start of the date range in Universal Coordinated Time (UTC) for vault
* inventory retrieval that includes archives created on or after this date. This
* value should be a string in the ISO 8601 date format, for example
* <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithStartDate(const char* value) { SetStartDate(value); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline const Aws::String& GetEndDate() const{ return m_endDate; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobDescription& WithEndDate(const char* value) { SetEndDate(value); return *this;}
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline InventoryRetrievalJobDescription& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline InventoryRetrievalJobDescription& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>The maximum number of inventory items returned per vault inventory retrieval
* request. This limit is set when initiating the job with the a <b>InitiateJob</b>
* request. </p>
*/
inline InventoryRetrievalJobDescription& WithLimit(const char* value) { SetLimit(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline InventoryRetrievalJobDescription& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline InventoryRetrievalJobDescription& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>. For more information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html#api-initiate-job-post-vault-inventory-list-filtering">
* Range Inventory Retrieval</a>.</p>
*/
inline InventoryRetrievalJobDescription& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_format;
bool m_formatHasBeenSet;
Aws::String m_startDate;
bool m_startDateHasBeenSet;
Aws::String m_endDate;
bool m_endDateHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,285 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for specifying a range inventory retrieval
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/InventoryRetrievalJobInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API InventoryRetrievalJobInput
{
public:
InventoryRetrievalJobInput();
InventoryRetrievalJobInput(Aws::Utils::Json::JsonView jsonValue);
InventoryRetrievalJobInput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline const Aws::String& GetStartDate() const{ return m_startDate; }
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
/**
* <p>The start of the date range in UTC for vault inventory retrieval that
* includes archives created on or after this date. This value should be a string
* in the ISO 8601 date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithStartDate(const char* value) { SetStartDate(value); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline const Aws::String& GetEndDate() const{ return m_endDate; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(const Aws::String& value) { m_endDateHasBeenSet = true; m_endDate = value; }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(Aws::String&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline void SetEndDate(const char* value) { m_endDateHasBeenSet = true; m_endDate.assign(value); }
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithEndDate(const Aws::String& value) { SetEndDate(value); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithEndDate(Aws::String&& value) { SetEndDate(std::move(value)); return *this;}
/**
* <p>The end of the date range in UTC for vault inventory retrieval that includes
* archives created before this date. This value should be a string in the ISO 8601
* date format, for example <code>2013-03-20T17:03:43Z</code>.</p>
*/
inline InventoryRetrievalJobInput& WithEndDate(const char* value) { SetEndDate(value); return *this;}
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline InventoryRetrievalJobInput& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline InventoryRetrievalJobInput& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>Specifies the maximum number of inventory items returned per vault inventory
* retrieval request. Valid values are greater than or equal to 1.</p>
*/
inline InventoryRetrievalJobInput& WithLimit(const char* value) { SetLimit(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline InventoryRetrievalJobInput& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline InventoryRetrievalJobInput& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the vault
* inventory retrieval results. You use the marker in a new <b>InitiateJob</b>
* request to obtain additional inventory items. If there are no more inventory
* items, this value is <code>null</code>.</p>
*/
inline InventoryRetrievalJobInput& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_startDate;
bool m_startDateHasBeenSet;
Aws::String m_endDate;
bool m_endDateHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,639 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/InventoryRetrievalJobInput.h>
#include <aws/glacier/model/SelectParameters.h>
#include <aws/glacier/model/OutputLocation.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for defining a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/JobParameters">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API JobParameters
{
public:
JobParameters();
JobParameters(Aws::Utils::Json::JsonView jsonValue);
JobParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline const Aws::String& GetFormat() const{ return m_format; }
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline JobParameters& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline JobParameters& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
/**
* <p>When initiating a job to retrieve a vault inventory, you can optionally add
* this parameter to your request to specify the output format. If you are
* initiating an inventory job and do not specify a Format field, JSON is the
* default format. Valid values are "CSV" and "JSON".</p>
*/
inline JobParameters& WithFormat(const char* value) { SetFormat(value); return *this;}
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline JobParameters& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline JobParameters& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The job type. You can initiate a job to perform a select query on an archive,
* retrieve an archive, or get an inventory of a vault. Valid values are "select",
* "archive-retrieval" and "inventory-retrieval".</p>
*/
inline JobParameters& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline JobParameters& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline JobParameters& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
/**
* <p>The ID of the archive that you want to retrieve. This field is required only
* if <code>Type</code> is set to <code>select</code> or
* <code>archive-retrieval</code>code&gt;. An error occurs if you specify this
* request parameter for an inventory retrieval job request. </p>
*/
inline JobParameters& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline JobParameters& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline JobParameters& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The optional description for the job. The description must be less than or
* equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control
* codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.</p>
*/
inline JobParameters& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline bool SNSTopicHasBeenSet() const { return m_sNSTopicHasBeenSet; }
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline void SetSNSTopic(const Aws::String& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline void SetSNSTopic(Aws::String&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = std::move(value); }
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline void SetSNSTopic(const char* value) { m_sNSTopicHasBeenSet = true; m_sNSTopic.assign(value); }
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline JobParameters& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline JobParameters& WithSNSTopic(Aws::String&& value) { SetSNSTopic(std::move(value)); return *this;}
/**
* <p>The Amazon SNS topic ARN to which Amazon S3 Glacier sends a notification when
* the job is completed and the output is ready for you to download. The specified
* topic publishes the notification to its subscribers. The SNS topic must
* exist.</p>
*/
inline JobParameters& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline const Aws::String& GetRetrievalByteRange() const{ return m_retrievalByteRange; }
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline bool RetrievalByteRangeHasBeenSet() const { return m_retrievalByteRangeHasBeenSet; }
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline void SetRetrievalByteRange(const Aws::String& value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange = value; }
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline void SetRetrievalByteRange(Aws::String&& value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange = std::move(value); }
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline void SetRetrievalByteRange(const char* value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange.assign(value); }
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline JobParameters& WithRetrievalByteRange(const Aws::String& value) { SetRetrievalByteRange(value); return *this;}
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline JobParameters& WithRetrievalByteRange(Aws::String&& value) { SetRetrievalByteRange(std::move(value)); return *this;}
/**
* <p>The byte range to retrieve for an archive retrieval. in the form
* "<i>StartByteValue</i>-<i>EndByteValue</i>" If not specified, the whole archive
* is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned
* which means that <i>StartByteValue</i> must be divisible by 1 MB and
* <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the end of the
* archive specified as the archive byte size value minus 1. If RetrievalByteRange
* is not megabyte aligned, this operation returns a 400 response. </p> <p>An error
* occurs if you specify this field for an inventory retrieval job request.</p>
*/
inline JobParameters& WithRetrievalByteRange(const char* value) { SetRetrievalByteRange(value); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline const Aws::String& GetTier() const{ return m_tier; }
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(const Aws::String& value) { m_tierHasBeenSet = true; m_tier = value; }
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(Aws::String&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline void SetTier(const char* value) { m_tierHasBeenSet = true; m_tier.assign(value); }
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline JobParameters& WithTier(const Aws::String& value) { SetTier(value); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline JobParameters& WithTier(Aws::String&& value) { SetTier(std::move(value)); return *this;}
/**
* <p>The tier to use for a select or an archive retrieval job. Valid values are
* <code>Expedited</code>, <code>Standard</code>, or <code>Bulk</code>.
* <code>Standard</code> is the default.</p>
*/
inline JobParameters& WithTier(const char* value) { SetTier(value); return *this;}
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline const InventoryRetrievalJobInput& GetInventoryRetrievalParameters() const{ return m_inventoryRetrievalParameters; }
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline bool InventoryRetrievalParametersHasBeenSet() const { return m_inventoryRetrievalParametersHasBeenSet; }
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline void SetInventoryRetrievalParameters(const InventoryRetrievalJobInput& value) { m_inventoryRetrievalParametersHasBeenSet = true; m_inventoryRetrievalParameters = value; }
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline void SetInventoryRetrievalParameters(InventoryRetrievalJobInput&& value) { m_inventoryRetrievalParametersHasBeenSet = true; m_inventoryRetrievalParameters = std::move(value); }
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline JobParameters& WithInventoryRetrievalParameters(const InventoryRetrievalJobInput& value) { SetInventoryRetrievalParameters(value); return *this;}
/**
* <p>Input parameters used for range inventory retrieval.</p>
*/
inline JobParameters& WithInventoryRetrievalParameters(InventoryRetrievalJobInput&& value) { SetInventoryRetrievalParameters(std::move(value)); return *this;}
/**
* <p>Contains the parameters that define a job.</p>
*/
inline const SelectParameters& GetSelectParameters() const{ return m_selectParameters; }
/**
* <p>Contains the parameters that define a job.</p>
*/
inline bool SelectParametersHasBeenSet() const { return m_selectParametersHasBeenSet; }
/**
* <p>Contains the parameters that define a job.</p>
*/
inline void SetSelectParameters(const SelectParameters& value) { m_selectParametersHasBeenSet = true; m_selectParameters = value; }
/**
* <p>Contains the parameters that define a job.</p>
*/
inline void SetSelectParameters(SelectParameters&& value) { m_selectParametersHasBeenSet = true; m_selectParameters = std::move(value); }
/**
* <p>Contains the parameters that define a job.</p>
*/
inline JobParameters& WithSelectParameters(const SelectParameters& value) { SetSelectParameters(value); return *this;}
/**
* <p>Contains the parameters that define a job.</p>
*/
inline JobParameters& WithSelectParameters(SelectParameters&& value) { SetSelectParameters(std::move(value)); return *this;}
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline JobParameters& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;}
/**
* <p>Contains information about the location where the select job results are
* stored.</p>
*/
inline JobParameters& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
private:
Aws::String m_format;
bool m_formatHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_archiveId;
bool m_archiveIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_sNSTopic;
bool m_sNSTopicHasBeenSet;
Aws::String m_retrievalByteRange;
bool m_retrievalByteRangeHasBeenSet;
Aws::String m_tier;
bool m_tierHasBeenSet;
InventoryRetrievalJobInput m_inventoryRetrievalParameters;
bool m_inventoryRetrievalParametersHasBeenSet;
SelectParameters m_selectParameters;
bool m_selectParametersHasBeenSet;
OutputLocation m_outputLocation;
bool m_outputLocationHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,185 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if the request results in a vault or account limit being
* exceeded.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/LimitExceededException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API LimitExceededException
{
public:
LimitExceededException();
LimitExceededException(Aws::Utils::Json::JsonView jsonValue);
LimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client</p>
*/
inline LimitExceededException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client</p>
*/
inline LimitExceededException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client</p>
*/
inline LimitExceededException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>400 Bad Request</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>400 Bad Request</p>
*/
inline LimitExceededException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline LimitExceededException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline LimitExceededException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if the request results in a vault limit or tags limit being
* exceeded.</p>
*/
inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,401 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving a job list for an Amazon S3 Glacier
* vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListJobsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListJobsRequest : public GlacierRequest
{
public:
ListJobsRequest();
// 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 "ListJobs"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListJobsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListJobsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListJobsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline ListJobsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListJobsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListJobsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline ListJobsRequest& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline ListJobsRequest& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>The maximum number of jobs to be returned. The default limit is 50. The
* number of jobs returned might be fewer than the specified limit, but the number
* of returned jobs never exceeds the limit.</p>
*/
inline ListJobsRequest& WithLimit(const char* value) { SetLimit(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline ListJobsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline ListJobsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the job at which
* the listing of jobs should begin. Get the marker value from a previous List Jobs
* response. You only need to include the marker if you are continuing the
* pagination of results started in a previous List Jobs request.</p>
*/
inline ListJobsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline const Aws::String& GetStatuscode() const{ return m_statuscode; }
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline bool StatuscodeHasBeenSet() const { return m_statuscodeHasBeenSet; }
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline void SetStatuscode(const Aws::String& value) { m_statuscodeHasBeenSet = true; m_statuscode = value; }
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline void SetStatuscode(Aws::String&& value) { m_statuscodeHasBeenSet = true; m_statuscode = std::move(value); }
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline void SetStatuscode(const char* value) { m_statuscodeHasBeenSet = true; m_statuscode.assign(value); }
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline ListJobsRequest& WithStatuscode(const Aws::String& value) { SetStatuscode(value); return *this;}
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline ListJobsRequest& WithStatuscode(Aws::String&& value) { SetStatuscode(std::move(value)); return *this;}
/**
* <p>The type of job status to return. You can specify the following values:
* <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code>.</p>
*/
inline ListJobsRequest& WithStatuscode(const char* value) { SetStatuscode(value); return *this;}
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline const Aws::String& GetCompleted() const{ return m_completed; }
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; }
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline void SetCompleted(const Aws::String& value) { m_completedHasBeenSet = true; m_completed = value; }
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline void SetCompleted(Aws::String&& value) { m_completedHasBeenSet = true; m_completed = std::move(value); }
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline void SetCompleted(const char* value) { m_completedHasBeenSet = true; m_completed.assign(value); }
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline ListJobsRequest& WithCompleted(const Aws::String& value) { SetCompleted(value); return *this;}
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline ListJobsRequest& WithCompleted(Aws::String&& value) { SetCompleted(std::move(value)); return *this;}
/**
* <p>The state of the jobs to return. You can specify <code>true</code> or
* <code>false</code>.</p>
*/
inline ListJobsRequest& WithCompleted(const char* value) { SetCompleted(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
Aws::String m_statuscode;
bool m_statuscodeHasBeenSet;
Aws::String m_completed;
bool m_completedHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,158 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/GlacierJobDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListJobsOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListJobsResult
{
public:
ListJobsResult();
ListJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline const Aws::Vector<GlacierJobDescription>& GetJobList() const{ return m_jobList; }
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline void SetJobList(const Aws::Vector<GlacierJobDescription>& value) { m_jobList = value; }
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline void SetJobList(Aws::Vector<GlacierJobDescription>&& value) { m_jobList = std::move(value); }
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline ListJobsResult& WithJobList(const Aws::Vector<GlacierJobDescription>& value) { SetJobList(value); return *this;}
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline ListJobsResult& WithJobList(Aws::Vector<GlacierJobDescription>&& value) { SetJobList(std::move(value)); return *this;}
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline ListJobsResult& AddJobList(const GlacierJobDescription& value) { m_jobList.push_back(value); return *this; }
/**
* <p>A list of job objects. Each job object contains metadata describing the
* job.</p>
*/
inline ListJobsResult& AddJobList(GlacierJobDescription&& value) { m_jobList.push_back(std::move(value)); return *this; }
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline ListJobsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline ListJobsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p> An opaque string used for pagination that specifies the job at which the
* listing of jobs should begin. You get the <code>marker</code> value from a
* previous List Jobs response. You only need to include the marker if you are
* continuing the pagination of the results started in a previous List Jobs
* request. </p>
*/
inline ListJobsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<GlacierJobDescription> m_jobList;
Aws::String m_marker;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,297 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving list of in-progress multipart uploads for an
* Amazon Glacier vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListMultipartUploadsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListMultipartUploadsRequest : public GlacierRequest
{
public:
ListMultipartUploadsRequest();
// 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 "ListMultipartUploads"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListMultipartUploadsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListMultipartUploadsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListMultipartUploadsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline ListMultipartUploadsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListMultipartUploadsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListMultipartUploadsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline ListMultipartUploadsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline ListMultipartUploadsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the upload at
* which the listing of uploads should begin. Get the marker value from a previous
* List Uploads response. You need only include the marker if you are continuing
* the pagination of results started in a previous List Uploads request.</p>
*/
inline ListMultipartUploadsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline ListMultipartUploadsRequest& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline ListMultipartUploadsRequest& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>Specifies the maximum number of uploads returned in the response body. If
* this value is not specified, the List Uploads operation returns up to 50
* uploads.</p>
*/
inline ListMultipartUploadsRequest& WithLimit(const char* value) { SetLimit(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,144 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/UploadListElement.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListMultipartUploadsOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListMultipartUploadsResult
{
public:
ListMultipartUploadsResult();
ListMultipartUploadsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListMultipartUploadsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline const Aws::Vector<UploadListElement>& GetUploadsList() const{ return m_uploadsList; }
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline void SetUploadsList(const Aws::Vector<UploadListElement>& value) { m_uploadsList = value; }
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline void SetUploadsList(Aws::Vector<UploadListElement>&& value) { m_uploadsList = std::move(value); }
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline ListMultipartUploadsResult& WithUploadsList(const Aws::Vector<UploadListElement>& value) { SetUploadsList(value); return *this;}
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline ListMultipartUploadsResult& WithUploadsList(Aws::Vector<UploadListElement>&& value) { SetUploadsList(std::move(value)); return *this;}
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline ListMultipartUploadsResult& AddUploadsList(const UploadListElement& value) { m_uploadsList.push_back(value); return *this; }
/**
* <p>A list of in-progress multipart uploads.</p>
*/
inline ListMultipartUploadsResult& AddUploadsList(UploadListElement&& value) { m_uploadsList.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline ListMultipartUploadsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline ListMultipartUploadsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Multipart Uploads request to obtain more
* uploads in the list. If there are no more uploads, this value is
* <code>null</code>.</p>
*/
inline ListMultipartUploadsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<UploadListElement> m_uploadsList;
Aws::String m_marker;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,349 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options for retrieving a list of parts of an archive that have been
* uploaded in a specific multipart upload.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListPartsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListPartsRequest : public GlacierRequest
{
public:
ListPartsRequest();
// 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 "ListParts"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListPartsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListPartsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline ListPartsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline ListPartsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListPartsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListPartsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline ListPartsRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline ListPartsRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline ListPartsRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline ListPartsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline ListPartsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string used for pagination. This value specifies the part at which
* the listing of parts should begin. Get the marker value from the response of a
* previous List Parts response. You need only include the marker if you are
* continuing the pagination of results started in a previous List Parts
* request.</p>
*/
inline ListPartsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline ListPartsRequest& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline ListPartsRequest& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>The maximum number of parts to be returned. The default limit is 50. The
* number of parts returned might be fewer than the specified limit, but the number
* of returned parts never exceeds the limit.</p>
*/
inline ListPartsRequest& WithLimit(const char* value) { SetLimit(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_uploadId;
bool m_uploadIdHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,338 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glacier/model/PartListElement.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListPartsOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListPartsResult
{
public:
ListPartsResult();
ListPartsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPartsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline const Aws::String& GetMultipartUploadId() const{ return m_multipartUploadId; }
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline void SetMultipartUploadId(const Aws::String& value) { m_multipartUploadId = value; }
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline void SetMultipartUploadId(Aws::String&& value) { m_multipartUploadId = std::move(value); }
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline void SetMultipartUploadId(const char* value) { m_multipartUploadId.assign(value); }
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline ListPartsResult& WithMultipartUploadId(const Aws::String& value) { SetMultipartUploadId(value); return *this;}
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline ListPartsResult& WithMultipartUploadId(Aws::String&& value) { SetMultipartUploadId(std::move(value)); return *this;}
/**
* <p>The ID of the upload to which the parts are associated.</p>
*/
inline ListPartsResult& WithMultipartUploadId(const char* value) { SetMultipartUploadId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline const Aws::String& GetVaultARN() const{ return m_vaultARN; }
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline void SetVaultARN(const Aws::String& value) { m_vaultARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline void SetVaultARN(Aws::String&& value) { m_vaultARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline void SetVaultARN(const char* value) { m_vaultARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline ListPartsResult& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline ListPartsResult& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault to which the multipart upload was
* initiated.</p>
*/
inline ListPartsResult& WithVaultARN(const char* value) { SetVaultARN(value); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = std::move(value); }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline ListPartsResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline ListPartsResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline ListPartsResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
/**
* <p>The part size in bytes. This is the same value that you specified in the
* Initiate Multipart Upload request.</p>
*/
inline long long GetPartSizeInBytes() const{ return m_partSizeInBytes; }
/**
* <p>The part size in bytes. This is the same value that you specified in the
* Initiate Multipart Upload request.</p>
*/
inline void SetPartSizeInBytes(long long value) { m_partSizeInBytes = value; }
/**
* <p>The part size in bytes. This is the same value that you specified in the
* Initiate Multipart Upload request.</p>
*/
inline ListPartsResult& WithPartSizeInBytes(long long value) { SetPartSizeInBytes(value); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDate.assign(value); }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline ListPartsResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline ListPartsResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline ListPartsResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline const Aws::Vector<PartListElement>& GetParts() const{ return m_parts; }
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline void SetParts(const Aws::Vector<PartListElement>& value) { m_parts = value; }
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline void SetParts(Aws::Vector<PartListElement>&& value) { m_parts = std::move(value); }
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline ListPartsResult& WithParts(const Aws::Vector<PartListElement>& value) { SetParts(value); return *this;}
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline ListPartsResult& WithParts(Aws::Vector<PartListElement>&& value) { SetParts(std::move(value)); return *this;}
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline ListPartsResult& AddParts(const PartListElement& value) { m_parts.push_back(value); return *this; }
/**
* <p>A list of the part sizes of the multipart upload. Each object in the array
* contains a <code>RangeBytes</code> and <code>sha256-tree-hash</code> name/value
* pair.</p>
*/
inline ListPartsResult& AddParts(PartListElement&& value) { m_parts.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline ListPartsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline ListPartsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>An opaque string that represents where to continue pagination of the results.
* You use the marker in a new List Parts request to obtain more jobs in the list.
* If there are no more parts, this value is <code>null</code>.</p>
*/
inline ListPartsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_multipartUploadId;
Aws::String m_vaultARN;
Aws::String m_archiveDescription;
long long m_partSizeInBytes;
Aws::String m_creationDate;
Aws::Vector<PartListElement> m_parts;
Aws::String m_marker;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
*/
class AWS_GLACIER_API ListProvisionedCapacityRequest : public GlacierRequest
{
public:
ListProvisionedCapacityRequest();
// 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 "ListProvisionedCapacity"; }
Aws::String SerializePayload() const override;
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline ListProvisionedCapacityRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline ListProvisionedCapacityRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline ListProvisionedCapacityRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glacier/model/ProvisionedCapacityDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
class AWS_GLACIER_API ListProvisionedCapacityResult
{
public:
ListProvisionedCapacityResult();
ListProvisionedCapacityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListProvisionedCapacityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline const Aws::Vector<ProvisionedCapacityDescription>& GetProvisionedCapacityList() const{ return m_provisionedCapacityList; }
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline void SetProvisionedCapacityList(const Aws::Vector<ProvisionedCapacityDescription>& value) { m_provisionedCapacityList = value; }
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline void SetProvisionedCapacityList(Aws::Vector<ProvisionedCapacityDescription>&& value) { m_provisionedCapacityList = std::move(value); }
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline ListProvisionedCapacityResult& WithProvisionedCapacityList(const Aws::Vector<ProvisionedCapacityDescription>& value) { SetProvisionedCapacityList(value); return *this;}
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline ListProvisionedCapacityResult& WithProvisionedCapacityList(Aws::Vector<ProvisionedCapacityDescription>&& value) { SetProvisionedCapacityList(std::move(value)); return *this;}
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline ListProvisionedCapacityResult& AddProvisionedCapacityList(const ProvisionedCapacityDescription& value) { m_provisionedCapacityList.push_back(value); return *this; }
/**
* <p>The response body contains the following JSON fields.</p>
*/
inline ListProvisionedCapacityResult& AddProvisionedCapacityList(ProvisionedCapacityDescription&& value) { m_provisionedCapacityList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ProvisionedCapacityDescription> m_provisionedCapacityList;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input value for <code>ListTagsForVaultInput</code>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListTagsForVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListTagsForVaultRequest : public GlacierRequest
{
public:
ListTagsForVaultRequest();
// 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 "ListTagsForVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline ListTagsForVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline ListTagsForVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline ListTagsForVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline ListTagsForVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListTagsForVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline ListTagsForVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListTagsForVaultOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListTagsForVaultResult
{
public:
ListTagsForVaultResult();
ListTagsForVaultResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForVaultResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags attached to the vault. Each tag is composed of a key and a
* value.</p>
*/
inline ListTagsForVaultResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,246 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to retrieve the vault list owned by the calling user's
* account. The list provides metadata information for each vault.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListVaultsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListVaultsRequest : public GlacierRequest
{
public:
ListVaultsRequest();
// 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 "ListVaults"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline ListVaultsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline ListVaultsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline ListVaultsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline ListVaultsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline ListVaultsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>A string used for pagination. The marker specifies the vault ARN after which
* the listing of vaults should begin.</p>
*/
inline ListVaultsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline const Aws::String& GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline void SetLimit(const Aws::String& value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline void SetLimit(Aws::String&& value) { m_limitHasBeenSet = true; m_limit = std::move(value); }
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline void SetLimit(const char* value) { m_limitHasBeenSet = true; m_limit.assign(value); }
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline ListVaultsRequest& WithLimit(const Aws::String& value) { SetLimit(value); return *this;}
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline ListVaultsRequest& WithLimit(Aws::String&& value) { SetLimit(std::move(value)); return *this;}
/**
* <p>The maximum number of vaults to be returned. The default limit is 10. The
* number of vaults returned might be fewer than the specified limit, but the
* number of returned vaults never exceeds the limit.</p>
*/
inline ListVaultsRequest& WithLimit(const char* value) { SetLimit(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
Aws::String m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/DescribeVaultOutput.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ListVaultsOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ListVaultsResult
{
public:
ListVaultsResult();
ListVaultsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListVaultsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>List of vaults.</p>
*/
inline const Aws::Vector<DescribeVaultOutput>& GetVaultList() const{ return m_vaultList; }
/**
* <p>List of vaults.</p>
*/
inline void SetVaultList(const Aws::Vector<DescribeVaultOutput>& value) { m_vaultList = value; }
/**
* <p>List of vaults.</p>
*/
inline void SetVaultList(Aws::Vector<DescribeVaultOutput>&& value) { m_vaultList = std::move(value); }
/**
* <p>List of vaults.</p>
*/
inline ListVaultsResult& WithVaultList(const Aws::Vector<DescribeVaultOutput>& value) { SetVaultList(value); return *this;}
/**
* <p>List of vaults.</p>
*/
inline ListVaultsResult& WithVaultList(Aws::Vector<DescribeVaultOutput>&& value) { SetVaultList(std::move(value)); return *this;}
/**
* <p>List of vaults.</p>
*/
inline ListVaultsResult& AddVaultList(const DescribeVaultOutput& value) { m_vaultList.push_back(value); return *this; }
/**
* <p>List of vaults.</p>
*/
inline ListVaultsResult& AddVaultList(DescribeVaultOutput&& value) { m_vaultList.push_back(std::move(value)); return *this; }
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline ListVaultsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline ListVaultsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The vault ARN at which to continue pagination of the results. You use the
* marker in another List Vaults request to obtain more vaults in the list.</p>
*/
inline ListVaultsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<DescribeVaultOutput> m_vaultList;
Aws::String m_marker;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if a required header or parameter is missing from the
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/MissingParameterValueException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API MissingParameterValueException
{
public:
MissingParameterValueException();
MissingParameterValueException(Aws::Utils::Json::JsonView jsonValue);
MissingParameterValueException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client.</p>
*/
inline MissingParameterValueException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client.</p>
*/
inline MissingParameterValueException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client.</p>
*/
inline MissingParameterValueException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>400 Bad Request</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>400 Bad Request</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>400 Bad Request</p>
*/
inline MissingParameterValueException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline MissingParameterValueException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>400 Bad Request</p>
*/
inline MissingParameterValueException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline MissingParameterValueException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline MissingParameterValueException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if no authentication data is found for the request.</p>
*/
inline MissingParameterValueException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/S3Location.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the location where the select job results are
* stored.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/OutputLocation">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API OutputLocation
{
public:
OutputLocation();
OutputLocation(Aws::Utils::Json::JsonView jsonValue);
OutputLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline const S3Location& GetS3() const{ return m_s3; }
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline void SetS3(const S3Location& value) { m_s3HasBeenSet = true; m_s3 = value; }
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline void SetS3(S3Location&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline OutputLocation& WithS3(const S3Location& value) { SetS3(value); return *this;}
/**
* <p>Describes an S3 location that will receive the results of the job
* request.</p>
*/
inline OutputLocation& WithS3(S3Location&& value) { SetS3(std::move(value)); return *this;}
private:
S3Location m_s3;
bool m_s3HasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/CSVOutput.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Describes how the select output is serialized.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/OutputSerialization">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API OutputSerialization
{
public:
OutputSerialization();
OutputSerialization(Aws::Utils::Json::JsonView jsonValue);
OutputSerialization& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline const CSVOutput& GetCsv() const{ return m_csv; }
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline bool CsvHasBeenSet() const { return m_csvHasBeenSet; }
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline void SetCsv(const CSVOutput& value) { m_csvHasBeenSet = true; m_csv = value; }
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline void SetCsv(CSVOutput&& value) { m_csvHasBeenSet = true; m_csv = std::move(value); }
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline OutputSerialization& WithCsv(const CSVOutput& value) { SetCsv(value); return *this;}
/**
* <p>Describes the serialization of CSV-encoded query results.</p>
*/
inline OutputSerialization& WithCsv(CSVOutput&& value) { SetCsv(std::move(value)); return *this;}
private:
CSVOutput m_csv;
bool m_csvHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>A list of the part sizes of the multipart upload.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/PartListElement">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API PartListElement
{
public:
PartListElement();
PartListElement(Aws::Utils::Json::JsonView jsonValue);
PartListElement& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline const Aws::String& GetRangeInBytes() const{ return m_rangeInBytes; }
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline bool RangeInBytesHasBeenSet() const { return m_rangeInBytesHasBeenSet; }
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline void SetRangeInBytes(const Aws::String& value) { m_rangeInBytesHasBeenSet = true; m_rangeInBytes = value; }
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline void SetRangeInBytes(Aws::String&& value) { m_rangeInBytesHasBeenSet = true; m_rangeInBytes = std::move(value); }
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline void SetRangeInBytes(const char* value) { m_rangeInBytesHasBeenSet = true; m_rangeInBytes.assign(value); }
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline PartListElement& WithRangeInBytes(const Aws::String& value) { SetRangeInBytes(value); return *this;}
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline PartListElement& WithRangeInBytes(Aws::String&& value) { SetRangeInBytes(std::move(value)); return *this;}
/**
* <p>The byte range of a part, inclusive of the upper value of the range.</p>
*/
inline PartListElement& WithRangeInBytes(const char* value) { SetRangeInBytes(value); return *this;}
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline const Aws::String& GetSHA256TreeHash() const{ return m_sHA256TreeHash; }
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline bool SHA256TreeHashHasBeenSet() const { return m_sHA256TreeHashHasBeenSet; }
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline void SetSHA256TreeHash(const Aws::String& value) { m_sHA256TreeHashHasBeenSet = true; m_sHA256TreeHash = value; }
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline void SetSHA256TreeHash(Aws::String&& value) { m_sHA256TreeHashHasBeenSet = true; m_sHA256TreeHash = std::move(value); }
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline void SetSHA256TreeHash(const char* value) { m_sHA256TreeHashHasBeenSet = true; m_sHA256TreeHash.assign(value); }
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline PartListElement& WithSHA256TreeHash(const Aws::String& value) { SetSHA256TreeHash(value); return *this;}
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline PartListElement& WithSHA256TreeHash(Aws::String&& value) { SetSHA256TreeHash(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash value that Amazon S3 Glacier calculated for the part.
* This field is never <code>null</code>.</p>
*/
inline PartListElement& WithSHA256TreeHash(const char* value) { SetSHA256TreeHash(value); return *this;}
private:
Aws::String m_rangeInBytes;
bool m_rangeInBytesHasBeenSet;
Aws::String m_sHA256TreeHash;
bool m_sHA256TreeHashHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class Permission
{
NOT_SET,
FULL_CONTROL,
WRITE,
WRITE_ACP,
READ,
READ_ACP
};
namespace PermissionMapper
{
AWS_GLACIER_API Permission GetPermissionForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForPermission(Permission value);
} // namespace PermissionMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,178 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if a retrieval job would exceed the current data policy's retrieval
* rate limit. For more information about data retrieval policies,</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/PolicyEnforcedException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API PolicyEnforcedException
{
public:
PolicyEnforcedException();
PolicyEnforcedException(Aws::Utils::Json::JsonView jsonValue);
PolicyEnforcedException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client</p>
*/
inline PolicyEnforcedException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client</p>
*/
inline PolicyEnforcedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client</p>
*/
inline PolicyEnforcedException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>PolicyEnforcedException</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>PolicyEnforcedException</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>PolicyEnforcedException</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>PolicyEnforcedException</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>PolicyEnforcedException</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>PolicyEnforcedException</p>
*/
inline PolicyEnforcedException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>PolicyEnforcedException</p>
*/
inline PolicyEnforcedException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>PolicyEnforcedException</p>
*/
inline PolicyEnforcedException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline PolicyEnforcedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline PolicyEnforcedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>InitiateJob request denied by current data retrieval policy.</p>
*/
inline PolicyEnforcedException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,192 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>The definition for a provisioned capacity unit.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ProvisionedCapacityDescription">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ProvisionedCapacityDescription
{
public:
ProvisionedCapacityDescription();
ProvisionedCapacityDescription(Aws::Utils::Json::JsonView jsonValue);
ProvisionedCapacityDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline const Aws::String& GetCapacityId() const{ return m_capacityId; }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline bool CapacityIdHasBeenSet() const { return m_capacityIdHasBeenSet; }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(const Aws::String& value) { m_capacityIdHasBeenSet = true; m_capacityId = value; }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(Aws::String&& value) { m_capacityIdHasBeenSet = true; m_capacityId = std::move(value); }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(const char* value) { m_capacityIdHasBeenSet = true; m_capacityId.assign(value); }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline ProvisionedCapacityDescription& WithCapacityId(const Aws::String& value) { SetCapacityId(value); return *this;}
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline ProvisionedCapacityDescription& WithCapacityId(Aws::String&& value) { SetCapacityId(std::move(value)); return *this;}
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline ProvisionedCapacityDescription& WithCapacityId(const char* value) { SetCapacityId(value); return *this;}
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline const Aws::String& GetStartDate() const{ return m_startDate; }
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; }
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); }
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;}
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;}
/**
* <p>The date that the provisioned capacity unit was purchased, in Universal
* Coordinated Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithStartDate(const char* value) { SetStartDate(value); return *this;}
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline const Aws::String& GetExpirationDate() const{ return m_expirationDate; }
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline void SetExpirationDate(const Aws::String& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline void SetExpirationDate(Aws::String&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline void SetExpirationDate(const char* value) { m_expirationDateHasBeenSet = true; m_expirationDate.assign(value); }
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithExpirationDate(const Aws::String& value) { SetExpirationDate(value); return *this;}
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithExpirationDate(Aws::String&& value) { SetExpirationDate(std::move(value)); return *this;}
/**
* <p>The date that the provisioned capacity unit expires, in Universal Coordinated
* Time (UTC).</p>
*/
inline ProvisionedCapacityDescription& WithExpirationDate(const char* value) { SetExpirationDate(value); return *this;}
private:
Aws::String m_capacityId;
bool m_capacityIdHasBeenSet;
Aws::String m_startDate;
bool m_startDateHasBeenSet;
Aws::String m_expirationDate;
bool m_expirationDateHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
*/
class AWS_GLACIER_API PurchaseProvisionedCapacityRequest : public GlacierRequest
{
public:
PurchaseProvisionedCapacityRequest();
// 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 "PurchaseProvisionedCapacity"; }
Aws::String SerializePayload() const override;
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline PurchaseProvisionedCapacityRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline PurchaseProvisionedCapacityRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The AWS account ID of the account that owns the vault. You can either specify
* an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3
* Glacier uses the AWS account ID associated with the credentials used to sign the
* request. If you use an account ID, don't include any hyphens ('-') in the ID.
* </p>
*/
inline PurchaseProvisionedCapacityRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
class AWS_GLACIER_API PurchaseProvisionedCapacityResult
{
public:
PurchaseProvisionedCapacityResult();
PurchaseProvisionedCapacityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PurchaseProvisionedCapacityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline const Aws::String& GetCapacityId() const{ return m_capacityId; }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(const Aws::String& value) { m_capacityId = value; }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(Aws::String&& value) { m_capacityId = std::move(value); }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline void SetCapacityId(const char* value) { m_capacityId.assign(value); }
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline PurchaseProvisionedCapacityResult& WithCapacityId(const Aws::String& value) { SetCapacityId(value); return *this;}
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline PurchaseProvisionedCapacityResult& WithCapacityId(Aws::String&& value) { SetCapacityId(std::move(value)); return *this;}
/**
* <p>The ID that identifies the provisioned capacity unit.</p>
*/
inline PurchaseProvisionedCapacityResult& WithCapacityId(const char* value) { SetCapacityId(value); return *this;}
private:
Aws::String m_capacityId;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class QuoteFields
{
NOT_SET,
ALWAYS,
ASNEEDED
};
namespace QuoteFieldsMapper
{
AWS_GLACIER_API QuoteFields GetQuoteFieldsForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForQuoteFields(QuoteFields value);
} // namespace QuoteFieldsMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,213 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>The input value for <code>RemoveTagsFromVaultInput</code>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/RemoveTagsFromVaultInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API RemoveTagsFromVaultRequest : public GlacierRequest
{
public:
RemoveTagsFromVaultRequest();
// 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 "RemoveTagsFromVault"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline RemoveTagsFromVaultRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline RemoveTagsFromVaultRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline RemoveTagsFromVaultRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline RemoveTagsFromVaultRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline RemoveTagsFromVaultRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline RemoveTagsFromVaultRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline RemoveTagsFromVaultRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline RemoveTagsFromVaultRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline RemoveTagsFromVaultRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline RemoveTagsFromVaultRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>A list of tag keys. Each corresponding tag is removed from the vault.</p>
*/
inline RemoveTagsFromVaultRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,185 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/RequestTimeoutException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API RequestTimeoutException
{
public:
RequestTimeoutException();
RequestTimeoutException(Aws::Utils::Json::JsonView jsonValue);
RequestTimeoutException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client</p>
*/
inline RequestTimeoutException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client</p>
*/
inline RequestTimeoutException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client</p>
*/
inline RequestTimeoutException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>408 Request Timeout</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>408 Request Timeout</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>408 Request Timeout</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>408 Request Timeout</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>408 Request Timeout</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>408 Request Timeout</p>
*/
inline RequestTimeoutException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>408 Request Timeout</p>
*/
inline RequestTimeoutException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>408 Request Timeout</p>
*/
inline RequestTimeoutException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline RequestTimeoutException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline RequestTimeoutException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while
* receiving the upload.</p>
*/
inline RequestTimeoutException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,185 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ResourceNotFoundException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Client</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Client</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Client</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Client</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Client</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Client</p>
*/
inline ResourceNotFoundException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Client</p>
*/
inline ResourceNotFoundException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Client</p>
*/
inline ResourceNotFoundException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>404 Not Found</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>404 Not Found</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>404 Not Found</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>404 Not Found</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>404 Not Found</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>404 Not Found</p>
*/
inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>404 Not Found</p>
*/
inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>404 Not Found</p>
*/
inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if the specified resource (such as a vault, upload ID, or job ID)
* doesn't exist.</p>
*/
inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,429 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/Encryption.h>
#include <aws/glacier/model/CannedACL.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/glacier/model/StorageClass.h>
#include <aws/glacier/model/Grant.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the location in Amazon S3 where the select job
* results are stored.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/S3Location">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API S3Location
{
public:
S3Location();
S3Location(Aws::Utils::Json::JsonView jsonValue);
S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline const Aws::String& GetBucketName() const{ return m_bucketName; }
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
/**
* <p>The name of the Amazon S3 bucket where the job results are stored.</p>
*/
inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline const Aws::String& GetPrefix() const{ return m_prefix; }
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
/**
* <p>The prefix that is prepended to the results for this request.</p>
*/
inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;}
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline const Encryption& GetEncryption() const{ return m_encryption; }
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline S3Location& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
/**
* <p>Contains information about the encryption used to store the job results in
* Amazon S3.</p>
*/
inline S3Location& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline const CannedACL& GetCannedACL() const{ return m_cannedACL; }
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline bool CannedACLHasBeenSet() const { return m_cannedACLHasBeenSet; }
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline void SetCannedACL(const CannedACL& value) { m_cannedACLHasBeenSet = true; m_cannedACL = value; }
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline void SetCannedACL(CannedACL&& value) { m_cannedACLHasBeenSet = true; m_cannedACL = std::move(value); }
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline S3Location& WithCannedACL(const CannedACL& value) { SetCannedACL(value); return *this;}
/**
* <p>The canned access control list (ACL) to apply to the job results.</p>
*/
inline S3Location& WithCannedACL(CannedACL&& value) { SetCannedACL(std::move(value)); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline const Aws::Vector<Grant>& GetAccessControlList() const{ return m_accessControlList; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline void SetAccessControlList(const Aws::Vector<Grant>& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline void SetAccessControlList(Aws::Vector<Grant>&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& WithAccessControlList(const Aws::Vector<Grant>& value) { SetAccessControlList(value); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& WithAccessControlList(Aws::Vector<Grant>&& value) { SetAccessControlList(std::move(value)); return *this;}
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& AddAccessControlList(const Grant& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; }
/**
* <p>A list of grants that control access to the staged results.</p>
*/
inline S3Location& AddAccessControlList(Grant&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTagging() const{ return m_tagging; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline void SetTagging(const Aws::Map<Aws::String, Aws::String>& value) { m_taggingHasBeenSet = true; m_tagging = value; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline void SetTagging(Aws::Map<Aws::String, Aws::String>&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& WithTagging(const Aws::Map<Aws::String, Aws::String>& value) { SetTagging(value); return *this;}
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& WithTagging(Aws::Map<Aws::String, Aws::String>&& value) { SetTagging(std::move(value)); return *this;}
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(const Aws::String& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(Aws::String&& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(const Aws::String& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(Aws::String&& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(const char* key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(Aws::String&& key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
/**
* <p>The tag-set that is applied to the job results.</p>
*/
inline S3Location& AddTagging(const char* key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& WithUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetUserMetadata(value); return *this;}
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
inline S3Location& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
/**
* <p>The storage class used to store the job results.</p>
*/
inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
/**
* <p>The storage class used to store the job results.</p>
*/
inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
/**
* <p>The storage class used to store the job results.</p>
*/
inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
/**
* <p>The storage class used to store the job results.</p>
*/
inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
/**
* <p>The storage class used to store the job results.</p>
*/
inline S3Location& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
/**
* <p>The storage class used to store the job results.</p>
*/
inline S3Location& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
private:
Aws::String m_bucketName;
bool m_bucketNameHasBeenSet;
Aws::String m_prefix;
bool m_prefixHasBeenSet;
Encryption m_encryption;
bool m_encryptionHasBeenSet;
CannedACL m_cannedACL;
bool m_cannedACLHasBeenSet;
Aws::Vector<Grant> m_accessControlList;
bool m_accessControlListHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tagging;
bool m_taggingHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_userMetadata;
bool m_userMetadataHasBeenSet;
StorageClass m_storageClass;
bool m_storageClassHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,194 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/model/InputSerialization.h>
#include <aws/glacier/model/ExpressionType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/OutputSerialization.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains information about the parameters used for a select.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/SelectParameters">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API SelectParameters
{
public:
SelectParameters();
SelectParameters(Aws::Utils::Json::JsonView jsonValue);
SelectParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Describes the serialization format of the object.</p>
*/
inline const InputSerialization& GetInputSerialization() const{ return m_inputSerialization; }
/**
* <p>Describes the serialization format of the object.</p>
*/
inline bool InputSerializationHasBeenSet() const { return m_inputSerializationHasBeenSet; }
/**
* <p>Describes the serialization format of the object.</p>
*/
inline void SetInputSerialization(const InputSerialization& value) { m_inputSerializationHasBeenSet = true; m_inputSerialization = value; }
/**
* <p>Describes the serialization format of the object.</p>
*/
inline void SetInputSerialization(InputSerialization&& value) { m_inputSerializationHasBeenSet = true; m_inputSerialization = std::move(value); }
/**
* <p>Describes the serialization format of the object.</p>
*/
inline SelectParameters& WithInputSerialization(const InputSerialization& value) { SetInputSerialization(value); return *this;}
/**
* <p>Describes the serialization format of the object.</p>
*/
inline SelectParameters& WithInputSerialization(InputSerialization&& value) { SetInputSerialization(std::move(value)); return *this;}
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline const ExpressionType& GetExpressionType() const{ return m_expressionType; }
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; }
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline void SetExpressionType(const ExpressionType& value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; }
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline void SetExpressionType(ExpressionType&& value) { m_expressionTypeHasBeenSet = true; m_expressionType = std::move(value); }
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline SelectParameters& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;}
/**
* <p>The type of the provided expression, for example <code>SQL</code>.</p>
*/
inline SelectParameters& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;}
/**
* <p>The expression that is used to select the object.</p>
*/
inline const Aws::String& GetExpression() const{ return m_expression; }
/**
* <p>The expression that is used to select the object.</p>
*/
inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
/**
* <p>The expression that is used to select the object.</p>
*/
inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
/**
* <p>The expression that is used to select the object.</p>
*/
inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
/**
* <p>The expression that is used to select the object.</p>
*/
inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
/**
* <p>The expression that is used to select the object.</p>
*/
inline SelectParameters& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
/**
* <p>The expression that is used to select the object.</p>
*/
inline SelectParameters& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
/**
* <p>The expression that is used to select the object.</p>
*/
inline SelectParameters& WithExpression(const char* value) { SetExpression(value); return *this;}
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline const OutputSerialization& GetOutputSerialization() const{ return m_outputSerialization; }
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline bool OutputSerializationHasBeenSet() const { return m_outputSerializationHasBeenSet; }
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline void SetOutputSerialization(const OutputSerialization& value) { m_outputSerializationHasBeenSet = true; m_outputSerialization = value; }
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline void SetOutputSerialization(OutputSerialization&& value) { m_outputSerializationHasBeenSet = true; m_outputSerialization = std::move(value); }
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline SelectParameters& WithOutputSerialization(const OutputSerialization& value) { SetOutputSerialization(value); return *this;}
/**
* <p>Describes how the results of the select job are serialized.</p>
*/
inline SelectParameters& WithOutputSerialization(OutputSerialization&& value) { SetOutputSerialization(std::move(value)); return *this;}
private:
InputSerialization m_inputSerialization;
bool m_inputSerializationHasBeenSet;
ExpressionType m_expressionType;
bool m_expressionTypeHasBeenSet;
Aws::String m_expression;
bool m_expressionHasBeenSet;
OutputSerialization m_outputSerialization;
bool m_outputSerializationHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Returned if the service cannot complete the request.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ServiceUnavailableException">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API ServiceUnavailableException
{
public:
ServiceUnavailableException();
ServiceUnavailableException(Aws::Utils::Json::JsonView jsonValue);
ServiceUnavailableException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Server</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Server</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Server</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Server</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Server</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Server</p>
*/
inline ServiceUnavailableException& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Server</p>
*/
inline ServiceUnavailableException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Server</p>
*/
inline ServiceUnavailableException& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>500 Internal Server Error</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>500 Internal Server Error</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>500 Internal Server Error</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>500 Internal Server Error</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>500 Internal Server Error</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>500 Internal Server Error</p>
*/
inline ServiceUnavailableException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>500 Internal Server Error</p>
*/
inline ServiceUnavailableException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>500 Internal Server Error</p>
*/
inline ServiceUnavailableException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline ServiceUnavailableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline ServiceUnavailableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Returned if the service cannot complete the request.</p>
*/
inline ServiceUnavailableException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/DataRetrievalPolicy.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>SetDataRetrievalPolicy input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/SetDataRetrievalPolicyInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API SetDataRetrievalPolicyRequest : public GlacierRequest
{
public:
SetDataRetrievalPolicyRequest();
// 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 "SetDataRetrievalPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline SetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline SetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID. This value must match
* the AWS account ID associated with the credentials used to sign the request. You
* can either specify an AWS account ID or optionally a single '<code>-</code>'
* (hyphen), in which case Amazon Glacier uses the AWS account ID associated with
* the credentials used to sign the request. If you specify your account ID, do not
* include any hyphens ('-') in the ID.</p>
*/
inline SetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline void SetPolicy(const DataRetrievalPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline void SetPolicy(DataRetrievalPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline SetDataRetrievalPolicyRequest& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
/**
* <p>The data retrieval policy in JSON format.</p>
*/
inline SetDataRetrievalPolicyRequest& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
DataRetrievalPolicy m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/VaultAccessPolicy.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>SetVaultAccessPolicy input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/SetVaultAccessPolicyInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API SetVaultAccessPolicyRequest : public GlacierRequest
{
public:
SetVaultAccessPolicyRequest();
// 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 "SetVaultAccessPolicy"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultAccessPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultAccessPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultAccessPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline SetVaultAccessPolicyRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline SetVaultAccessPolicyRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline SetVaultAccessPolicyRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline const VaultAccessPolicy& GetPolicy() const{ return m_policy; }
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline void SetPolicy(const VaultAccessPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline void SetPolicy(VaultAccessPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline SetVaultAccessPolicyRequest& WithPolicy(const VaultAccessPolicy& value) { SetPolicy(value); return *this;}
/**
* <p>The vault access policy as a JSON string.</p>
*/
inline SetVaultAccessPolicyRequest& WithPolicy(VaultAccessPolicy&& value) { SetPolicy(std::move(value)); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
VaultAccessPolicy m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,198 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/glacier/model/VaultNotificationConfig.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to configure notifications that will be sent when specific
* events happen to a vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/SetVaultNotificationsInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API SetVaultNotificationsRequest : public GlacierRequest
{
public:
SetVaultNotificationsRequest();
// 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 "SetVaultNotifications"; }
Aws::String SerializePayload() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultNotificationsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultNotificationsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID.</p>
*/
inline SetVaultNotificationsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline SetVaultNotificationsRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline SetVaultNotificationsRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline SetVaultNotificationsRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline const VaultNotificationConfig& GetVaultNotificationConfig() const{ return m_vaultNotificationConfig; }
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline bool VaultNotificationConfigHasBeenSet() const { return m_vaultNotificationConfigHasBeenSet; }
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline void SetVaultNotificationConfig(const VaultNotificationConfig& value) { m_vaultNotificationConfigHasBeenSet = true; m_vaultNotificationConfig = value; }
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline void SetVaultNotificationConfig(VaultNotificationConfig&& value) { m_vaultNotificationConfigHasBeenSet = true; m_vaultNotificationConfig = std::move(value); }
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline SetVaultNotificationsRequest& WithVaultNotificationConfig(const VaultNotificationConfig& value) { SetVaultNotificationConfig(value); return *this;}
/**
* <p>Provides options for specifying notification configuration.</p>
*/
inline SetVaultNotificationsRequest& WithVaultNotificationConfig(VaultNotificationConfig&& value) { SetVaultNotificationConfig(std::move(value)); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
VaultNotificationConfig m_vaultNotificationConfig;
bool m_vaultNotificationConfigHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class StatusCode
{
NOT_SET,
InProgress,
Succeeded,
Failed
};
namespace StatusCodeMapper
{
AWS_GLACIER_API StatusCode GetStatusCodeForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForStatusCode(StatusCode value);
} // namespace StatusCodeMapper
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class StorageClass
{
NOT_SET,
STANDARD,
REDUCED_REDUNDANCY,
STANDARD_IA
};
namespace StorageClassMapper
{
AWS_GLACIER_API StorageClass GetStorageClassForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForStorageClass(StorageClass value);
} // namespace StorageClassMapper
} // namespace Model
} // namespace Glacier
} // 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/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Glacier
{
namespace Model
{
enum class Type
{
NOT_SET,
AmazonCustomerByEmail,
CanonicalUser,
Group
};
namespace TypeMapper
{
AWS_GLACIER_API Type GetTypeForName(const Aws::String& name);
AWS_GLACIER_API Aws::String GetNameForType(Type value);
} // namespace TypeMapper
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,252 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to add an archive to a vault.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/UploadArchiveInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API UploadArchiveRequest : public StreamingGlacierRequest
{
public:
UploadArchiveRequest();
// 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 "UploadArchive"; }
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline UploadArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline UploadArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline UploadArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline UploadArchiveRequest& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline UploadArchiveRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
/**
* <p>The optional description of the archive you are uploading.</p>
*/
inline UploadArchiveRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadArchiveRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadArchiveRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadArchiveRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
private:
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_archiveDescription;
bool m_archiveDescriptionHasBeenSet;
Aws::String m_checksum;
bool m_checksumHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p> <p>For
* information about the underlying REST API, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html">Upload
* Archive</a>. For conceptual information, see <a
* href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working
* with Archives in Amazon S3 Glacier</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/ArchiveCreationOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API UploadArchiveResult
{
public:
UploadArchiveResult();
UploadArchiveResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UploadArchiveResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline const Aws::String& GetLocation() const{ return m_location; }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(const Aws::String& value) { m_location = value; }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(Aws::String&& value) { m_location = std::move(value); }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline void SetLocation(const char* value) { m_location.assign(value); }
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline UploadArchiveResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline UploadArchiveResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
/**
* <p>The relative URI path of the newly added archive resource.</p>
*/
inline UploadArchiveResult& WithLocation(const char* value) { SetLocation(value); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline void SetChecksum(const char* value) { m_checksum.assign(value); }
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline UploadArchiveResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline UploadArchiveResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The checksum of the archive computed by Amazon S3 Glacier.</p>
*/
inline UploadArchiveResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline void SetArchiveId(const char* value) { m_archiveId.assign(value); }
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline UploadArchiveResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline UploadArchiveResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
/**
* <p>The ID of the archive. This value is also included as part of the
* location.</p>
*/
inline UploadArchiveResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
private:
Aws::String m_location;
Aws::String m_checksum;
Aws::String m_archiveId;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,261 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>A list of in-progress multipart uploads for a vault.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/UploadListElement">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API UploadListElement
{
public:
UploadListElement();
UploadListElement(Aws::Utils::Json::JsonView jsonValue);
UploadListElement& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of a multipart upload.</p>
*/
inline const Aws::String& GetMultipartUploadId() const{ return m_multipartUploadId; }
/**
* <p>The ID of a multipart upload.</p>
*/
inline bool MultipartUploadIdHasBeenSet() const { return m_multipartUploadIdHasBeenSet; }
/**
* <p>The ID of a multipart upload.</p>
*/
inline void SetMultipartUploadId(const Aws::String& value) { m_multipartUploadIdHasBeenSet = true; m_multipartUploadId = value; }
/**
* <p>The ID of a multipart upload.</p>
*/
inline void SetMultipartUploadId(Aws::String&& value) { m_multipartUploadIdHasBeenSet = true; m_multipartUploadId = std::move(value); }
/**
* <p>The ID of a multipart upload.</p>
*/
inline void SetMultipartUploadId(const char* value) { m_multipartUploadIdHasBeenSet = true; m_multipartUploadId.assign(value); }
/**
* <p>The ID of a multipart upload.</p>
*/
inline UploadListElement& WithMultipartUploadId(const Aws::String& value) { SetMultipartUploadId(value); return *this;}
/**
* <p>The ID of a multipart upload.</p>
*/
inline UploadListElement& WithMultipartUploadId(Aws::String&& value) { SetMultipartUploadId(std::move(value)); return *this;}
/**
* <p>The ID of a multipart upload.</p>
*/
inline UploadListElement& WithMultipartUploadId(const char* value) { SetMultipartUploadId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline const Aws::String& GetVaultARN() const{ return m_vaultARN; }
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline bool VaultARNHasBeenSet() const { return m_vaultARNHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline void SetVaultARN(const Aws::String& value) { m_vaultARNHasBeenSet = true; m_vaultARN = value; }
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline void SetVaultARN(Aws::String&& value) { m_vaultARNHasBeenSet = true; m_vaultARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline void SetVaultARN(const char* value) { m_vaultARNHasBeenSet = true; m_vaultARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline UploadListElement& WithVaultARN(const Aws::String& value) { SetVaultARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline UploadListElement& WithVaultARN(Aws::String&& value) { SetVaultARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the vault that contains the archive.</p>
*/
inline UploadListElement& WithVaultARN(const char* value) { SetVaultARN(value); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline UploadListElement& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline UploadListElement& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
/**
* <p>The description of the archive that was specified in the Initiate Multipart
* Upload request.</p>
*/
inline UploadListElement& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
/**
* <p>The part size, in bytes, specified in the Initiate Multipart Upload request.
* This is the size of all the parts in the upload except the last part, which may
* be smaller than this size.</p>
*/
inline long long GetPartSizeInBytes() const{ return m_partSizeInBytes; }
/**
* <p>The part size, in bytes, specified in the Initiate Multipart Upload request.
* This is the size of all the parts in the upload except the last part, which may
* be smaller than this size.</p>
*/
inline bool PartSizeInBytesHasBeenSet() const { return m_partSizeInBytesHasBeenSet; }
/**
* <p>The part size, in bytes, specified in the Initiate Multipart Upload request.
* This is the size of all the parts in the upload except the last part, which may
* be smaller than this size.</p>
*/
inline void SetPartSizeInBytes(long long value) { m_partSizeInBytesHasBeenSet = true; m_partSizeInBytes = value; }
/**
* <p>The part size, in bytes, specified in the Initiate Multipart Upload request.
* This is the size of all the parts in the upload except the last part, which may
* be smaller than this size.</p>
*/
inline UploadListElement& WithPartSizeInBytes(long long value) { SetPartSizeInBytes(value); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline UploadListElement& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline UploadListElement& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>The UTC time at which the multipart upload was initiated.</p>
*/
inline UploadListElement& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
private:
Aws::String m_multipartUploadId;
bool m_multipartUploadIdHasBeenSet;
Aws::String m_vaultARN;
bool m_vaultARNHasBeenSet;
Aws::String m_archiveDescription;
bool m_archiveDescriptionHasBeenSet;
long long m_partSizeInBytes;
bool m_partSizeInBytesHasBeenSet;
Aws::String m_creationDate;
bool m_creationDateHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,321 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/glacier/GlacierRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
namespace Glacier
{
namespace Model
{
/**
* <p>Provides options to upload a part of an archive in a multipart upload
* operation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/UploadMultipartPartInput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API UploadMultipartPartRequest : public StreamingGlacierRequest
{
public:
UploadMultipartPartRequest();
// 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 "UploadMultipartPart"; }
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline const Aws::String& GetAccountId() const{ return m_accountId; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadMultipartPartRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadMultipartPartRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
/**
* <p>The <code>AccountId</code> value is the AWS account ID of the account that
* owns the vault. You can either specify an AWS account ID or optionally a single
* '<code>-</code>' (hyphen), in which case Amazon S3 Glacier uses the AWS account
* ID associated with the credentials used to sign the request. If you use an
* account ID, do not include any hyphens ('-') in the ID. </p>
*/
inline UploadMultipartPartRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline const Aws::String& GetVaultName() const{ return m_vaultName; }
/**
* <p>The name of the vault.</p>
*/
inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
/**
* <p>The name of the vault.</p>
*/
inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
/**
* <p>The name of the vault.</p>
*/
inline UploadMultipartPartRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline UploadMultipartPartRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
/**
* <p>The name of the vault.</p>
*/
inline UploadMultipartPartRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline UploadMultipartPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline UploadMultipartPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
/**
* <p>The upload ID of the multipart upload.</p>
*/
inline UploadMultipartPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadMultipartPartRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadMultipartPartRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash of the data being uploaded.</p>
*/
inline UploadMultipartPartRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline const Aws::String& GetRange() const{ return m_range; }
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline void SetRange(const Aws::String& value) { m_rangeHasBeenSet = true; m_range = value; }
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline void SetRange(Aws::String&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline void SetRange(const char* value) { m_rangeHasBeenSet = true; m_range.assign(value); }
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline UploadMultipartPartRequest& WithRange(const Aws::String& value) { SetRange(value); return *this;}
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline UploadMultipartPartRequest& WithRange(Aws::String&& value) { SetRange(std::move(value)); return *this;}
/**
* <p>Identifies the range of bytes in the assembled archive that will be uploaded
* in this part. Amazon S3 Glacier uses this information to assemble the archive in
* the proper sequence. The format of this header follows RFC 2616. An example
* header is Content-Range:bytes 0-4194303/ *.</p>
*/
inline UploadMultipartPartRequest& WithRange(const char* value) { SetRange(value); return *this;}
private:
Aws::String m_accountId;
bool m_accountIdHasBeenSet;
Aws::String m_vaultName;
bool m_vaultNameHasBeenSet;
Aws::String m_uploadId;
bool m_uploadIdHasBeenSet;
Aws::String m_checksum;
bool m_checksumHasBeenSet;
Aws::String m_range;
bool m_rangeHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_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 Glacier
{
namespace Model
{
/**
* <p>Contains the Amazon S3 Glacier response to your request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/UploadMultipartPartOutput">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API UploadMultipartPartResult
{
public:
UploadMultipartPartResult();
UploadMultipartPartResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UploadMultipartPartResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline const Aws::String& GetChecksum() const{ return m_checksum; }
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline void SetChecksum(const char* value) { m_checksum.assign(value); }
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline UploadMultipartPartResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline UploadMultipartPartResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
/**
* <p>The SHA256 tree hash that Amazon S3 Glacier computed for the uploaded
* part.</p>
*/
inline UploadMultipartPartResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
private:
Aws::String m_checksum;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the vault access policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/VaultAccessPolicy">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API VaultAccessPolicy
{
public:
VaultAccessPolicy();
VaultAccessPolicy(Aws::Utils::Json::JsonView jsonValue);
VaultAccessPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The vault access policy.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The vault access policy.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The vault access policy.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The vault access policy.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The vault access policy.</p>
*/
inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
/**
* <p>The vault access policy.</p>
*/
inline VaultAccessPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The vault access policy.</p>
*/
inline VaultAccessPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The vault access policy.</p>
*/
inline VaultAccessPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glacier/Glacier_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Glacier
{
namespace Model
{
/**
* <p>Contains the vault lock policy.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/VaultLockPolicy">AWS
* API Reference</a></p>
*/
class AWS_GLACIER_API VaultLockPolicy
{
public:
VaultLockPolicy();
VaultLockPolicy(Aws::Utils::Json::JsonView jsonValue);
VaultLockPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The vault lock policy.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The vault lock policy.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The vault lock policy.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The vault lock policy.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The vault lock policy.</p>
*/
inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
/**
* <p>The vault lock policy.</p>
*/
inline VaultLockPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The vault lock policy.</p>
*/
inline VaultLockPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The vault lock policy.</p>
*/
inline VaultLockPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace Glacier
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More