162 lines
7.2 KiB
C++
162 lines
7.2 KiB
C++
/**
|
|
* 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
|