AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FindingSource.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingSourceType.h>
9#include <aws/accessanalyzer/model/FindingSourceDetail.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ACCESSANALYZER_API FindingSource() = default;
38 AWS_ACCESSANALYZER_API FindingSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API FindingSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline FindingSourceType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(FindingSourceType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline FindingSource& WithType(FindingSourceType value) { SetType(value); return *this;}
52
54
58 inline const FindingSourceDetail& GetDetail() const { return m_detail; }
59 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
60 template<typename DetailT = FindingSourceDetail>
61 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
62 template<typename DetailT = FindingSourceDetail>
63 FindingSource& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
65 private:
66
68 bool m_typeHasBeenSet = false;
69
70 FindingSourceDetail m_detail;
71 bool m_detailHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace AccessAnalyzer
76} // namespace Aws
FindingSource & WithDetail(DetailT &&value)
AWS_ACCESSANALYZER_API FindingSource(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API FindingSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(FindingSourceType value)
FindingSource & WithType(FindingSourceType value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const FindingSourceDetail & GetDetail() const
AWS_ACCESSANALYZER_API FindingSource()=default
Aws::Utils::Json::JsonValue JsonValue