AWS SDK for C++  0.12.9
AWS SDK for C++
Position.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace IAM
29 {
30 namespace Model
31 {
32 
39  {
40  public:
41  Position();
42  Position(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Position& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline long GetLine() const{ return m_line; }
52 
56  inline void SetLine(long value) { m_lineHasBeenSet = true; m_line = value; }
57 
61  inline Position& WithLine(long value) { SetLine(value); return *this;}
62 
66  inline long GetColumn() const{ return m_column; }
67 
71  inline void SetColumn(long value) { m_columnHasBeenSet = true; m_column = value; }
72 
76  inline Position& WithColumn(long value) { SetColumn(value); return *this;}
77 
78  private:
79  long m_line;
80  bool m_lineHasBeenSet;
81  long m_column;
82  bool m_columnHasBeenSet;
83  };
84 
85 } // namespace Model
86 } // namespace IAM
87 } // namespace Aws
long GetLine() const
Definition: Position.h:51
long GetColumn() const
Definition: Position.h:66
Position & WithLine(long value)
Definition: Position.h:61
void SetLine(long value)
Definition: Position.h:56
Position & WithColumn(long value)
Definition: Position.h:76
void SetColumn(long value)
Definition: Position.h:71
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
JSON (JavaScript Object Notation).