AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImpossibleTravelDetail.h
1
6#pragma once
7#include <aws/detective/Detective_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Detective
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DETECTIVE_API ImpossibleTravelDetail() = default;
38 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetStartingIpAddress() const { return m_startingIpAddress; }
46 inline bool StartingIpAddressHasBeenSet() const { return m_startingIpAddressHasBeenSet; }
47 template<typename StartingIpAddressT = Aws::String>
48 void SetStartingIpAddress(StartingIpAddressT&& value) { m_startingIpAddressHasBeenSet = true; m_startingIpAddress = std::forward<StartingIpAddressT>(value); }
49 template<typename StartingIpAddressT = Aws::String>
50 ImpossibleTravelDetail& WithStartingIpAddress(StartingIpAddressT&& value) { SetStartingIpAddress(std::forward<StartingIpAddressT>(value)); return *this;}
52
54
57 inline const Aws::String& GetEndingIpAddress() const { return m_endingIpAddress; }
58 inline bool EndingIpAddressHasBeenSet() const { return m_endingIpAddressHasBeenSet; }
59 template<typename EndingIpAddressT = Aws::String>
60 void SetEndingIpAddress(EndingIpAddressT&& value) { m_endingIpAddressHasBeenSet = true; m_endingIpAddress = std::forward<EndingIpAddressT>(value); }
61 template<typename EndingIpAddressT = Aws::String>
62 ImpossibleTravelDetail& WithEndingIpAddress(EndingIpAddressT&& value) { SetEndingIpAddress(std::forward<EndingIpAddressT>(value)); return *this;}
64
66
69 inline const Aws::String& GetStartingLocation() const { return m_startingLocation; }
70 inline bool StartingLocationHasBeenSet() const { return m_startingLocationHasBeenSet; }
71 template<typename StartingLocationT = Aws::String>
72 void SetStartingLocation(StartingLocationT&& value) { m_startingLocationHasBeenSet = true; m_startingLocation = std::forward<StartingLocationT>(value); }
73 template<typename StartingLocationT = Aws::String>
74 ImpossibleTravelDetail& WithStartingLocation(StartingLocationT&& value) { SetStartingLocation(std::forward<StartingLocationT>(value)); return *this;}
76
78
81 inline const Aws::String& GetEndingLocation() const { return m_endingLocation; }
82 inline bool EndingLocationHasBeenSet() const { return m_endingLocationHasBeenSet; }
83 template<typename EndingLocationT = Aws::String>
84 void SetEndingLocation(EndingLocationT&& value) { m_endingLocationHasBeenSet = true; m_endingLocation = std::forward<EndingLocationT>(value); }
85 template<typename EndingLocationT = Aws::String>
86 ImpossibleTravelDetail& WithEndingLocation(EndingLocationT&& value) { SetEndingLocation(std::forward<EndingLocationT>(value)); return *this;}
88
90
94 inline int GetHourlyTimeDelta() const { return m_hourlyTimeDelta; }
95 inline bool HourlyTimeDeltaHasBeenSet() const { return m_hourlyTimeDeltaHasBeenSet; }
96 inline void SetHourlyTimeDelta(int value) { m_hourlyTimeDeltaHasBeenSet = true; m_hourlyTimeDelta = value; }
97 inline ImpossibleTravelDetail& WithHourlyTimeDelta(int value) { SetHourlyTimeDelta(value); return *this;}
99 private:
100
101 Aws::String m_startingIpAddress;
102 bool m_startingIpAddressHasBeenSet = false;
103
104 Aws::String m_endingIpAddress;
105 bool m_endingIpAddressHasBeenSet = false;
106
107 Aws::String m_startingLocation;
108 bool m_startingLocationHasBeenSet = false;
109
110 Aws::String m_endingLocation;
111 bool m_endingLocationHasBeenSet = false;
112
113 int m_hourlyTimeDelta{0};
114 bool m_hourlyTimeDeltaHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Detective
119} // namespace Aws
ImpossibleTravelDetail & WithEndingIpAddress(EndingIpAddressT &&value)
ImpossibleTravelDetail & WithStartingLocation(StartingLocationT &&value)
AWS_DETECTIVE_API ImpossibleTravelDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ImpossibleTravelDetail & WithHourlyTimeDelta(int value)
AWS_DETECTIVE_API ImpossibleTravelDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API ImpossibleTravelDetail()=default
void SetStartingIpAddress(StartingIpAddressT &&value)
void SetStartingLocation(StartingLocationT &&value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
ImpossibleTravelDetail & WithEndingLocation(EndingLocationT &&value)
ImpossibleTravelDetail & WithStartingIpAddress(StartingIpAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue