AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const FindingSourceType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const FindingSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(FindingSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline FindingSource& WithType(const FindingSourceType& value) { SetType(value); return *this;}
52 inline FindingSource& WithType(FindingSourceType&& value) { SetType(std::move(value)); return *this;}
54
56
60 inline const FindingSourceDetail& GetDetail() const{ return m_detail; }
61 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
62 inline void SetDetail(const FindingSourceDetail& value) { m_detailHasBeenSet = true; m_detail = value; }
63 inline void SetDetail(FindingSourceDetail&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
64 inline FindingSource& WithDetail(const FindingSourceDetail& value) { SetDetail(value); return *this;}
65 inline FindingSource& WithDetail(FindingSourceDetail&& value) { SetDetail(std::move(value)); return *this;}
67 private:
68
69 FindingSourceType m_type;
70 bool m_typeHasBeenSet = false;
71
72 FindingSourceDetail m_detail;
73 bool m_detailHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AccessAnalyzer
78} // namespace Aws
AWS_ACCESSANALYZER_API FindingSource()
AWS_ACCESSANALYZER_API FindingSource(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API FindingSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const FindingSourceType & GetType() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const FindingSourceDetail & GetDetail() const
FindingSource & WithType(FindingSourceType &&value)
void SetDetail(FindingSourceDetail &&value)
FindingSource & WithDetail(const FindingSourceDetail &value)
void SetType(const FindingSourceType &value)
void SetType(FindingSourceType &&value)
void SetDetail(const FindingSourceDetail &value)
FindingSource & WithType(const FindingSourceType &value)
FindingSource & WithDetail(FindingSourceDetail &&value)
Aws::Utils::Json::JsonValue JsonValue