/** * 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 CreateIPSetRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API CreateIPSetRequest(); // 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 "CreateIPSet"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector of the GuardDuty account that you want to * create an IPSet 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 an IPSet for.

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

The unique ID of the detector of the GuardDuty account that you want to * create an IPSet 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 an IPSet 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 an IPSet 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 an IPSet for.

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

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

*/ inline CreateIPSetRequest& 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 an IPSet for.

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The user-friendly name to identify the IPSet.

Allowed characters are * alphanumeric, whitespace, dash (-), and underscores (_).

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

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

*/ inline CreateIPSetRequest& WithFormat(const IpSetFormat& value) { SetFormat(value); return *this;} /** *

The format of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

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

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

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

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

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

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

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

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

The idempotency token for the create request.

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

The idempotency token for the create request.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

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

The tags to be added to a new IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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 IP set resource.

*/ inline CreateIPSetRequest& 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; IpSetFormat 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