AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Position.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace IAM
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_IAM_API Position() = default;
36 AWS_IAM_API Position(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_IAM_API Position& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline int GetLine() const { return m_line; }
48 inline bool LineHasBeenSet() const { return m_lineHasBeenSet; }
49 inline void SetLine(int value) { m_lineHasBeenSet = true; m_line = value; }
50 inline Position& WithLine(int value) { SetLine(value); return *this;}
52
54
57 inline int GetColumn() const { return m_column; }
58 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
59 inline void SetColumn(int value) { m_columnHasBeenSet = true; m_column = value; }
60 inline Position& WithColumn(int value) { SetColumn(value); return *this;}
62 private:
63
64 int m_line{0};
65 bool m_lineHasBeenSet = false;
66
67 int m_column{0};
68 bool m_columnHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace IAM
73} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Position & WithColumn(int value)
Definition Position.h:60
bool LineHasBeenSet() const
Definition Position.h:48
AWS_IAM_API Position()=default
void SetLine(int value)
Definition Position.h:49
Position & WithLine(int value)
Definition Position.h:50
AWS_IAM_API Position(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 Position & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ColumnHasBeenSet() const
Definition Position.h:58
void SetColumn(int value)
Definition Position.h:59
std::basic_ostream< char, std::char_traits< char > > OStream