AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Span.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/Position.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer
22{
23namespace Model
24{
25
32 class Span
33 {
34 public:
35 AWS_ACCESSANALYZER_API Span();
36 AWS_ACCESSANALYZER_API Span(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API Span& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Position& GetStart() const{ return m_start; }
46 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
47 inline void SetStart(const Position& value) { m_startHasBeenSet = true; m_start = value; }
48 inline void SetStart(Position&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
49 inline Span& WithStart(const Position& value) { SetStart(value); return *this;}
50 inline Span& WithStart(Position&& value) { SetStart(std::move(value)); return *this;}
52
54
57 inline const Position& GetEnd() const{ return m_end; }
58 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
59 inline void SetEnd(const Position& value) { m_endHasBeenSet = true; m_end = value; }
60 inline void SetEnd(Position&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
61 inline Span& WithEnd(const Position& value) { SetEnd(value); return *this;}
62 inline Span& WithEnd(Position&& value) { SetEnd(std::move(value)); return *this;}
64 private:
65
66 Position m_start;
67 bool m_startHasBeenSet = false;
68
69 Position m_end;
70 bool m_endHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace AccessAnalyzer
75} // namespace Aws
void SetStart(const Position &value)
Definition Span.h:47
Span & WithEnd(Position &&value)
Definition Span.h:62
AWS_ACCESSANALYZER_API Span()
void SetStart(Position &&value)
Definition Span.h:48
const Position & GetStart() const
Definition Span.h:45
AWS_ACCESSANALYZER_API Span & operator=(Aws::Utils::Json::JsonView jsonValue)
const Position & GetEnd() const
Definition Span.h:57
bool StartHasBeenSet() const
Definition Span.h:46
void SetEnd(Position &&value)
Definition Span.h:60
Span & WithStart(const Position &value)
Definition Span.h:49
Span & WithStart(Position &&value)
Definition Span.h:50
Span & WithEnd(const Position &value)
Definition Span.h:61
AWS_ACCESSANALYZER_API Span(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnd(const Position &value)
Definition Span.h:59
Aws::Utils::Json::JsonValue JsonValue