AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPath(const Aws::Vector<PathElement>& value) { m_pathHasBeenSet = true; m_path = value; }
50 inline void SetPath(Aws::Vector<PathElement>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
51 inline Location& WithPath(const Aws::Vector<PathElement>& value) { SetPath(value); return *this;}
52 inline Location& WithPath(Aws::Vector<PathElement>&& value) { SetPath(std::move(value)); return *this;}
53 inline Location& AddPath(const PathElement& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
54 inline Location& AddPath(PathElement&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
56
58
61 inline const Span& GetSpan() const{ return m_span; }
62 inline bool SpanHasBeenSet() const { return m_spanHasBeenSet; }
63 inline void SetSpan(const Span& value) { m_spanHasBeenSet = true; m_span = value; }
64 inline void SetSpan(Span&& value) { m_spanHasBeenSet = true; m_span = std::move(value); }
65 inline Location& WithSpan(const Span& value) { SetSpan(value); return *this;}
66 inline Location& WithSpan(Span&& value) { SetSpan(std::move(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 & WithPath(Aws::Vector< PathElement > &&value)
Definition Location.h:52
Location & WithPath(const Aws::Vector< PathElement > &value)
Definition Location.h:51
Location & AddPath(const PathElement &value)
Definition Location.h:53
AWS_ACCESSANALYZER_API Location()
void SetPath(const Aws::Vector< PathElement > &value)
Definition Location.h:49
AWS_ACCESSANALYZER_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Location & WithSpan(const Span &value)
Definition Location.h:65
const Aws::Vector< PathElement > & GetPath() const
Definition Location.h:47
Location & WithSpan(Span &&value)
Definition Location.h:66
void SetSpan(const Span &value)
Definition Location.h:63
void SetPath(Aws::Vector< PathElement > &&value)
Definition Location.h:50
Location & AddPath(PathElement &&value)
Definition Location.h:54
AWS_ACCESSANALYZER_API Location(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue