AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetDetectorResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/FindingPublishingFrequency.h>
10#include <aws/guardduty/model/DetectorStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/guardduty/model/DetectorFeatureConfigurationResult.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GuardDuty
29{
30namespace Model
31{
33 {
34 public:
35 AWS_GUARDDUTY_API GetDetectorResult() = default;
38
39
41
44 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
45 template<typename CreatedAtT = Aws::String>
46 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
47 template<typename CreatedAtT = Aws::String>
48 GetDetectorResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
50
52
55 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
56 inline void SetFindingPublishingFrequency(FindingPublishingFrequency value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; }
59
61
64 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
65 template<typename ServiceRoleT = Aws::String>
66 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
67 template<typename ServiceRoleT = Aws::String>
68 GetDetectorResult& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
70
72
75 inline DetectorStatus GetStatus() const { return m_status; }
76 inline void SetStatus(DetectorStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline GetDetectorResult& WithStatus(DetectorStatus value) { SetStatus(value); return *this;}
79
81
84 inline const Aws::String& GetUpdatedAt() const { return m_updatedAt; }
85 template<typename UpdatedAtT = Aws::String>
86 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
87 template<typename UpdatedAtT = Aws::String>
88 GetDetectorResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 GetDetectorResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 GetDetectorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
103 }
105
107
110 inline const Aws::Vector<DetectorFeatureConfigurationResult>& GetFeatures() const { return m_features; }
111 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
112 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
113 template<typename FeaturesT = Aws::Vector<DetectorFeatureConfigurationResult>>
114 GetDetectorResult& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
115 template<typename FeaturesT = DetectorFeatureConfigurationResult>
116 GetDetectorResult& AddFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features.emplace_back(std::forward<FeaturesT>(value)); return *this; }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template<typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
124 template<typename RequestIdT = Aws::String>
125 GetDetectorResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
127 private:
128
129 Aws::String m_createdAt;
130 bool m_createdAtHasBeenSet = false;
131
133 bool m_findingPublishingFrequencyHasBeenSet = false;
134
135 Aws::String m_serviceRole;
136 bool m_serviceRoleHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140
141 Aws::String m_updatedAt;
142 bool m_updatedAtHasBeenSet = false;
143
145 bool m_tagsHasBeenSet = false;
146
148 bool m_featuresHasBeenSet = false;
149
150 Aws::String m_requestId;
151 bool m_requestIdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace GuardDuty
156} // namespace Aws
GetDetectorResult & WithCreatedAt(CreatedAtT &&value)
GetDetectorResult & WithFindingPublishingFrequency(FindingPublishingFrequency value)
void SetServiceRole(ServiceRoleT &&value)
GetDetectorResult & AddFeatures(FeaturesT &&value)
GetDetectorResult & WithRequestId(RequestIdT &&value)
FindingPublishingFrequency GetFindingPublishingFrequency() const
GetDetectorResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GUARDDUTY_API GetDetectorResult()=default
void SetFindingPublishingFrequency(FindingPublishingFrequency value)
const Aws::String & GetServiceRole() const
const Aws::String & GetCreatedAt() const
AWS_GUARDDUTY_API GetDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDetectorResult & WithServiceRole(ServiceRoleT &&value)
const Aws::Vector< DetectorFeatureConfigurationResult > & GetFeatures() const
AWS_GUARDDUTY_API GetDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetUpdatedAt() const
GetDetectorResult & WithFeatures(FeaturesT &&value)
GetDetectorResult & WithUpdatedAt(UpdatedAtT &&value)
GetDetectorResult & WithStatus(DetectorStatus value)
GetDetectorResult & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue