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

A PolicyGeneration object that contains details about the * generated policy.

*/ inline const Aws::Vector& GetPolicyGenerations() const{ return m_policyGenerations; } /** *

A PolicyGeneration object that contains details about the * generated policy.

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

A PolicyGeneration object that contains details about the * generated policy.

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

A PolicyGeneration object that contains details about the * generated policy.

*/ inline ListPolicyGenerationsResult& WithPolicyGenerations(const Aws::Vector& value) { SetPolicyGenerations(value); return *this;} /** *

A PolicyGeneration object that contains details about the * generated policy.

*/ inline ListPolicyGenerationsResult& WithPolicyGenerations(Aws::Vector&& value) { SetPolicyGenerations(std::move(value)); return *this;} /** *

A PolicyGeneration object that contains details about the * generated policy.

*/ inline ListPolicyGenerationsResult& AddPolicyGenerations(const PolicyGeneration& value) { m_policyGenerations.push_back(value); return *this; } /** *

A PolicyGeneration object that contains details about the * generated policy.

*/ inline ListPolicyGenerationsResult& AddPolicyGenerations(PolicyGeneration&& value) { m_policyGenerations.push_back(std::move(value)); return *this; } /** *

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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

A token used for pagination of results returned.

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