/**
* 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 logger definition version.See Also:
AWS
* API Reference
*/
class LoggerDefinitionVersion
{
public:
AWS_GREENGRASS_API LoggerDefinitionVersion();
AWS_GREENGRASS_API LoggerDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API LoggerDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of loggers.
*/
inline const Aws::Vector& GetLoggers() const{ return m_loggers; }
/**
* A list of loggers.
*/
inline bool LoggersHasBeenSet() const { return m_loggersHasBeenSet; }
/**
* A list of loggers.
*/
inline void SetLoggers(const Aws::Vector& value) { m_loggersHasBeenSet = true; m_loggers = value; }
/**
* A list of loggers.
*/
inline void SetLoggers(Aws::Vector&& value) { m_loggersHasBeenSet = true; m_loggers = std::move(value); }
/**
* A list of loggers.
*/
inline LoggerDefinitionVersion& WithLoggers(const Aws::Vector& value) { SetLoggers(value); return *this;}
/**
* A list of loggers.
*/
inline LoggerDefinitionVersion& WithLoggers(Aws::Vector&& value) { SetLoggers(std::move(value)); return *this;}
/**
* A list of loggers.
*/
inline LoggerDefinitionVersion& AddLoggers(const Logger& value) { m_loggersHasBeenSet = true; m_loggers.push_back(value); return *this; }
/**
* A list of loggers.
*/
inline LoggerDefinitionVersion& AddLoggers(Logger&& value) { m_loggersHasBeenSet = true; m_loggers.push_back(std::move(value)); return *this; }
private:
Aws::Vector m_loggers;
bool m_loggersHasBeenSet = false;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws