/** * 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 #include namespace Aws { namespace GuardDuty { namespace Model { /** */ class CreateDetectorRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API CreateDetectorRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDetector"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

A Boolean value that specifies whether the detector is to be enabled.

*/ inline bool GetEnable() const{ return m_enable; } /** *

A Boolean value that specifies whether the detector is to be enabled.

*/ inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; } /** *

A Boolean value that specifies whether the detector is to be enabled.

*/ inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; } /** *

A Boolean value that specifies whether the detector is to be enabled.

*/ inline CreateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;} /** *

The idempotency token for the create request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The idempotency token for the create request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The idempotency token for the create request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The idempotency token for the create request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The idempotency token for the create request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The idempotency token for the create request.

*/ inline CreateDetectorRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency token for the create request.

*/ inline CreateDetectorRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The idempotency token for the create request.

*/ inline CreateDetectorRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A value that specifies how frequently updated findings are exported.

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

A value that specifies how frequently updated findings are exported.

*/ inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; } /** *

A value that specifies how frequently updated findings are exported.

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

A value that specifies how frequently updated findings are exported.

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

A value that specifies how frequently updated findings are exported.

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

A value that specifies how frequently updated findings are exported.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

The tags to be added to a new detector resource.

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

A list of features that will be configured for the detector.

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

A list of features that will be configured for the detector.

*/ inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } /** *

A list of features that will be configured for the detector.

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

A list of features that will be configured for the detector.

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

A list of features that will be configured for the detector.

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

A list of features that will be configured for the detector.

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

A list of features that will be configured for the detector.

*/ inline CreateDetectorRequest& AddFeatures(const DetectorFeatureConfiguration& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; } /** *

A list of features that will be configured for the detector.

*/ inline CreateDetectorRequest& AddFeatures(DetectorFeatureConfiguration&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; } private: bool m_enable; bool m_enableHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; FindingPublishingFrequency m_findingPublishingFrequency; bool m_findingPublishingFrequencyHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_features; bool m_featuresHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws