AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FlaggedIpAddressDetail.h
1
6#pragma once
7#include <aws/detective/Detective_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/detective/model/Reason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Detective
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DETECTIVE_API FlaggedIpAddressDetail() = default;
40 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
48 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
49 template<typename IpAddressT = Aws::String>
50 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
51 template<typename IpAddressT = Aws::String>
52 FlaggedIpAddressDetail& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
54
56
59 inline Reason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(Reason value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline FlaggedIpAddressDetail& WithReason(Reason value) { SetReason(value); return *this;}
64 private:
65
66 Aws::String m_ipAddress;
67 bool m_ipAddressHasBeenSet = false;
68
69 Reason m_reason{Reason::NOT_SET};
70 bool m_reasonHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Detective
75} // 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