/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains the row and column of a location of a Statement element * in a policy document.

This data type is used as a member of the * Statement type.

See Also:

AWS API * Reference

*/ class Position { public: AWS_IAM_API Position(); AWS_IAM_API Position(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API Position& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The line containing the specified position in the document.

*/ inline int GetLine() const{ return m_line; } /** *

The line containing the specified position in the document.

*/ inline bool LineHasBeenSet() const { return m_lineHasBeenSet; } /** *

The line containing the specified position in the document.

*/ inline void SetLine(int value) { m_lineHasBeenSet = true; m_line = value; } /** *

The line containing the specified position in the document.

*/ inline Position& WithLine(int value) { SetLine(value); return *this;} /** *

The column in the line containing the specified position in the document.

*/ inline int GetColumn() const{ return m_column; } /** *

The column in the line containing the specified position in the document.

*/ inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; } /** *

The column in the line containing the specified position in the document.

*/ inline void SetColumn(int value) { m_columnHasBeenSet = true; m_column = value; } /** *

The column in the line containing the specified position in the document.

*/ inline Position& WithColumn(int value) { SetColumn(value); return *this;} private: int m_line; bool m_lineHasBeenSet = false; int m_column; bool m_columnHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws