This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-greengrass/include/aws/greengrass/model/FunctionExecutionConfig.h

91 lines
2.6 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionIsolationMode.h>
#include <aws/greengrass/model/FunctionRunAsConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Configuration information that specifies how a Lambda function runs. <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionExecutionConfig">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionExecutionConfig
{
public:
FunctionExecutionConfig();
FunctionExecutionConfig(Aws::Utils::Json::JsonView jsonValue);
FunctionExecutionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const FunctionIsolationMode& GetIsolationMode() const{ return m_isolationMode; }
inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
inline void SetIsolationMode(const FunctionIsolationMode& value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; }
inline void SetIsolationMode(FunctionIsolationMode&& value) { m_isolationModeHasBeenSet = true; m_isolationMode = std::move(value); }
inline FunctionExecutionConfig& WithIsolationMode(const FunctionIsolationMode& value) { SetIsolationMode(value); return *this;}
inline FunctionExecutionConfig& WithIsolationMode(FunctionIsolationMode&& value) { SetIsolationMode(std::move(value)); return *this;}
inline const FunctionRunAsConfig& GetRunAs() const{ return m_runAs; }
inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
inline void SetRunAs(const FunctionRunAsConfig& value) { m_runAsHasBeenSet = true; m_runAs = value; }
inline void SetRunAs(FunctionRunAsConfig&& value) { m_runAsHasBeenSet = true; m_runAs = std::move(value); }
inline FunctionExecutionConfig& WithRunAs(const FunctionRunAsConfig& value) { SetRunAs(value); return *this;}
inline FunctionExecutionConfig& WithRunAs(FunctionRunAsConfig&& value) { SetRunAs(std::move(value)); return *this;}
private:
FunctionIsolationMode m_isolationMode;
bool m_isolationModeHasBeenSet;
FunctionRunAsConfig m_runAs;
bool m_runAsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws