AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpOwner.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Macie2
22{
23namespace Model
24{
25
32 class IpOwner
33 {
34 public:
35 AWS_MACIE2_API IpOwner();
36 AWS_MACIE2_API IpOwner(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API IpOwner& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAsn() const{ return m_asn; }
47 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
48 inline void SetAsn(const Aws::String& value) { m_asnHasBeenSet = true; m_asn = value; }
49 inline void SetAsn(Aws::String&& value) { m_asnHasBeenSet = true; m_asn = std::move(value); }
50 inline void SetAsn(const char* value) { m_asnHasBeenSet = true; m_asn.assign(value); }
51 inline IpOwner& WithAsn(const Aws::String& value) { SetAsn(value); return *this;}
52 inline IpOwner& WithAsn(Aws::String&& value) { SetAsn(std::move(value)); return *this;}
53 inline IpOwner& WithAsn(const char* value) { SetAsn(value); return *this;}
55
57
61 inline const Aws::String& GetAsnOrg() const{ return m_asnOrg; }
62 inline bool AsnOrgHasBeenSet() const { return m_asnOrgHasBeenSet; }
63 inline void SetAsnOrg(const Aws::String& value) { m_asnOrgHasBeenSet = true; m_asnOrg = value; }
64 inline void SetAsnOrg(Aws::String&& value) { m_asnOrgHasBeenSet = true; m_asnOrg = std::move(value); }
65 inline void SetAsnOrg(const char* value) { m_asnOrgHasBeenSet = true; m_asnOrg.assign(value); }
66 inline IpOwner& WithAsnOrg(const Aws::String& value) { SetAsnOrg(value); return *this;}
67 inline IpOwner& WithAsnOrg(Aws::String&& value) { SetAsnOrg(std::move(value)); return *this;}
68 inline IpOwner& WithAsnOrg(const char* value) { SetAsnOrg(value); return *this;}
70
72
76 inline const Aws::String& GetIsp() const{ return m_isp; }
77 inline bool IspHasBeenSet() const { return m_ispHasBeenSet; }
78 inline void SetIsp(const Aws::String& value) { m_ispHasBeenSet = true; m_isp = value; }
79 inline void SetIsp(Aws::String&& value) { m_ispHasBeenSet = true; m_isp = std::move(value); }
80 inline void SetIsp(const char* value) { m_ispHasBeenSet = true; m_isp.assign(value); }
81 inline IpOwner& WithIsp(const Aws::String& value) { SetIsp(value); return *this;}
82 inline IpOwner& WithIsp(Aws::String&& value) { SetIsp(std::move(value)); return *this;}
83 inline IpOwner& WithIsp(const char* value) { SetIsp(value); return *this;}
85
87
90 inline const Aws::String& GetOrg() const{ return m_org; }
91 inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; }
92 inline void SetOrg(const Aws::String& value) { m_orgHasBeenSet = true; m_org = value; }
93 inline void SetOrg(Aws::String&& value) { m_orgHasBeenSet = true; m_org = std::move(value); }
94 inline void SetOrg(const char* value) { m_orgHasBeenSet = true; m_org.assign(value); }
95 inline IpOwner& WithOrg(const Aws::String& value) { SetOrg(value); return *this;}
96 inline IpOwner& WithOrg(Aws::String&& value) { SetOrg(std::move(value)); return *this;}
97 inline IpOwner& WithOrg(const char* value) { SetOrg(value); return *this;}
99 private:
100
101 Aws::String m_asn;
102 bool m_asnHasBeenSet = false;
103
104 Aws::String m_asnOrg;
105 bool m_asnOrgHasBeenSet = false;
106
107 Aws::String m_isp;
108 bool m_ispHasBeenSet = false;
109
110 Aws::String m_org;
111 bool m_orgHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Macie2
116} // namespace Aws
IpOwner & WithAsn(Aws::String &&value)
Definition IpOwner.h:52
AWS_MACIE2_API IpOwner(Aws::Utils::Json::JsonView jsonValue)
IpOwner & WithIsp(const Aws::String &value)
Definition IpOwner.h:81
IpOwner & WithAsnOrg(Aws::String &&value)
Definition IpOwner.h:67
void SetAsn(const Aws::String &value)
Definition IpOwner.h:48
void SetIsp(const Aws::String &value)
Definition IpOwner.h:78
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIsp(Aws::String &&value)
Definition IpOwner.h:79
AWS_MACIE2_API IpOwner & operator=(Aws::Utils::Json::JsonView jsonValue)
IpOwner & WithOrg(const char *value)
Definition IpOwner.h:97
IpOwner & WithIsp(const char *value)
Definition IpOwner.h:83
IpOwner & WithAsn(const Aws::String &value)
Definition IpOwner.h:51
bool AsnOrgHasBeenSet() const
Definition IpOwner.h:62
void SetAsnOrg(Aws::String &&value)
Definition IpOwner.h:64
void SetOrg(Aws::String &&value)
Definition IpOwner.h:93
IpOwner & WithAsnOrg(const Aws::String &value)
Definition IpOwner.h:66
void SetIsp(const char *value)
Definition IpOwner.h:80
void SetOrg(const char *value)
Definition IpOwner.h:94
void SetAsnOrg(const Aws::String &value)
Definition IpOwner.h:63
const Aws::String & GetAsn() const
Definition IpOwner.h:46
bool IspHasBeenSet() const
Definition IpOwner.h:77
const Aws::String & GetIsp() const
Definition IpOwner.h:76
IpOwner & WithOrg(Aws::String &&value)
Definition IpOwner.h:96
void SetOrg(const Aws::String &value)
Definition IpOwner.h:92
IpOwner & WithOrg(const Aws::String &value)
Definition IpOwner.h:95
const Aws::String & GetOrg() const
Definition IpOwner.h:90
IpOwner & WithIsp(Aws::String &&value)
Definition IpOwner.h:82
void SetAsn(const char *value)
Definition IpOwner.h:50
void SetAsnOrg(const char *value)
Definition IpOwner.h:65
void SetAsn(Aws::String &&value)
Definition IpOwner.h:49
const Aws::String & GetAsnOrg() const
Definition IpOwner.h:61
bool AsnHasBeenSet() const
Definition IpOwner.h:47
bool OrgHasBeenSet() const
Definition IpOwner.h:91
IpOwner & WithAsn(const char *value)
Definition IpOwner.h:53
AWS_MACIE2_API IpOwner()
IpOwner & WithAsnOrg(const char *value)
Definition IpOwner.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue