/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppSync
{
namespace Model
{
/**
* Describes the location of the error in a code sample.
See
* Also:
AWS
* API Reference
*/
class CodeErrorLocation
{
public:
AWS_APPSYNC_API CodeErrorLocation();
AWS_APPSYNC_API CodeErrorLocation(Aws::Utils::Json::JsonView jsonValue);
AWS_APPSYNC_API CodeErrorLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The line number in the code. Defaults to 0
if unknown.
*/
inline int GetLine() const{ return m_line; }
/**
* The line number in the code. Defaults to 0
if unknown.
*/
inline bool LineHasBeenSet() const { return m_lineHasBeenSet; }
/**
* The line number in the code. Defaults to 0
if unknown.
*/
inline void SetLine(int value) { m_lineHasBeenSet = true; m_line = value; }
/**
* The line number in the code. Defaults to 0
if unknown.
*/
inline CodeErrorLocation& WithLine(int value) { SetLine(value); return *this;}
/**
* The column number in the code. Defaults to 0
if unknown.
*/
inline int GetColumn() const{ return m_column; }
/**
* The column number in the code. Defaults to 0
if unknown.
*/
inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
/**
* The column number in the code. Defaults to 0
if unknown.
*/
inline void SetColumn(int value) { m_columnHasBeenSet = true; m_column = value; }
/**
* The column number in the code. Defaults to 0
if unknown.
*/
inline CodeErrorLocation& WithColumn(int value) { SetColumn(value); return *this;}
/**
* The span/length of the error. Defaults to -1
if unknown.
*/
inline int GetSpan() const{ return m_span; }
/**
* The span/length of the error. Defaults to -1
if unknown.
*/
inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
/**
* The span/length of the error. Defaults to -1
if unknown.
*/
inline void SetSpan(int value) { m_spanHasBeenSet = true; m_span = value; }
/**
* The span/length of the error. Defaults to -1
if unknown.
*/
inline CodeErrorLocation& WithSpan(int value) { SetSpan(value); return *this;}
private:
int m_line;
bool m_lineHasBeenSet = false;
int m_column;
bool m_columnHasBeenSet = false;
int m_span;
bool m_spanHasBeenSet = false;
};
} // namespace Model
} // namespace AppSync
} // namespace Aws