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

The unique ID of the created detector.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The unique ID of the created detector.

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

The unique ID of the created detector.

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

The unique ID of the created detector.

*/ inline void SetDetectorId(const char* value) { m_detectorId.assign(value); } /** *

The unique ID of the created detector.

*/ inline CreateDetectorResult& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The unique ID of the created detector.

*/ inline CreateDetectorResult& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The unique ID of the created detector.

*/ inline CreateDetectorResult& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

Specifies the data sources that couldn't be enabled when GuardDuty was * enabled for the first time.

*/ inline const UnprocessedDataSourcesResult& GetUnprocessedDataSources() const{ return m_unprocessedDataSources; } /** *

Specifies the data sources that couldn't be enabled when GuardDuty was * enabled for the first time.

*/ inline void SetUnprocessedDataSources(const UnprocessedDataSourcesResult& value) { m_unprocessedDataSources = value; } /** *

Specifies the data sources that couldn't be enabled when GuardDuty was * enabled for the first time.

*/ inline void SetUnprocessedDataSources(UnprocessedDataSourcesResult&& value) { m_unprocessedDataSources = std::move(value); } /** *

Specifies the data sources that couldn't be enabled when GuardDuty was * enabled for the first time.

*/ inline CreateDetectorResult& WithUnprocessedDataSources(const UnprocessedDataSourcesResult& value) { SetUnprocessedDataSources(value); return *this;} /** *

Specifies the data sources that couldn't be enabled when GuardDuty was * enabled for the first time.

*/ inline CreateDetectorResult& WithUnprocessedDataSources(UnprocessedDataSourcesResult&& value) { SetUnprocessedDataSources(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 CreateDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_detectorId; UnprocessedDataSourcesResult m_unprocessedDataSources; Aws::String m_requestId; }; } // namespace Model } // namespace GuardDuty } // namespace Aws