/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppSync
{
namespace Model
{
/**
* Describes a runtime used by an Amazon Web Services AppSync pipeline resolver
* or Amazon Web Services AppSync function. Specifies the name and version of the
* runtime to use. Note that if a runtime is specified, code must also be
* specified.
See Also:
AWS
* API Reference
*/
class AppSyncRuntime
{
public:
AWS_APPSYNC_API AppSyncRuntime();
AWS_APPSYNC_API AppSyncRuntime(Aws::Utils::Json::JsonView jsonValue);
AWS_APPSYNC_API AppSyncRuntime& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline const RuntimeName& GetName() const{ return m_name; }
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline void SetName(const RuntimeName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline void SetName(RuntimeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline AppSyncRuntime& WithName(const RuntimeName& value) { SetName(value); return *this;}
/**
* The name
of the runtime to use. Currently, the only allowed
* value is APPSYNC_JS
.
*/
inline AppSyncRuntime& WithName(RuntimeName&& value) { SetName(std::move(value)); return *this;}
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline const Aws::String& GetRuntimeVersion() const{ return m_runtimeVersion; }
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline bool RuntimeVersionHasBeenSet() const { return m_runtimeVersionHasBeenSet; }
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline void SetRuntimeVersion(const Aws::String& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = value; }
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline void SetRuntimeVersion(Aws::String&& value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion = std::move(value); }
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline void SetRuntimeVersion(const char* value) { m_runtimeVersionHasBeenSet = true; m_runtimeVersion.assign(value); }
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline AppSyncRuntime& WithRuntimeVersion(const Aws::String& value) { SetRuntimeVersion(value); return *this;}
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline AppSyncRuntime& WithRuntimeVersion(Aws::String&& value) { SetRuntimeVersion(std::move(value)); return *this;}
/**
* The version
of the runtime to use. Currently, the only allowed
* version is 1.0.0
.
*/
inline AppSyncRuntime& WithRuntimeVersion(const char* value) { SetRuntimeVersion(value); return *this;}
private:
RuntimeName m_name;
bool m_nameHasBeenSet = false;
Aws::String m_runtimeVersion;
bool m_runtimeVersionHasBeenSet = false;
};
} // namespace Model
} // namespace AppSync
} // namespace Aws