AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
IpOwner.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
28class IpOwner {
29 public:
30 AWS_MACIE2_API IpOwner() = default;
31 AWS_MACIE2_API IpOwner(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MACIE2_API IpOwner& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetAsn() const { return m_asn; }
41 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
42 template <typename AsnT = Aws::String>
43 void SetAsn(AsnT&& value) {
44 m_asnHasBeenSet = true;
45 m_asn = std::forward<AsnT>(value);
46 }
47 template <typename AsnT = Aws::String>
48 IpOwner& WithAsn(AsnT&& value) {
49 SetAsn(std::forward<AsnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetAsnOrg() const { return m_asnOrg; }
60 inline bool AsnOrgHasBeenSet() const { return m_asnOrgHasBeenSet; }
61 template <typename AsnOrgT = Aws::String>
62 void SetAsnOrg(AsnOrgT&& value) {
63 m_asnOrgHasBeenSet = true;
64 m_asnOrg = std::forward<AsnOrgT>(value);
65 }
66 template <typename AsnOrgT = Aws::String>
67 IpOwner& WithAsnOrg(AsnOrgT&& value) {
68 SetAsnOrg(std::forward<AsnOrgT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetIsp() const { return m_isp; }
79 inline bool IspHasBeenSet() const { return m_ispHasBeenSet; }
80 template <typename IspT = Aws::String>
81 void SetIsp(IspT&& value) {
82 m_ispHasBeenSet = true;
83 m_isp = std::forward<IspT>(value);
84 }
85 template <typename IspT = Aws::String>
86 IpOwner& WithIsp(IspT&& value) {
87 SetIsp(std::forward<IspT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetOrg() const { return m_org; }
97 inline bool OrgHasBeenSet() const { return m_orgHasBeenSet; }
98 template <typename OrgT = Aws::String>
99 void SetOrg(OrgT&& value) {
100 m_orgHasBeenSet = true;
101 m_org = std::forward<OrgT>(value);
102 }
103 template <typename OrgT = Aws::String>
104 IpOwner& WithOrg(OrgT&& value) {
105 SetOrg(std::forward<OrgT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_asn;
111
112 Aws::String m_asnOrg;
113
114 Aws::String m_isp;
115
116 Aws::String m_org;
117 bool m_asnHasBeenSet = false;
118 bool m_asnOrgHasBeenSet = false;
119 bool m_ispHasBeenSet = false;
120 bool m_orgHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Macie2
125} // namespace Aws
AWS_MACIE2_API IpOwner(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
IpOwner & WithAsnOrg(AsnOrgT &&value)
Definition IpOwner.h:67
AWS_MACIE2_API IpOwner & operator=(Aws::Utils::Json::JsonView jsonValue)
IpOwner & WithAsn(AsnT &&value)
Definition IpOwner.h:48
bool AsnOrgHasBeenSet() const
Definition IpOwner.h:60
IpOwner & WithIsp(IspT &&value)
Definition IpOwner.h:86
IpOwner & WithOrg(OrgT &&value)
Definition IpOwner.h:104
const Aws::String & GetAsn() const
Definition IpOwner.h:40
bool IspHasBeenSet() const
Definition IpOwner.h:79
void SetOrg(OrgT &&value)
Definition IpOwner.h:99
const Aws::String & GetIsp() const
Definition IpOwner.h:78
void SetAsn(AsnT &&value)
Definition IpOwner.h:43
void SetIsp(IspT &&value)
Definition IpOwner.h:81
const Aws::String & GetOrg() const
Definition IpOwner.h:96
void SetAsnOrg(AsnOrgT &&value)
Definition IpOwner.h:62
AWS_MACIE2_API IpOwner()=default
const Aws::String & GetAsnOrg() const
Definition IpOwner.h:59
bool AsnHasBeenSet() const
Definition IpOwner.h:41
bool OrgHasBeenSet() const
Definition IpOwner.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue