/** * 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 AWS_S3CONTROL_API GetAccessPointPolicyResult { public: GetAccessPointPolicyResult(); GetAccessPointPolicyResult(const Aws::AmazonWebServiceResult& result); 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;} private: Aws::String m_policy; }; } // namespace Model } // namespace S3Control } // namespace Aws