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

An array of policy statements applied to the application.

*/ inline const Aws::Vector& GetStatements() const{ return m_statements; } /** *

An array of policy statements applied to the application.

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

An array of policy statements applied to the application.

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

An array of policy statements applied to the application.

*/ inline GetApplicationPolicyResult& WithStatements(const Aws::Vector& value) { SetStatements(value); return *this;} /** *

An array of policy statements applied to the application.

*/ inline GetApplicationPolicyResult& WithStatements(Aws::Vector&& value) { SetStatements(std::move(value)); return *this;} /** *

An array of policy statements applied to the application.

*/ inline GetApplicationPolicyResult& AddStatements(const ApplicationPolicyStatement& value) { m_statements.push_back(value); return *this; } /** *

An array of policy statements applied to the application.

*/ inline GetApplicationPolicyResult& AddStatements(ApplicationPolicyStatement&& value) { m_statements.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 GetApplicationPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetApplicationPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetApplicationPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_statements; Aws::String m_requestId; }; } // namespace Model } // namespace ServerlessApplicationRepository } // namespace Aws