/** * 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 namespace Aws { namespace GuardDuty { namespace Model { /** */ class CreateThreatIntelSetRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API CreateThreatIntelSetRequest(); // 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 "CreateThreatIntelSet"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create a threatIntelSet for.

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

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A user-friendly ThreatIntelSet name displayed in all findings that are * generated by activity that involves IP addresses included in this * ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The format of the file that contains the ThreatIntelSet.

*/ inline const ThreatIntelSetFormat& GetFormat() const{ return m_format; } /** *

The format of the file that contains the ThreatIntelSet.

*/ inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } /** *

The format of the file that contains the ThreatIntelSet.

*/ inline void SetFormat(const ThreatIntelSetFormat& value) { m_formatHasBeenSet = true; m_format = value; } /** *

The format of the file that contains the ThreatIntelSet.

*/ inline void SetFormat(ThreatIntelSetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } /** *

The format of the file that contains the ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithFormat(const ThreatIntelSetFormat& value) { SetFormat(value); return *this;} /** *

The format of the file that contains the ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithFormat(ThreatIntelSetFormat&& value) { SetFormat(std::move(value)); return *this;} /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The URI of the file that contains the ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

A Boolean value that indicates whether GuardDuty is to start using the * uploaded ThreatIntelSet.

*/ inline bool GetActivate() const{ return m_activate; } /** *

A Boolean value that indicates whether GuardDuty is to start using the * uploaded ThreatIntelSet.

*/ inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; } /** *

A Boolean value that indicates whether GuardDuty is to start using the * uploaded ThreatIntelSet.

*/ inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; } /** *

A Boolean value that indicates whether GuardDuty is to start using the * uploaded ThreatIntelSet.

*/ inline CreateThreatIntelSetRequest& WithActivate(bool value) { SetActivate(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 CreateThreatIntelSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The idempotency token for the create request.

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

The idempotency token for the create request.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

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

The tags to be added to a new threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& 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 threat list resource.

*/ inline CreateThreatIntelSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ThreatIntelSetFormat m_format; bool m_formatHasBeenSet = false; Aws::String m_location; bool m_locationHasBeenSet = false; bool m_activate; bool m_activateHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws