/**
* 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 resource definition version.See Also:
AWS
* API Reference
*/
class ResourceDefinitionVersion
{
public:
AWS_GREENGRASS_API ResourceDefinitionVersion();
AWS_GREENGRASS_API ResourceDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API ResourceDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of resources.
*/
inline const Aws::Vector& GetResources() const{ return m_resources; }
/**
* A list of resources.
*/
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
/**
* A list of resources.
*/
inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; }
/**
* A list of resources.
*/
inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
/**
* A list of resources.
*/
inline ResourceDefinitionVersion& WithResources(const Aws::Vector& value) { SetResources(value); return *this;}
/**
* A list of resources.
*/
inline ResourceDefinitionVersion& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;}
/**
* A list of resources.
*/
inline ResourceDefinitionVersion& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* A list of resources.
*/
inline ResourceDefinitionVersion& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
private:
Aws::Vector m_resources;
bool m_resourcesHasBeenSet = false;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws