/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Provides information about the registered owner of an IP * address.

See Also:

AWS API * Reference

*/ class AWS_MACIE2_API IpOwner { public: IpOwner(); IpOwner(Aws::Utils::Json::JsonView jsonValue); IpOwner& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline const Aws::String& GetAsn() const{ return m_asn; } /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; } /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline void SetAsn(const Aws::String& value) { m_asnHasBeenSet = true; m_asn = value; } /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline void SetAsn(Aws::String&& value) { m_asnHasBeenSet = true; m_asn = std::move(value); } /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline void SetAsn(const char* value) { m_asnHasBeenSet = true; m_asn.assign(value); } /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline IpOwner& WithAsn(const Aws::String& value) { SetAsn(value); return *this;} /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline IpOwner& WithAsn(Aws::String&& value) { SetAsn(std::move(value)); return *this;} /** *

The autonomous system number (ASN) for the autonomous system that included * the IP address.

*/ inline IpOwner& WithAsn(const char* value) { SetAsn(value); return *this;} /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline const Aws::String& GetAsnOrg() const{ return m_asnOrg; } /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline bool AsnOrgHasBeenSet() const { return m_asnOrgHasBeenSet; } /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline void SetAsnOrg(const Aws::String& value) { m_asnOrgHasBeenSet = true; m_asnOrg = value; } /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline void SetAsnOrg(Aws::String&& value) { m_asnOrgHasBeenSet = true; m_asnOrg = std::move(value); } /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline void SetAsnOrg(const char* value) { m_asnOrgHasBeenSet = true; m_asnOrg.assign(value); } /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline IpOwner& WithAsnOrg(const Aws::String& value) { SetAsnOrg(value); return *this;} /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline IpOwner& WithAsnOrg(Aws::String&& value) { SetAsnOrg(std::move(value)); return *this;} /** *

The organization identifier that's associated with the autonomous system * number (ASN) for the autonomous system that included the IP address.

*/ inline IpOwner& WithAsnOrg(const char* value) { SetAsnOrg(value); return *this;} /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline const Aws::String& GetIsp() const{ return m_isp; } /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline bool IspHasBeenSet() const { return m_ispHasBeenSet; } /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline void SetIsp(const Aws::String& value) { m_ispHasBeenSet = true; m_isp = value; } /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline void SetIsp(Aws::String&& value) { m_ispHasBeenSet = true; m_isp = std::move(value); } /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline void SetIsp(const char* value) { m_ispHasBeenSet = true; m_isp.assign(value); } /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline IpOwner& WithIsp(const Aws::String& value) { SetIsp(value); return *this;} /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline IpOwner& WithIsp(Aws::String&& value) { SetIsp(std::move(value)); return *this;} /** *

The name of the internet service provider (ISP) that owned the IP * address.

*/ inline IpOwner& WithIsp(const char* value) { SetIsp(value); return *this;} /** *

The name of the organization that owned the IP address.

*/ inline const Aws::String& GetOrg() const{ return m_org; } /** *

The name of the organization that owned the IP address.

*/ inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; } /** *

The name of the organization that owned the IP address.

*/ inline void SetOrg(const Aws::String& value) { m_orgHasBeenSet = true; m_org = value; } /** *

The name of the organization that owned the IP address.

*/ inline void SetOrg(Aws::String&& value) { m_orgHasBeenSet = true; m_org = std::move(value); } /** *

The name of the organization that owned the IP address.

*/ inline void SetOrg(const char* value) { m_orgHasBeenSet = true; m_org.assign(value); } /** *

The name of the organization that owned the IP address.

*/ inline IpOwner& WithOrg(const Aws::String& value) { SetOrg(value); return *this;} /** *

The name of the organization that owned the IP address.

*/ inline IpOwner& WithOrg(Aws::String&& value) { SetOrg(std::move(value)); return *this;} /** *

The name of the organization that owned the IP address.

*/ inline IpOwner& WithOrg(const char* value) { SetOrg(value); return *this;} private: Aws::String m_asn; bool m_asnHasBeenSet; Aws::String m_asnOrg; bool m_asnOrgHasBeenSet; Aws::String m_isp; bool m_ispHasBeenSet; Aws::String m_org; bool m_orgHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws