/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Crt { namespace Model { class GetObjectLockConfigurationResult { public: AWS_S3CRT_API GetObjectLockConfigurationResult(); AWS_S3CRT_API GetObjectLockConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_S3CRT_API GetObjectLockConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The specified bucket's Object Lock configuration.

*/ inline const ObjectLockConfiguration& GetObjectLockConfiguration() const{ return m_objectLockConfiguration; } /** *

The specified bucket's Object Lock configuration.

*/ inline void SetObjectLockConfiguration(const ObjectLockConfiguration& value) { m_objectLockConfiguration = value; } /** *

The specified bucket's Object Lock configuration.

*/ inline void SetObjectLockConfiguration(ObjectLockConfiguration&& value) { m_objectLockConfiguration = std::move(value); } /** *

The specified bucket's Object Lock configuration.

*/ inline GetObjectLockConfigurationResult& WithObjectLockConfiguration(const ObjectLockConfiguration& value) { SetObjectLockConfiguration(value); return *this;} /** *

The specified bucket's Object Lock configuration.

*/ inline GetObjectLockConfigurationResult& WithObjectLockConfiguration(ObjectLockConfiguration&& value) { SetObjectLockConfiguration(std::move(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 GetObjectLockConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetObjectLockConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetObjectLockConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ObjectLockConfiguration m_objectLockConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace S3Crt } // namespace Aws