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

The principals.

*/ inline const Aws::Vector& GetPrincipals() const{ return m_principals; } /** *

The principals.

*/ inline void SetPrincipals(const Aws::Vector& value) { m_principals = value; } /** *

The principals.

*/ inline void SetPrincipals(Aws::Vector&& value) { m_principals = std::move(value); } /** *

The principals.

*/ inline DescribeResourcePermissionsResult& WithPrincipals(const Aws::Vector& value) { SetPrincipals(value); return *this;} /** *

The principals.

*/ inline DescribeResourcePermissionsResult& WithPrincipals(Aws::Vector&& value) { SetPrincipals(std::move(value)); return *this;} /** *

The principals.

*/ inline DescribeResourcePermissionsResult& AddPrincipals(const Principal& value) { m_principals.push_back(value); return *this; } /** *

The principals.

*/ inline DescribeResourcePermissionsResult& AddPrincipals(Principal&& value) { m_principals.push_back(std::move(value)); return *this; } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

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

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

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

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline void SetMarker(const char* value) { m_marker.assign(value); } /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline DescribeResourcePermissionsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline DescribeResourcePermissionsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The marker to use when requesting the next set of results. If there are no * additional results, the string is empty.

*/ inline DescribeResourcePermissionsResult& WithMarker(const char* value) { SetMarker(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 DescribeResourcePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeResourcePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeResourcePermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_principals; Aws::String m_marker; Aws::String m_requestId; }; } // namespace Model } // namespace WorkDocs } // namespace Aws