AWS SDK for C++

AWS SDK for C++ Version 1.11.940

Loading...
Searching...
No Matches
InvestigationResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/InvestigationResourceData.h>
10#include <aws/guardduty/model/InvestigationResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API InvestigationResource() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetUid() const { return m_uid; }
44 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
45 template <typename UidT = Aws::String>
46 void SetUid(UidT&& value) {
47 m_uidHasBeenSet = true;
48 m_uid = std::forward<UidT>(value);
49 }
50 template <typename UidT = Aws::String>
52 SetUid(std::forward<UidT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
85 inline InvestigationResourceType GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
88 m_resourceTypeHasBeenSet = true;
89 m_resourceType = value;
90 }
92 SetResourceType(value);
93 return *this;
94 }
96
98
101 inline const InvestigationResourceData& GetData() const { return m_data; }
102 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
103 template <typename DataT = InvestigationResourceData>
104 void SetData(DataT&& value) {
105 m_dataHasBeenSet = true;
106 m_data = std::forward<DataT>(value);
107 }
108 template <typename DataT = InvestigationResourceData>
110 SetData(std::forward<DataT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_uid;
116
117 Aws::String m_name;
118
120
121 InvestigationResourceData m_data;
122 bool m_uidHasBeenSet = false;
123 bool m_nameHasBeenSet = false;
124 bool m_resourceTypeHasBeenSet = false;
125 bool m_dataHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace GuardDuty
130} // namespace Aws
InvestigationResource & WithResourceType(InvestigationResourceType value)
AWS_GUARDDUTY_API InvestigationResource & operator=(Aws::Utils::Json::JsonView jsonValue)
InvestigationResource & WithData(DataT &&value)
InvestigationResourceType GetResourceType() const
const InvestigationResourceData & GetData() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationResource & WithUid(UidT &&value)
AWS_GUARDDUTY_API InvestigationResource(Aws::Utils::Json::JsonView jsonValue)
InvestigationResource & WithName(NameT &&value)
void SetResourceType(InvestigationResourceType value)
AWS_GUARDDUTY_API InvestigationResource()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue