AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ImpossibleTravelDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Detective {
20namespace Model {
21
29 public:
30 AWS_DETECTIVE_API ImpossibleTravelDetail() = default;
33 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStartingIpAddress() const { return m_startingIpAddress; }
40 inline bool StartingIpAddressHasBeenSet() const { return m_startingIpAddressHasBeenSet; }
41 template <typename StartingIpAddressT = Aws::String>
42 void SetStartingIpAddress(StartingIpAddressT&& value) {
43 m_startingIpAddressHasBeenSet = true;
44 m_startingIpAddress = std::forward<StartingIpAddressT>(value);
45 }
46 template <typename StartingIpAddressT = Aws::String>
47 ImpossibleTravelDetail& WithStartingIpAddress(StartingIpAddressT&& value) {
48 SetStartingIpAddress(std::forward<StartingIpAddressT>(value));
49 return *this;
50 }
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) {
61 m_endingIpAddressHasBeenSet = true;
62 m_endingIpAddress = std::forward<EndingIpAddressT>(value);
63 }
64 template <typename EndingIpAddressT = Aws::String>
65 ImpossibleTravelDetail& WithEndingIpAddress(EndingIpAddressT&& value) {
66 SetEndingIpAddress(std::forward<EndingIpAddressT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStartingLocation() const { return m_startingLocation; }
76 inline bool StartingLocationHasBeenSet() const { return m_startingLocationHasBeenSet; }
77 template <typename StartingLocationT = Aws::String>
78 void SetStartingLocation(StartingLocationT&& value) {
79 m_startingLocationHasBeenSet = true;
80 m_startingLocation = std::forward<StartingLocationT>(value);
81 }
82 template <typename StartingLocationT = Aws::String>
83 ImpossibleTravelDetail& WithStartingLocation(StartingLocationT&& value) {
84 SetStartingLocation(std::forward<StartingLocationT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetEndingLocation() const { return m_endingLocation; }
94 inline bool EndingLocationHasBeenSet() const { return m_endingLocationHasBeenSet; }
95 template <typename EndingLocationT = Aws::String>
96 void SetEndingLocation(EndingLocationT&& value) {
97 m_endingLocationHasBeenSet = true;
98 m_endingLocation = std::forward<EndingLocationT>(value);
99 }
100 template <typename EndingLocationT = Aws::String>
101 ImpossibleTravelDetail& WithEndingLocation(EndingLocationT&& value) {
102 SetEndingLocation(std::forward<EndingLocationT>(value));
103 return *this;
104 }
106
108
112 inline int GetHourlyTimeDelta() const { return m_hourlyTimeDelta; }
113 inline bool HourlyTimeDeltaHasBeenSet() const { return m_hourlyTimeDeltaHasBeenSet; }
114 inline void SetHourlyTimeDelta(int value) {
115 m_hourlyTimeDeltaHasBeenSet = true;
116 m_hourlyTimeDelta = value;
117 }
119 SetHourlyTimeDelta(value);
120 return *this;
121 }
123 private:
124 Aws::String m_startingIpAddress;
125 bool m_startingIpAddressHasBeenSet = false;
126
127 Aws::String m_endingIpAddress;
128 bool m_endingIpAddressHasBeenSet = false;
129
130 Aws::String m_startingLocation;
131 bool m_startingLocationHasBeenSet = false;
132
133 Aws::String m_endingLocation;
134 bool m_endingLocationHasBeenSet = false;
135
136 int m_hourlyTimeDelta{0};
137 bool m_hourlyTimeDeltaHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Detective
142} // 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