/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { class GetAccessPointPolicyResult { public: AWS_S3CONTROL_API GetAccessPointPolicyResult(); AWS_S3CONTROL_API GetAccessPointPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_S3CONTROL_API GetAccessPointPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

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

The access point policy associated with the specified access point.

*/ inline GetAccessPointPolicyResult& WithPolicy(const char* value) { SetPolicy(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 GetAccessPointPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAccessPointPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAccessPointPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policy; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws