AWS SDK for C++  1.9.155
AWS SDK for C++
Span.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AccessAnalyzer
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Span();
39 
40 
44  inline const Position& GetEnd() const{ return m_end; }
45 
49  inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
50 
54  inline void SetEnd(const Position& value) { m_endHasBeenSet = true; m_end = value; }
55 
59  inline void SetEnd(Position&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
60 
64  inline Span& WithEnd(const Position& value) { SetEnd(value); return *this;}
65 
69  inline Span& WithEnd(Position&& value) { SetEnd(std::move(value)); return *this;}
70 
71 
75  inline const Position& GetStart() const{ return m_start; }
76 
80  inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
81 
85  inline void SetStart(const Position& value) { m_startHasBeenSet = true; m_start = value; }
86 
90  inline void SetStart(Position&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
91 
95  inline Span& WithStart(const Position& value) { SetStart(value); return *this;}
96 
100  inline Span& WithStart(Position&& value) { SetStart(std::move(value)); return *this;}
101 
102  private:
103 
104  Position m_end;
105  bool m_endHasBeenSet;
106 
107  Position m_start;
108  bool m_startHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace AccessAnalyzer
113 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::Span::GetStart
const Position & GetStart() const
Definition: Span.h:75
Aws::AccessAnalyzer::Model::Span::EndHasBeenSet
bool EndHasBeenSet() const
Definition: Span.h:49
Aws::AccessAnalyzer::Model::Span::SetEnd
void SetEnd(const Position &value)
Definition: Span.h:54
Aws::AccessAnalyzer::Model::Span::SetEnd
void SetEnd(Position &&value)
Definition: Span.h:59
Aws::AccessAnalyzer::Model::Span::Span
Span(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::Span::operator=
Span & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::Span::StartHasBeenSet
bool StartHasBeenSet() const
Definition: Span.h:80
Aws::AccessAnalyzer::Model::Span::SetStart
void SetStart(Position &&value)
Definition: Span.h:90
Aws::AccessAnalyzer::Model::Span::Span
Span()
Aws::AccessAnalyzer::Model::Span::GetEnd
const Position & GetEnd() const
Definition: Span.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::Span::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::Span::SetStart
void SetStart(const Position &value)
Definition: Span.h:85
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::Span::WithEnd
Span & WithEnd(Position &&value)
Definition: Span.h:69
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::Span::WithEnd
Span & WithEnd(const Position &value)
Definition: Span.h:64
Aws::AccessAnalyzer::Model::Span::WithStart
Span & WithStart(Position &&value)
Definition: Span.h:100
Aws::AccessAnalyzer::Model::Position
Definition: Position.h:30
Aws::AccessAnalyzer::Model::Span::WithStart
Span & WithStart(const Position &value)
Definition: Span.h:95
Position.h
Aws::AccessAnalyzer::Model::Span
Definition: Span.h:33