1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/securityhub/SecurityHub_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Provides information about an internet provider.</p><p><h3>See Also:</h3>
28    * <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/IpOrganizationDetails">AWS
30    * API Reference</a></p>
31    */
32   class AWS_SECURITYHUB_API IpOrganizationDetails
33   {
34   public:
35     IpOrganizationDetails();
36     IpOrganizationDetails(Aws::Utils::Json::JsonView jsonValue);
37     IpOrganizationDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The Autonomous System Number (ASN) of the internet provider</p>
43      */
GetAsn()44     inline int GetAsn() const{ return m_asn; }
45 
46     /**
47      * <p>The Autonomous System Number (ASN) of the internet provider</p>
48      */
AsnHasBeenSet()49     inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
50 
51     /**
52      * <p>The Autonomous System Number (ASN) of the internet provider</p>
53      */
SetAsn(int value)54     inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
55 
56     /**
57      * <p>The Autonomous System Number (ASN) of the internet provider</p>
58      */
WithAsn(int value)59     inline IpOrganizationDetails& WithAsn(int value) { SetAsn(value); return *this;}
60 
61 
62     /**
63      * <p>The name of the organization that registered the ASN.</p>
64      */
GetAsnOrg()65     inline const Aws::String& GetAsnOrg() const{ return m_asnOrg; }
66 
67     /**
68      * <p>The name of the organization that registered the ASN.</p>
69      */
AsnOrgHasBeenSet()70     inline bool AsnOrgHasBeenSet() const { return m_asnOrgHasBeenSet; }
71 
72     /**
73      * <p>The name of the organization that registered the ASN.</p>
74      */
SetAsnOrg(const Aws::String & value)75     inline void SetAsnOrg(const Aws::String& value) { m_asnOrgHasBeenSet = true; m_asnOrg = value; }
76 
77     /**
78      * <p>The name of the organization that registered the ASN.</p>
79      */
SetAsnOrg(Aws::String && value)80     inline void SetAsnOrg(Aws::String&& value) { m_asnOrgHasBeenSet = true; m_asnOrg = std::move(value); }
81 
82     /**
83      * <p>The name of the organization that registered the ASN.</p>
84      */
SetAsnOrg(const char * value)85     inline void SetAsnOrg(const char* value) { m_asnOrgHasBeenSet = true; m_asnOrg.assign(value); }
86 
87     /**
88      * <p>The name of the organization that registered the ASN.</p>
89      */
WithAsnOrg(const Aws::String & value)90     inline IpOrganizationDetails& WithAsnOrg(const Aws::String& value) { SetAsnOrg(value); return *this;}
91 
92     /**
93      * <p>The name of the organization that registered the ASN.</p>
94      */
WithAsnOrg(Aws::String && value)95     inline IpOrganizationDetails& WithAsnOrg(Aws::String&& value) { SetAsnOrg(std::move(value)); return *this;}
96 
97     /**
98      * <p>The name of the organization that registered the ASN.</p>
99      */
WithAsnOrg(const char * value)100     inline IpOrganizationDetails& WithAsnOrg(const char* value) { SetAsnOrg(value); return *this;}
101 
102 
103     /**
104      * <p>The ISP information for the internet provider.</p>
105      */
GetIsp()106     inline const Aws::String& GetIsp() const{ return m_isp; }
107 
108     /**
109      * <p>The ISP information for the internet provider.</p>
110      */
IspHasBeenSet()111     inline bool IspHasBeenSet() const { return m_ispHasBeenSet; }
112 
113     /**
114      * <p>The ISP information for the internet provider.</p>
115      */
SetIsp(const Aws::String & value)116     inline void SetIsp(const Aws::String& value) { m_ispHasBeenSet = true; m_isp = value; }
117 
118     /**
119      * <p>The ISP information for the internet provider.</p>
120      */
SetIsp(Aws::String && value)121     inline void SetIsp(Aws::String&& value) { m_ispHasBeenSet = true; m_isp = std::move(value); }
122 
123     /**
124      * <p>The ISP information for the internet provider.</p>
125      */
SetIsp(const char * value)126     inline void SetIsp(const char* value) { m_ispHasBeenSet = true; m_isp.assign(value); }
127 
128     /**
129      * <p>The ISP information for the internet provider.</p>
130      */
WithIsp(const Aws::String & value)131     inline IpOrganizationDetails& WithIsp(const Aws::String& value) { SetIsp(value); return *this;}
132 
133     /**
134      * <p>The ISP information for the internet provider.</p>
135      */
WithIsp(Aws::String && value)136     inline IpOrganizationDetails& WithIsp(Aws::String&& value) { SetIsp(std::move(value)); return *this;}
137 
138     /**
139      * <p>The ISP information for the internet provider.</p>
140      */
WithIsp(const char * value)141     inline IpOrganizationDetails& WithIsp(const char* value) { SetIsp(value); return *this;}
142 
143 
144     /**
145      * <p>The name of the internet provider.</p>
146      */
GetOrg()147     inline const Aws::String& GetOrg() const{ return m_org; }
148 
149     /**
150      * <p>The name of the internet provider.</p>
151      */
OrgHasBeenSet()152     inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; }
153 
154     /**
155      * <p>The name of the internet provider.</p>
156      */
SetOrg(const Aws::String & value)157     inline void SetOrg(const Aws::String& value) { m_orgHasBeenSet = true; m_org = value; }
158 
159     /**
160      * <p>The name of the internet provider.</p>
161      */
SetOrg(Aws::String && value)162     inline void SetOrg(Aws::String&& value) { m_orgHasBeenSet = true; m_org = std::move(value); }
163 
164     /**
165      * <p>The name of the internet provider.</p>
166      */
SetOrg(const char * value)167     inline void SetOrg(const char* value) { m_orgHasBeenSet = true; m_org.assign(value); }
168 
169     /**
170      * <p>The name of the internet provider.</p>
171      */
WithOrg(const Aws::String & value)172     inline IpOrganizationDetails& WithOrg(const Aws::String& value) { SetOrg(value); return *this;}
173 
174     /**
175      * <p>The name of the internet provider.</p>
176      */
WithOrg(Aws::String && value)177     inline IpOrganizationDetails& WithOrg(Aws::String&& value) { SetOrg(std::move(value)); return *this;}
178 
179     /**
180      * <p>The name of the internet provider.</p>
181      */
WithOrg(const char * value)182     inline IpOrganizationDetails& WithOrg(const char* value) { SetOrg(value); return *this;}
183 
184   private:
185 
186     int m_asn;
187     bool m_asnHasBeenSet;
188 
189     Aws::String m_asnOrg;
190     bool m_asnOrgHasBeenSet;
191 
192     Aws::String m_isp;
193     bool m_ispHasBeenSet;
194 
195     Aws::String m_org;
196     bool m_orgHasBeenSet;
197   };
198 
199 } // namespace Model
200 } // namespace SecurityHub
201 } // namespace Aws
202