AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FindingSource.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/FindingSourceDetail.h>
9#include <aws/accessanalyzer/model/FindingSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
31 public:
32 AWS_ACCESSANALYZER_API FindingSource() = default;
33 AWS_ACCESSANALYZER_API FindingSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCESSANALYZER_API FindingSource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline FindingSourceType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(FindingSourceType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
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) {
62 m_detailHasBeenSet = true;
63 m_detail = std::forward<DetailT>(value);
64 }
65 template <typename DetailT = FindingSourceDetail>
66 FindingSource& WithDetail(DetailT&& value) {
67 SetDetail(std::forward<DetailT>(value));
68 return *this;
69 }
71 private:
73
74 FindingSourceDetail m_detail;
75 bool m_typeHasBeenSet = false;
76 bool m_detailHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AccessAnalyzer
81} // 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