/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { class GetDetectorResult { public: AWS_GUARDDUTY_API GetDetectorResult(); AWS_GUARDDUTY_API GetDetectorResult(const Aws::AmazonWebServiceResult& result); AWS_GUARDDUTY_API GetDetectorResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The timestamp of when the detector was created.

*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp of when the detector was created.

*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; } /** *

The timestamp of when the detector was created.

*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); } /** *

The timestamp of when the detector was created.

*/ inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); } /** *

The timestamp of when the detector was created.

*/ inline GetDetectorResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *

The timestamp of when the detector was created.

*/ inline GetDetectorResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The timestamp of when the detector was created.

*/ inline GetDetectorResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *

The publishing frequency of the finding.

*/ inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; } /** *

The publishing frequency of the finding.

*/ inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequency = value; } /** *

The publishing frequency of the finding.

*/ inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequency = std::move(value); } /** *

The publishing frequency of the finding.

*/ inline GetDetectorResult& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;} /** *

The publishing frequency of the finding.

*/ inline GetDetectorResult& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;} /** *

The GuardDuty service role.

*/ inline const Aws::String& GetServiceRole() const{ return m_serviceRole; } /** *

The GuardDuty service role.

*/ inline void SetServiceRole(const Aws::String& value) { m_serviceRole = value; } /** *

The GuardDuty service role.

*/ inline void SetServiceRole(Aws::String&& value) { m_serviceRole = std::move(value); } /** *

The GuardDuty service role.

*/ inline void SetServiceRole(const char* value) { m_serviceRole.assign(value); } /** *

The GuardDuty service role.

*/ inline GetDetectorResult& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;} /** *

The GuardDuty service role.

*/ inline GetDetectorResult& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;} /** *

The GuardDuty service role.

*/ inline GetDetectorResult& WithServiceRole(const char* value) { SetServiceRole(value); return *this;} /** *

The detector status.

*/ inline const DetectorStatus& GetStatus() const{ return m_status; } /** *

The detector status.

*/ inline void SetStatus(const DetectorStatus& value) { m_status = value; } /** *

The detector status.

*/ inline void SetStatus(DetectorStatus&& value) { m_status = std::move(value); } /** *

The detector status.

*/ inline GetDetectorResult& WithStatus(const DetectorStatus& value) { SetStatus(value); return *this;} /** *

The detector status.

*/ inline GetDetectorResult& WithStatus(DetectorStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The last-updated timestamp for the detector.

*/ inline const Aws::String& GetUpdatedAt() const{ return m_updatedAt; } /** *

The last-updated timestamp for the detector.

*/ inline void SetUpdatedAt(const Aws::String& value) { m_updatedAt = value; } /** *

The last-updated timestamp for the detector.

*/ inline void SetUpdatedAt(Aws::String&& value) { m_updatedAt = std::move(value); } /** *

The last-updated timestamp for the detector.

*/ inline void SetUpdatedAt(const char* value) { m_updatedAt.assign(value); } /** *

The last-updated timestamp for the detector.

*/ inline GetDetectorResult& WithUpdatedAt(const Aws::String& value) { SetUpdatedAt(value); return *this;} /** *

The last-updated timestamp for the detector.

*/ inline GetDetectorResult& WithUpdatedAt(Aws::String&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *

The last-updated timestamp for the detector.

*/ inline GetDetectorResult& WithUpdatedAt(const char* value) { SetUpdatedAt(value); return *this;} /** *

The tags of the detector resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags of the detector resource.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags of the detector resource.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags of the detector resource.

*/ inline GetDetectorResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the detector resource.

*/ inline GetDetectorResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

Describes the features that have been enabled for the detector.

*/ inline const Aws::Vector& GetFeatures() const{ return m_features; } /** *

Describes the features that have been enabled for the detector.

*/ inline void SetFeatures(const Aws::Vector& value) { m_features = value; } /** *

Describes the features that have been enabled for the detector.

*/ inline void SetFeatures(Aws::Vector&& value) { m_features = std::move(value); } /** *

Describes the features that have been enabled for the detector.

*/ inline GetDetectorResult& WithFeatures(const Aws::Vector& value) { SetFeatures(value); return *this;} /** *

Describes the features that have been enabled for the detector.

*/ inline GetDetectorResult& WithFeatures(Aws::Vector&& value) { SetFeatures(std::move(value)); return *this;} /** *

Describes the features that have been enabled for the detector.

*/ inline GetDetectorResult& AddFeatures(const DetectorFeatureConfigurationResult& value) { m_features.push_back(value); return *this; } /** *

Describes the features that have been enabled for the detector.

*/ inline GetDetectorResult& AddFeatures(DetectorFeatureConfigurationResult&& value) { m_features.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_createdAt; FindingPublishingFrequency m_findingPublishingFrequency; Aws::String m_serviceRole; DetectorStatus m_status; Aws::String m_updatedAt; Aws::Map m_tags; Aws::Vector m_features; Aws::String m_requestId; }; } // namespace Model } // namespace GuardDuty } // namespace Aws