AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
49 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
50 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
51 inline NewGeolocationDetail& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
52 inline NewGeolocationDetail& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
53 inline NewGeolocationDetail& WithLocation(const char* value) { SetLocation(value); return *this;}
55
57
60 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
61 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
62 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
63 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
64 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
65 inline NewGeolocationDetail& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
66 inline NewGeolocationDetail& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
67 inline NewGeolocationDetail& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
69
71
74 inline bool GetIsNewForEntireAccount() const{ return m_isNewForEntireAccount; }
75 inline bool IsNewForEntireAccountHasBeenSet() const { return m_isNewForEntireAccountHasBeenSet; }
76 inline void SetIsNewForEntireAccount(bool value) { m_isNewForEntireAccountHasBeenSet = true; m_isNewForEntireAccount = value; }
77 inline NewGeolocationDetail& WithIsNewForEntireAccount(bool value) { SetIsNewForEntireAccount(value); return *this;}
79 private:
80
81 Aws::String m_location;
82 bool m_locationHasBeenSet = false;
83
84 Aws::String m_ipAddress;
85 bool m_ipAddressHasBeenSet = false;
86
87 bool m_isNewForEntireAccount;
88 bool m_isNewForEntireAccountHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Detective
93} // namespace Aws
NewGeolocationDetail & WithLocation(const Aws::String &value)
NewGeolocationDetail & WithLocation(const char *value)
NewGeolocationDetail & WithIpAddress(const char *value)
NewGeolocationDetail & WithIpAddress(const Aws::String &value)
AWS_DETECTIVE_API NewGeolocationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
NewGeolocationDetail & WithIpAddress(Aws::String &&value)
AWS_DETECTIVE_API NewGeolocationDetail(Aws::Utils::Json::JsonView jsonValue)
NewGeolocationDetail & WithIsNewForEntireAccount(bool value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
NewGeolocationDetail & WithLocation(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue