/** * 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 IoT { namespace Model { /** *

The output from the ListPolicyVersions operation.

See Also:

* AWS * API Reference

*/ class ListPolicyVersionsResult { public: AWS_IOT_API ListPolicyVersionsResult(); AWS_IOT_API ListPolicyVersionsResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API ListPolicyVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The policy versions.

*/ inline const Aws::Vector& GetPolicyVersions() const{ return m_policyVersions; } /** *

The policy versions.

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

The policy versions.

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

The policy versions.

*/ inline ListPolicyVersionsResult& WithPolicyVersions(const Aws::Vector& value) { SetPolicyVersions(value); return *this;} /** *

The policy versions.

*/ inline ListPolicyVersionsResult& WithPolicyVersions(Aws::Vector&& value) { SetPolicyVersions(std::move(value)); return *this;} /** *

The policy versions.

*/ inline ListPolicyVersionsResult& AddPolicyVersions(const PolicyVersion& value) { m_policyVersions.push_back(value); return *this; } /** *

The policy versions.

*/ inline ListPolicyVersionsResult& AddPolicyVersions(PolicyVersion&& value) { m_policyVersions.push_back(std::move(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 ListPolicyVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListPolicyVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListPolicyVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_policyVersions; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws