/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppMesh
{
namespace Model
{
/**
* An object that represents the format for the logs.
See Also:
* AWS
* API Reference
*/
class LoggingFormat
{
public:
AWS_APPMESH_API LoggingFormat();
AWS_APPMESH_API LoggingFormat(Aws::Utils::Json::JsonView jsonValue);
AWS_APPMESH_API LoggingFormat& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
*
*/
inline const Aws::Vector& GetJson() const{ return m_json; }
/**
*
*/
inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
/**
*
*/
inline void SetJson(const Aws::Vector& value) { m_jsonHasBeenSet = true; m_json = value; }
/**
*
*/
inline void SetJson(Aws::Vector&& value) { m_jsonHasBeenSet = true; m_json = std::move(value); }
/**
*
*/
inline LoggingFormat& WithJson(const Aws::Vector& value) { SetJson(value); return *this;}
/**
*
*/
inline LoggingFormat& WithJson(Aws::Vector&& value) { SetJson(std::move(value)); return *this;}
/**
*
*/
inline LoggingFormat& AddJson(const JsonFormatRef& value) { m_jsonHasBeenSet = true; m_json.push_back(value); return *this; }
/**
*
*/
inline LoggingFormat& AddJson(JsonFormatRef&& value) { m_jsonHasBeenSet = true; m_json.push_back(std::move(value)); return *this; }
/**
*
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
*
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
*
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
*
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
*
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
*
*/
inline LoggingFormat& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
*
*/
inline LoggingFormat& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
*
*/
inline LoggingFormat& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::Vector m_json;
bool m_jsonHasBeenSet = false;
Aws::String m_text;
bool m_textHasBeenSet = false;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws