/** * 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 CloudDirectory { namespace Model { class LookupPolicyResult { public: AWS_CLOUDDIRECTORY_API LookupPolicyResult(); AWS_CLOUDDIRECTORY_API LookupPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDDIRECTORY_API LookupPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

*/ inline const Aws::Vector& GetPolicyToPathList() const{ return m_policyToPathList; } /** *

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

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

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

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

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

*/ inline LookupPolicyResult& WithPolicyToPathList(const Aws::Vector& value) { SetPolicyToPathList(value); return *this;} /** *

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

*/ inline LookupPolicyResult& WithPolicyToPathList(Aws::Vector&& value) { SetPolicyToPathList(std::move(value)); return *this;} /** *

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

*/ inline LookupPolicyResult& AddPolicyToPathList(const PolicyToPath& value) { m_policyToPathList.push_back(value); return *this; } /** *

Provides list of path to policies. Policies contain PolicyId, * ObjectIdentifier, and PolicyType. For more * information, see Policies.

*/ inline LookupPolicyResult& AddPolicyToPathList(PolicyToPath&& value) { m_policyToPathList.push_back(std::move(value)); return *this; } /** *

The pagination token.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token.

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

The pagination token.

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

The pagination token.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The pagination token.

*/ inline LookupPolicyResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token.

*/ inline LookupPolicyResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token.

*/ inline LookupPolicyResult& WithNextToken(const char* value) { SetNextToken(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 LookupPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline LookupPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline LookupPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_policyToPathList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws