AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
NewGeolocationDetail.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
30 public:
31 AWS_DETECTIVE_API NewGeolocationDetail() = default;
34 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLocation() const { return m_location; }
41 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
42 template <typename LocationT = Aws::String>
43 void SetLocation(LocationT&& value) {
44 m_locationHasBeenSet = true;
45 m_location = std::forward<LocationT>(value);
46 }
47 template <typename LocationT = Aws::String>
48 NewGeolocationDetail& WithLocation(LocationT&& value) {
49 SetLocation(std::forward<LocationT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
59 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
60 template <typename IpAddressT = Aws::String>
61 void SetIpAddress(IpAddressT&& value) {
62 m_ipAddressHasBeenSet = true;
63 m_ipAddress = std::forward<IpAddressT>(value);
64 }
65 template <typename IpAddressT = Aws::String>
66 NewGeolocationDetail& WithIpAddress(IpAddressT&& value) {
67 SetIpAddress(std::forward<IpAddressT>(value));
68 return *this;
69 }
71
73
76 inline bool GetIsNewForEntireAccount() const { return m_isNewForEntireAccount; }
77 inline bool IsNewForEntireAccountHasBeenSet() const { return m_isNewForEntireAccountHasBeenSet; }
78 inline void SetIsNewForEntireAccount(bool value) {
79 m_isNewForEntireAccountHasBeenSet = true;
80 m_isNewForEntireAccount = value;
81 }
84 return *this;
85 }
87 private:
88 Aws::String m_location;
89 bool m_locationHasBeenSet = false;
90
91 Aws::String m_ipAddress;
92 bool m_ipAddressHasBeenSet = false;
93
94 bool m_isNewForEntireAccount{false};
95 bool m_isNewForEntireAccountHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Detective
100} // namespace Aws
NewGeolocationDetail & WithIpAddress(IpAddressT &&value)
NewGeolocationDetail & WithLocation(LocationT &&value)
AWS_DETECTIVE_API NewGeolocationDetail()=default
AWS_DETECTIVE_API NewGeolocationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API NewGeolocationDetail(Aws::Utils::Json::JsonView jsonValue)
NewGeolocationDetail & WithIsNewForEntireAccount(bool value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue