/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains one field from one log event returned by a CloudWatch Logs Insights
* query, along with the value of that field. For more information about the
* fields that are generated by CloudWatch logs, see Supported
* Logs and Discovered Fields.See Also:
AWS
* API Reference
The log event field.
*/ inline const Aws::String& GetField() const{ return m_field; } /** *The log event field.
*/ inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; } /** *The log event field.
*/ inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; } /** *The log event field.
*/ inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); } /** *The log event field.
*/ inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); } /** *The log event field.
*/ inline ResultField& WithField(const Aws::String& value) { SetField(value); return *this;} /** *The log event field.
*/ inline ResultField& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;} /** *The log event field.
*/ inline ResultField& WithField(const char* value) { SetField(value); return *this;} /** *The value of this field.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value of this field.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value of this field.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value of this field.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value of this field.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value of this field.
*/ inline ResultField& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value of this field.
*/ inline ResultField& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value of this field.
*/ inline ResultField& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_field; bool m_fieldHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws