/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class AWS_LAMBDA_API AddPermissionResult { public: AddPermissionResult(); AddPermissionResult(const Aws::AmazonWebServiceResult& result); AddPermissionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The permission statement that's added to the function policy.

*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *

The permission statement that's added to the function policy.

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

The permission statement that's added to the function policy.

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

The permission statement that's added to the function policy.

*/ inline void SetStatement(const char* value) { m_statement.assign(value); } /** *

The permission statement that's added to the function policy.

*/ inline AddPermissionResult& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *

The permission statement that's added to the function policy.

*/ inline AddPermissionResult& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *

The permission statement that's added to the function policy.

*/ inline AddPermissionResult& WithStatement(const char* value) { SetStatement(value); return *this;} private: Aws::String m_statement; }; } // namespace Model } // namespace Lambda } // namespace Aws