AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LocalIpDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API LocalIpDetails() = default;
31 AWS_GUARDDUTY_API LocalIpDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
40 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
41 template <typename IpAddressV4T = Aws::String>
42 void SetIpAddressV4(IpAddressV4T&& value) {
43 m_ipAddressV4HasBeenSet = true;
44 m_ipAddressV4 = std::forward<IpAddressV4T>(value);
45 }
46 template <typename IpAddressV4T = Aws::String>
47 LocalIpDetails& WithIpAddressV4(IpAddressV4T&& value) {
48 SetIpAddressV4(std::forward<IpAddressV4T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIpAddressV6() const { return m_ipAddressV6; }
58 inline bool IpAddressV6HasBeenSet() const { return m_ipAddressV6HasBeenSet; }
59 template <typename IpAddressV6T = Aws::String>
60 void SetIpAddressV6(IpAddressV6T&& value) {
61 m_ipAddressV6HasBeenSet = true;
62 m_ipAddressV6 = std::forward<IpAddressV6T>(value);
63 }
64 template <typename IpAddressV6T = Aws::String>
65 LocalIpDetails& WithIpAddressV6(IpAddressV6T&& value) {
66 SetIpAddressV6(std::forward<IpAddressV6T>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_ipAddressV4;
72
73 Aws::String m_ipAddressV6;
74 bool m_ipAddressV4HasBeenSet = false;
75 bool m_ipAddressV6HasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace GuardDuty
80} // namespace Aws
const Aws::String & GetIpAddressV4() const
const Aws::String & GetIpAddressV6() const
LocalIpDetails & WithIpAddressV4(IpAddressV4T &&value)
AWS_GUARDDUTY_API LocalIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API LocalIpDetails(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddressV6(IpAddressV6T &&value)
AWS_GUARDDUTY_API LocalIpDetails()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIpAddressV4(IpAddressV4T &&value)
LocalIpDetails & WithIpAddressV6(IpAddressV6T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue