AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NewGeolocationDetail.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
34 {
35 public:
36 AWS_DETECTIVE_API NewGeolocationDetail() = default;
39 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLocation() const { return m_location; }
47 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
48 template<typename LocationT = Aws::String>
49 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
50 template<typename LocationT = Aws::String>
51 NewGeolocationDetail& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
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) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
62 template<typename IpAddressT = Aws::String>
63 NewGeolocationDetail& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
65
67
70 inline bool GetIsNewForEntireAccount() const { return m_isNewForEntireAccount; }
71 inline bool IsNewForEntireAccountHasBeenSet() const { return m_isNewForEntireAccountHasBeenSet; }
72 inline void SetIsNewForEntireAccount(bool value) { m_isNewForEntireAccountHasBeenSet = true; m_isNewForEntireAccount = value; }
73 inline NewGeolocationDetail& WithIsNewForEntireAccount(bool value) { SetIsNewForEntireAccount(value); return *this;}
75 private:
76
77 Aws::String m_location;
78 bool m_locationHasBeenSet = false;
79
80 Aws::String m_ipAddress;
81 bool m_ipAddressHasBeenSet = false;
82
83 bool m_isNewForEntireAccount{false};
84 bool m_isNewForEntireAccountHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Detective
89} // 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