AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ThreatActorIp.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/security-ir/SecurityIR_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityIR {
20namespace Model {
21
28 public:
29 AWS_SECURITYIR_API ThreatActorIp() = default;
30 AWS_SECURITYIR_API ThreatActorIp(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYIR_API ThreatActorIp& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
39 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
40 template <typename IpAddressT = Aws::String>
41 void SetIpAddress(IpAddressT&& value) {
42 m_ipAddressHasBeenSet = true;
43 m_ipAddress = std::forward<IpAddressT>(value);
44 }
45 template <typename IpAddressT = Aws::String>
46 ThreatActorIp& WithIpAddress(IpAddressT&& value) {
47 SetIpAddress(std::forward<IpAddressT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
57 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
58 template <typename UserAgentT = Aws::String>
59 void SetUserAgent(UserAgentT&& value) {
60 m_userAgentHasBeenSet = true;
61 m_userAgent = std::forward<UserAgentT>(value);
62 }
63 template <typename UserAgentT = Aws::String>
64 ThreatActorIp& WithUserAgent(UserAgentT&& value) {
65 SetUserAgent(std::forward<UserAgentT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_ipAddress;
71
72 Aws::String m_userAgent;
73 bool m_ipAddressHasBeenSet = false;
74 bool m_userAgentHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityIR
79} // namespace Aws
AWS_SECURITYIR_API ThreatActorIp & operator=(Aws::Utils::Json::JsonView jsonValue)
ThreatActorIp & WithIpAddress(IpAddressT &&value)
const Aws::String & GetIpAddress() const
void SetUserAgent(UserAgentT &&value)
AWS_SECURITYIR_API ThreatActorIp()=default
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYIR_API ThreatActorIp(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserAgent() const
void SetIpAddress(IpAddressT &&value)
ThreatActorIp & WithUserAgent(UserAgentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue