/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The fields contained in log events found by a GetLogGroupFields
* operation, along with the percentage of queried log events in which each field
* appears.See Also:
AWS
* API Reference
The name of a log field.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of a log field.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of a log field.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of a log field.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of a log field.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of a log field.
*/ inline LogGroupField& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of a log field.
*/ inline LogGroupField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of a log field.
*/ inline LogGroupField& WithName(const char* value) { SetName(value); return *this;} /** *The percentage of log events queried that contained the field.
*/ inline int GetPercent() const{ return m_percent; } /** *The percentage of log events queried that contained the field.
*/ inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; } /** *The percentage of log events queried that contained the field.
*/ inline void SetPercent(int value) { m_percentHasBeenSet = true; m_percent = value; } /** *The percentage of log events queried that contained the field.
*/ inline LogGroupField& WithPercent(int value) { SetPercent(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_percent; bool m_percentHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws