AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Location.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/accessanalyzer/model/Span.h>
10#include <aws/accessanalyzer/model/PathElement.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ACCESSANALYZER_API Location() = default;
38 AWS_ACCESSANALYZER_API Location(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<PathElement>& GetPath() const { return m_path; }
48 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
49 template<typename PathT = Aws::Vector<PathElement>>
50 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
51 template<typename PathT = Aws::Vector<PathElement>>
52 Location& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
53 template<typename PathT = PathElement>
54 Location& AddPath(PathT&& value) { m_pathHasBeenSet = true; m_path.emplace_back(std::forward<PathT>(value)); return *this; }
56
58
61 inline const Span& GetSpan() const { return m_span; }
62 inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
63 template<typename SpanT = Span>
64 void SetSpan(SpanT&& value) { m_spanHasBeenSet = true; m_span = std::forward<SpanT>(value); }
65 template<typename SpanT = Span>
66 Location& WithSpan(SpanT&& value) { SetSpan(std::forward<SpanT>(value)); return *this;}
68 private:
69
71 bool m_pathHasBeenSet = false;
72
73 Span m_span;
74 bool m_spanHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AccessAnalyzer
79} // namespace Aws
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Span & GetSpan() const
Definition Location.h:61
Location & WithSpan(SpanT &&value)
Definition Location.h:66
Location & WithPath(PathT &&value)
Definition Location.h:52
Location & AddPath(PathT &&value)
Definition Location.h:54
AWS_ACCESSANALYZER_API Location()=default
AWS_ACCESSANALYZER_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PathElement > & GetPath() const
Definition Location.h:47
AWS_ACCESSANALYZER_API Location(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue