/** * 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 SecurityHub { namespace Model { /** *

Provides information about an internet provider.

See Also:

* AWS * API Reference

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

The Autonomous System Number (ASN) of the internet provider

*/ inline int GetAsn() const{ return m_asn; } /** *

The Autonomous System Number (ASN) of the internet provider

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

The Autonomous System Number (ASN) of the internet provider

*/ inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; } /** *

The Autonomous System Number (ASN) of the internet provider

*/ inline IpOrganizationDetails& WithAsn(int value) { SetAsn(value); return *this;} /** *

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The name of the organization that registered the ASN.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The ISP information for the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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

The name of the internet provider.

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