/**
* 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 Greengrass
{
namespace Model
{
/**
* Information about a core definition version.See Also:
AWS
* API Reference
*/
class CoreDefinitionVersion
{
public:
AWS_GREENGRASS_API CoreDefinitionVersion();
AWS_GREENGRASS_API CoreDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API CoreDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of cores in the core definition version.
*/
inline const Aws::Vector& GetCores() const{ return m_cores; }
/**
* A list of cores in the core definition version.
*/
inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(const Aws::Vector& value) { m_coresHasBeenSet = true; m_cores = value; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(Aws::Vector&& value) { m_coresHasBeenSet = true; m_cores = std::move(value); }
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& WithCores(const Aws::Vector& value) { SetCores(value); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& WithCores(Aws::Vector&& value) { SetCores(std::move(value)); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& AddCores(const Core& value) { m_coresHasBeenSet = true; m_cores.push_back(value); return *this; }
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& AddCores(Core&& value) { m_coresHasBeenSet = true; m_cores.push_back(std::move(value)); return *this; }
private:
Aws::Vector m_cores;
bool m_coresHasBeenSet = false;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws