/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include SetVaultAccessPolicy input.See Also:
AWS
* API Reference
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The AccountId
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
* '-
' (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.
The name of the vault.
*/ inline const Aws::String& GetVaultName() const{ return m_vaultName; } /** *The name of the vault.
*/ inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; } /** *The name of the vault.
*/ inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; } /** *The name of the vault.
*/ inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); } /** *The name of the vault.
*/ inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); } /** *The name of the vault.
*/ inline SetVaultAccessPolicyRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;} /** *The name of the vault.
*/ inline SetVaultAccessPolicyRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;} /** *The name of the vault.
*/ inline SetVaultAccessPolicyRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;} /** *The vault access policy as a JSON string.
*/ inline const VaultAccessPolicy& GetPolicy() const{ return m_policy; } /** *The vault access policy as a JSON string.
*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *The vault access policy as a JSON string.
*/ inline void SetPolicy(const VaultAccessPolicy& value) { m_policyHasBeenSet = true; m_policy = value; } /** *The vault access policy as a JSON string.
*/ inline void SetPolicy(VaultAccessPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *The vault access policy as a JSON string.
*/ inline SetVaultAccessPolicyRequest& WithPolicy(const VaultAccessPolicy& value) { SetPolicy(value); return *this;} /** *The vault access policy as a JSON string.
*/ inline SetVaultAccessPolicyRequest& WithPolicy(VaultAccessPolicy&& value) { SetPolicy(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_vaultName; bool m_vaultNameHasBeenSet = false; VaultAccessPolicy m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace Glacier } // namespace Aws