AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
FlaggedIpAddressDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9#include <aws/detective/model/Reason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Detective {
21namespace Model {
22
31 public:
32 AWS_DETECTIVE_API FlaggedIpAddressDetail() = default;
35 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
42 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
43 template <typename IpAddressT = Aws::String>
44 void SetIpAddress(IpAddressT&& value) {
45 m_ipAddressHasBeenSet = true;
46 m_ipAddress = std::forward<IpAddressT>(value);
47 }
48 template <typename IpAddressT = Aws::String>
50 SetIpAddress(std::forward<IpAddressT>(value));
51 return *this;
52 }
54
56
59 inline Reason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(Reason value) {
62 m_reasonHasBeenSet = true;
63 m_reason = value;
64 }
66 SetReason(value);
67 return *this;
68 }
70 private:
71 Aws::String m_ipAddress;
72 bool m_ipAddressHasBeenSet = false;
73
74 Reason m_reason{Reason::NOT_SET};
75 bool m_reasonHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Detective
80} // namespace Aws
AWS_DETECTIVE_API FlaggedIpAddressDetail()=default
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DETECTIVE_API FlaggedIpAddressDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
FlaggedIpAddressDetail & WithReason(Reason value)
FlaggedIpAddressDetail & WithIpAddress(IpAddressT &&value)
AWS_DETECTIVE_API FlaggedIpAddressDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue