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/macie2/Macie2_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 Macie2
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Provides information about the registered owner of an IP
28    * address.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/IpOwner">AWS API
30    * Reference</a></p>
31    */
32   class AWS_MACIE2_API IpOwner
33   {
34   public:
35     IpOwner();
36     IpOwner(Aws::Utils::Json::JsonView jsonValue);
37     IpOwner& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The autonomous system number (ASN) for the autonomous system that included
43      * the IP address.</p>
44      */
GetAsn()45     inline const Aws::String& GetAsn() const{ return m_asn; }
46 
47     /**
48      * <p>The autonomous system number (ASN) for the autonomous system that included
49      * the IP address.</p>
50      */
AsnHasBeenSet()51     inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
52 
53     /**
54      * <p>The autonomous system number (ASN) for the autonomous system that included
55      * the IP address.</p>
56      */
SetAsn(const Aws::String & value)57     inline void SetAsn(const Aws::String& value) { m_asnHasBeenSet = true; m_asn = value; }
58 
59     /**
60      * <p>The autonomous system number (ASN) for the autonomous system that included
61      * the IP address.</p>
62      */
SetAsn(Aws::String && value)63     inline void SetAsn(Aws::String&& value) { m_asnHasBeenSet = true; m_asn = std::move(value); }
64 
65     /**
66      * <p>The autonomous system number (ASN) for the autonomous system that included
67      * the IP address.</p>
68      */
SetAsn(const char * value)69     inline void SetAsn(const char* value) { m_asnHasBeenSet = true; m_asn.assign(value); }
70 
71     /**
72      * <p>The autonomous system number (ASN) for the autonomous system that included
73      * the IP address.</p>
74      */
WithAsn(const Aws::String & value)75     inline IpOwner& WithAsn(const Aws::String& value) { SetAsn(value); return *this;}
76 
77     /**
78      * <p>The autonomous system number (ASN) for the autonomous system that included
79      * the IP address.</p>
80      */
WithAsn(Aws::String && value)81     inline IpOwner& WithAsn(Aws::String&& value) { SetAsn(std::move(value)); return *this;}
82 
83     /**
84      * <p>The autonomous system number (ASN) for the autonomous system that included
85      * the IP address.</p>
86      */
WithAsn(const char * value)87     inline IpOwner& WithAsn(const char* value) { SetAsn(value); return *this;}
88 
89 
90     /**
91      * <p>The organization identifier that's associated with the autonomous system
92      * number (ASN) for the autonomous system that included the IP address.</p>
93      */
GetAsnOrg()94     inline const Aws::String& GetAsnOrg() const{ return m_asnOrg; }
95 
96     /**
97      * <p>The organization identifier that's associated with the autonomous system
98      * number (ASN) for the autonomous system that included the IP address.</p>
99      */
AsnOrgHasBeenSet()100     inline bool AsnOrgHasBeenSet() const { return m_asnOrgHasBeenSet; }
101 
102     /**
103      * <p>The organization identifier that's associated with the autonomous system
104      * number (ASN) for the autonomous system that included the IP address.</p>
105      */
SetAsnOrg(const Aws::String & value)106     inline void SetAsnOrg(const Aws::String& value) { m_asnOrgHasBeenSet = true; m_asnOrg = value; }
107 
108     /**
109      * <p>The organization identifier that's associated with the autonomous system
110      * number (ASN) for the autonomous system that included the IP address.</p>
111      */
SetAsnOrg(Aws::String && value)112     inline void SetAsnOrg(Aws::String&& value) { m_asnOrgHasBeenSet = true; m_asnOrg = std::move(value); }
113 
114     /**
115      * <p>The organization identifier that's associated with the autonomous system
116      * number (ASN) for the autonomous system that included the IP address.</p>
117      */
SetAsnOrg(const char * value)118     inline void SetAsnOrg(const char* value) { m_asnOrgHasBeenSet = true; m_asnOrg.assign(value); }
119 
120     /**
121      * <p>The organization identifier that's associated with the autonomous system
122      * number (ASN) for the autonomous system that included the IP address.</p>
123      */
WithAsnOrg(const Aws::String & value)124     inline IpOwner& WithAsnOrg(const Aws::String& value) { SetAsnOrg(value); return *this;}
125 
126     /**
127      * <p>The organization identifier that's associated with the autonomous system
128      * number (ASN) for the autonomous system that included the IP address.</p>
129      */
WithAsnOrg(Aws::String && value)130     inline IpOwner& WithAsnOrg(Aws::String&& value) { SetAsnOrg(std::move(value)); return *this;}
131 
132     /**
133      * <p>The organization identifier that's associated with the autonomous system
134      * number (ASN) for the autonomous system that included the IP address.</p>
135      */
WithAsnOrg(const char * value)136     inline IpOwner& WithAsnOrg(const char* value) { SetAsnOrg(value); return *this;}
137 
138 
139     /**
140      * <p>The name of the internet service provider (ISP) that owned the IP
141      * address.</p>
142      */
GetIsp()143     inline const Aws::String& GetIsp() const{ return m_isp; }
144 
145     /**
146      * <p>The name of the internet service provider (ISP) that owned the IP
147      * address.</p>
148      */
IspHasBeenSet()149     inline bool IspHasBeenSet() const { return m_ispHasBeenSet; }
150 
151     /**
152      * <p>The name of the internet service provider (ISP) that owned the IP
153      * address.</p>
154      */
SetIsp(const Aws::String & value)155     inline void SetIsp(const Aws::String& value) { m_ispHasBeenSet = true; m_isp = value; }
156 
157     /**
158      * <p>The name of the internet service provider (ISP) that owned the IP
159      * address.</p>
160      */
SetIsp(Aws::String && value)161     inline void SetIsp(Aws::String&& value) { m_ispHasBeenSet = true; m_isp = std::move(value); }
162 
163     /**
164      * <p>The name of the internet service provider (ISP) that owned the IP
165      * address.</p>
166      */
SetIsp(const char * value)167     inline void SetIsp(const char* value) { m_ispHasBeenSet = true; m_isp.assign(value); }
168 
169     /**
170      * <p>The name of the internet service provider (ISP) that owned the IP
171      * address.</p>
172      */
WithIsp(const Aws::String & value)173     inline IpOwner& WithIsp(const Aws::String& value) { SetIsp(value); return *this;}
174 
175     /**
176      * <p>The name of the internet service provider (ISP) that owned the IP
177      * address.</p>
178      */
WithIsp(Aws::String && value)179     inline IpOwner& WithIsp(Aws::String&& value) { SetIsp(std::move(value)); return *this;}
180 
181     /**
182      * <p>The name of the internet service provider (ISP) that owned the IP
183      * address.</p>
184      */
WithIsp(const char * value)185     inline IpOwner& WithIsp(const char* value) { SetIsp(value); return *this;}
186 
187 
188     /**
189      * <p>The name of the organization that owned the IP address.</p>
190      */
GetOrg()191     inline const Aws::String& GetOrg() const{ return m_org; }
192 
193     /**
194      * <p>The name of the organization that owned the IP address.</p>
195      */
OrgHasBeenSet()196     inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; }
197 
198     /**
199      * <p>The name of the organization that owned the IP address.</p>
200      */
SetOrg(const Aws::String & value)201     inline void SetOrg(const Aws::String& value) { m_orgHasBeenSet = true; m_org = value; }
202 
203     /**
204      * <p>The name of the organization that owned the IP address.</p>
205      */
SetOrg(Aws::String && value)206     inline void SetOrg(Aws::String&& value) { m_orgHasBeenSet = true; m_org = std::move(value); }
207 
208     /**
209      * <p>The name of the organization that owned the IP address.</p>
210      */
SetOrg(const char * value)211     inline void SetOrg(const char* value) { m_orgHasBeenSet = true; m_org.assign(value); }
212 
213     /**
214      * <p>The name of the organization that owned the IP address.</p>
215      */
WithOrg(const Aws::String & value)216     inline IpOwner& WithOrg(const Aws::String& value) { SetOrg(value); return *this;}
217 
218     /**
219      * <p>The name of the organization that owned the IP address.</p>
220      */
WithOrg(Aws::String && value)221     inline IpOwner& WithOrg(Aws::String&& value) { SetOrg(std::move(value)); return *this;}
222 
223     /**
224      * <p>The name of the organization that owned the IP address.</p>
225      */
WithOrg(const char * value)226     inline IpOwner& WithOrg(const char* value) { SetOrg(value); return *this;}
227 
228   private:
229 
230     Aws::String m_asn;
231     bool m_asnHasBeenSet;
232 
233     Aws::String m_asnOrg;
234     bool m_asnOrgHasBeenSet;
235 
236     Aws::String m_isp;
237     bool m_ispHasBeenSet;
238 
239     Aws::String m_org;
240     bool m_orgHasBeenSet;
241   };
242 
243 } // namespace Model
244 } // namespace Macie2
245 } // namespace Aws
246