AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
InvestigationScope.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/InvestigationType.h>
10#include <aws/guardduty/model/QueryTimeWindow.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
32 public:
33 AWS_GUARDDUTY_API InvestigationScope() = default;
34 AWS_GUARDDUTY_API InvestigationScope(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline InvestigationType GetInvestigationType() const { return m_investigationType; }
47 inline bool InvestigationTypeHasBeenSet() const { return m_investigationTypeHasBeenSet; }
49 m_investigationTypeHasBeenSet = true;
50 m_investigationType = value;
51 }
54 return *this;
55 }
57
59
63 inline const Aws::String& GetFindingId() const { return m_findingId; }
64 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
65 template <typename FindingIdT = Aws::String>
66 void SetFindingId(FindingIdT&& value) {
67 m_findingIdHasBeenSet = true;
68 m_findingId = std::forward<FindingIdT>(value);
69 }
70 template <typename FindingIdT = Aws::String>
71 InvestigationScope& WithFindingId(FindingIdT&& value) {
72 SetFindingId(std::forward<FindingIdT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetAccountId() const { return m_accountId; }
83 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
84 template <typename AccountIdT = Aws::String>
85 void SetAccountId(AccountIdT&& value) {
86 m_accountIdHasBeenSet = true;
87 m_accountId = std::forward<AccountIdT>(value);
88 }
89 template <typename AccountIdT = Aws::String>
90 InvestigationScope& WithAccountId(AccountIdT&& value) {
91 SetAccountId(std::forward<AccountIdT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetAdminAccountId() const { return m_adminAccountId; }
103 inline bool AdminAccountIdHasBeenSet() const { return m_adminAccountIdHasBeenSet; }
104 template <typename AdminAccountIdT = Aws::String>
105 void SetAdminAccountId(AdminAccountIdT&& value) {
106 m_adminAccountIdHasBeenSet = true;
107 m_adminAccountId = std::forward<AdminAccountIdT>(value);
108 }
109 template <typename AdminAccountIdT = Aws::String>
110 InvestigationScope& WithAdminAccountId(AdminAccountIdT&& value) {
111 SetAdminAccountId(std::forward<AdminAccountIdT>(value));
112 return *this;
113 }
115
117
122 inline const QueryTimeWindow& GetQueryTimeWindow() const { return m_queryTimeWindow; }
123 inline bool QueryTimeWindowHasBeenSet() const { return m_queryTimeWindowHasBeenSet; }
124 template <typename QueryTimeWindowT = QueryTimeWindow>
125 void SetQueryTimeWindow(QueryTimeWindowT&& value) {
126 m_queryTimeWindowHasBeenSet = true;
127 m_queryTimeWindow = std::forward<QueryTimeWindowT>(value);
128 }
129 template <typename QueryTimeWindowT = QueryTimeWindow>
130 InvestigationScope& WithQueryTimeWindow(QueryTimeWindowT&& value) {
131 SetQueryTimeWindow(std::forward<QueryTimeWindowT>(value));
132 return *this;
133 }
135 private:
137
138 Aws::String m_findingId;
139
140 Aws::String m_accountId;
141
142 Aws::String m_adminAccountId;
143
144 QueryTimeWindow m_queryTimeWindow;
145 bool m_investigationTypeHasBeenSet = false;
146 bool m_findingIdHasBeenSet = false;
147 bool m_accountIdHasBeenSet = false;
148 bool m_adminAccountIdHasBeenSet = false;
149 bool m_queryTimeWindowHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace GuardDuty
154} // namespace Aws
AWS_GUARDDUTY_API InvestigationScope & operator=(Aws::Utils::Json::JsonView jsonValue)
InvestigationScope & WithQueryTimeWindow(QueryTimeWindowT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationScope & WithAdminAccountId(AdminAccountIdT &&value)
InvestigationScope & WithInvestigationType(InvestigationType value)
AWS_GUARDDUTY_API InvestigationScope(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API InvestigationScope()=default
const QueryTimeWindow & GetQueryTimeWindow() const
void SetQueryTimeWindow(QueryTimeWindowT &&value)
void SetInvestigationType(InvestigationType value)
const Aws::String & GetAdminAccountId() const
InvestigationScope & WithFindingId(FindingIdT &&value)
void SetAdminAccountId(AdminAccountIdT &&value)
InvestigationScope & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue