AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
50 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
51 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
52 inline FlaggedIpAddressDetail& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
53 inline FlaggedIpAddressDetail& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
54 inline FlaggedIpAddressDetail& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
56
58
61 inline const Reason& GetReason() const{ return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(const Reason& value) { m_reasonHasBeenSet = true; m_reason = value; }
64 inline void SetReason(Reason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
65 inline FlaggedIpAddressDetail& WithReason(const Reason& value) { SetReason(value); return *this;}
66 inline FlaggedIpAddressDetail& WithReason(Reason&& value) { SetReason(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_ipAddress;
71 bool m_ipAddressHasBeenSet = false;
72
73 Reason m_reason;
74 bool m_reasonHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Detective
79} // namespace Aws
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
FlaggedIpAddressDetail & WithIpAddress(const Aws::String &value)
AWS_DETECTIVE_API FlaggedIpAddressDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
FlaggedIpAddressDetail & WithReason(Reason &&value)
FlaggedIpAddressDetail & WithIpAddress(Aws::String &&value)
FlaggedIpAddressDetail & WithIpAddress(const char *value)
AWS_DETECTIVE_API FlaggedIpAddressDetail(Aws::Utils::Json::JsonView jsonValue)
FlaggedIpAddressDetail & WithReason(const Reason &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue