/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetIPSetResult { public: AWS_GUARDDUTY_API GetIPSetResult(); AWS_GUARDDUTY_API GetIPSetResult(const Aws::AmazonWebServiceResult& result); AWS_GUARDDUTY_API GetIPSetResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

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

The user-friendly name for the IPSet.

*/ inline GetIPSetResult& 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 void SetFormat(const IpSetFormat& value) { m_format = value; } /** *

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

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

The format of the file that contains the IPSet.

*/ inline GetIPSetResult& 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 void SetLocation(const Aws::String& value) { m_location = value; } /** *

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The URI of the file that contains the IPSet.

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

The status of IPSet file that was uploaded.

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

The status of IPSet file that was uploaded.

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

The status of IPSet file that was uploaded.

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

The status of IPSet file that was uploaded.

*/ inline GetIPSetResult& WithStatus(const IpSetStatus& value) { SetStatus(value); return *this;} /** *

The status of IPSet file that was uploaded.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

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

The tags of the IPSet resource.

*/ inline GetIPSetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 GetIPSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetIPSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetIPSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; IpSetFormat m_format; Aws::String m_location; IpSetStatus m_status; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace GuardDuty } // namespace Aws