/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Glacier { namespace Model { /** *

Contains the Amazon S3 Glacier response to your request.

See * Also:

AWS * API Reference

*/ class GetVaultLockResult { public: AWS_GLACIER_API GetVaultLockResult(); AWS_GLACIER_API GetVaultLockResult(const Aws::AmazonWebServiceResult& result); AWS_GLACIER_API GetVaultLockResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline void SetPolicy(const Aws::String& value) { m_policy = value; } /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); } /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline void SetPolicy(const char* value) { m_policy.assign(value); } /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline GetVaultLockResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline GetVaultLockResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The vault lock policy as a JSON string, which uses "\" as an escape * character.

*/ inline GetVaultLockResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} /** *

The state of the vault lock. InProgress or * Locked.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the vault lock. InProgress or * Locked.

*/ inline void SetState(const Aws::String& value) { m_state = value; } /** *

The state of the vault lock. InProgress or * Locked.

*/ inline void SetState(Aws::String&& value) { m_state = std::move(value); } /** *

The state of the vault lock. InProgress or * Locked.

*/ inline void SetState(const char* value) { m_state.assign(value); } /** *

The state of the vault lock. InProgress or * Locked.

*/ inline GetVaultLockResult& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the vault lock. InProgress or * Locked.

*/ inline GetVaultLockResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the vault lock. InProgress or * Locked.

*/ inline GetVaultLockResult& WithState(const char* value) { SetState(value); return *this;} /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline const Aws::String& GetExpirationDate() const{ return m_expirationDate; } /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline void SetExpirationDate(const Aws::String& value) { m_expirationDate = value; } /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline void SetExpirationDate(Aws::String&& value) { m_expirationDate = std::move(value); } /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline void SetExpirationDate(const char* value) { m_expirationDate.assign(value); } /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline GetVaultLockResult& WithExpirationDate(const Aws::String& value) { SetExpirationDate(value); return *this;} /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline GetVaultLockResult& WithExpirationDate(Aws::String&& value) { SetExpirationDate(std::move(value)); return *this;} /** *

The UTC date and time at which the lock ID expires. This value can be * null if the vault lock is in a Locked state.

*/ inline GetVaultLockResult& WithExpirationDate(const char* value) { SetExpirationDate(value); return *this;} /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline const Aws::String& GetCreationDate() const{ return m_creationDate; } /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline void SetCreationDate(const Aws::String& value) { m_creationDate = value; } /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline void SetCreationDate(Aws::String&& value) { m_creationDate = std::move(value); } /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline void SetCreationDate(const char* value) { m_creationDate.assign(value); } /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline GetVaultLockResult& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline GetVaultLockResult& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The UTC date and time at which the vault lock was put into the * InProgress state.

*/ inline GetVaultLockResult& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetVaultLockResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetVaultLockResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetVaultLockResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policy; Aws::String m_state; Aws::String m_expirationDate; Aws::String m_creationDate; Aws::String m_requestId; }; } // namespace Model } // namespace Glacier } // namespace Aws