/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ServerlessApplicationRepository { namespace Model { class AWS_SERVERLESSAPPLICATIONREPOSITORY_API PutApplicationPolicyResult { public: PutApplicationPolicyResult(); PutApplicationPolicyResult(const Aws::AmazonWebServiceResult& result); PutApplicationPolicyResult& 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 PutApplicationPolicyResult& WithStatements(const Aws::Vector& value) { SetStatements(value); return *this;} /** *

An array of policy statements applied to the application.

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

An array of policy statements applied to the application.

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

An array of policy statements applied to the application.

*/ inline PutApplicationPolicyResult& AddStatements(ApplicationPolicyStatement&& value) { m_statements.push_back(std::move(value)); return *this; } private: Aws::Vector m_statements; }; } // namespace Model } // namespace ServerlessApplicationRepository } // namespace Aws