AWS SDK for C++  1.9.157
AWS SDK for C++
Location.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AccessAnalyzer
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<PathElement>& GetPath() const{ return m_path; }
47 
51  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
52 
56  inline void SetPath(const Aws::Vector<PathElement>& value) { m_pathHasBeenSet = true; m_path = value; }
57 
61  inline void SetPath(Aws::Vector<PathElement>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
62 
66  inline Location& WithPath(const Aws::Vector<PathElement>& value) { SetPath(value); return *this;}
67 
71  inline Location& WithPath(Aws::Vector<PathElement>&& value) { SetPath(std::move(value)); return *this;}
72 
76  inline Location& AddPath(const PathElement& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
77 
81  inline Location& AddPath(PathElement&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
82 
83 
87  inline const Span& GetSpan() const{ return m_span; }
88 
92  inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
93 
97  inline void SetSpan(const Span& value) { m_spanHasBeenSet = true; m_span = value; }
98 
102  inline void SetSpan(Span&& value) { m_spanHasBeenSet = true; m_span = std::move(value); }
103 
107  inline Location& WithSpan(const Span& value) { SetSpan(value); return *this;}
108 
112  inline Location& WithSpan(Span&& value) { SetSpan(std::move(value)); return *this;}
113 
114  private:
115 
117  bool m_pathHasBeenSet;
118 
119  Span m_span;
120  bool m_spanHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace AccessAnalyzer
125 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::Location::Location
Location(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::Location::WithPath
Location & WithPath(Aws::Vector< PathElement > &&value)
Definition: Location.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::Location::WithSpan
Location & WithSpan(Span &&value)
Definition: Location.h:112
Aws::AccessAnalyzer::Model::Location::WithSpan
Location & WithSpan(const Span &value)
Definition: Location.h:107
Aws::AccessAnalyzer::Model::Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSVector.h
Aws::AccessAnalyzer::Model::Location::SetSpan
void SetSpan(const Span &value)
Definition: Location.h:97
Aws::AccessAnalyzer::Model::PathElement
Definition: PathElement.h:34
Span.h
Aws::AccessAnalyzer::Model::Location::GetSpan
const Span & GetSpan() const
Definition: Location.h:87
Aws::AccessAnalyzer::Model::Location::AddPath
Location & AddPath(PathElement &&value)
Definition: Location.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::Location::WithPath
Location & WithPath(const Aws::Vector< PathElement > &value)
Definition: Location.h:66
Aws::AccessAnalyzer::Model::Location::AddPath
Location & AddPath(const PathElement &value)
Definition: Location.h:76
Aws::AccessAnalyzer::Model::Location::SetSpan
void SetSpan(Span &&value)
Definition: Location.h:102
Aws::AccessAnalyzer::Model::Location::SetPath
void SetPath(Aws::Vector< PathElement > &&value)
Definition: Location.h:61
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::Location::SpanHasBeenSet
bool SpanHasBeenSet() const
Definition: Location.h:92
Aws::AccessAnalyzer::Model::Location::operator=
Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::Location::PathHasBeenSet
bool PathHasBeenSet() const
Definition: Location.h:51
Aws::AccessAnalyzer::Model::Location::Location
Location()
PathElement.h
Aws::AccessAnalyzer::Model::Location
Definition: Location.h:35
Aws::AccessAnalyzer::Model::Location::SetPath
void SetPath(const Aws::Vector< PathElement > &value)
Definition: Location.h:56
Aws::AccessAnalyzer::Model::Location::GetPath
const Aws::Vector< PathElement > & GetPath() const
Definition: Location.h:46
Aws::AccessAnalyzer::Model::Span
Definition: Span.h:33