AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Identity.h
1
6#pragma once
7#include <aws/apigatewaymanagementapi/ApiGatewayManagementApi_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 ApiGatewayManagementApi
22{
23namespace Model
24{
25
27 {
28 public:
29 AWS_APIGATEWAYMANAGEMENTAPI_API Identity();
30 AWS_APIGATEWAYMANAGEMENTAPI_API Identity(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APIGATEWAYMANAGEMENTAPI_API Identity& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAYMANAGEMENTAPI_API Aws::Utils::Json::JsonValue Jsonize() const;
33
34
36
40 inline const Aws::String& GetSourceIp() const{ return m_sourceIp; }
41 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
42 inline void SetSourceIp(const Aws::String& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
43 inline void SetSourceIp(Aws::String&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
44 inline void SetSourceIp(const char* value) { m_sourceIpHasBeenSet = true; m_sourceIp.assign(value); }
45 inline Identity& WithSourceIp(const Aws::String& value) { SetSourceIp(value); return *this;}
46 inline Identity& WithSourceIp(Aws::String&& value) { SetSourceIp(std::move(value)); return *this;}
47 inline Identity& WithSourceIp(const char* value) { SetSourceIp(value); return *this;}
49
51
54 inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
55 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
56 inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
57 inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
58 inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
59 inline Identity& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
60 inline Identity& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
61 inline Identity& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
63 private:
64
65 Aws::String m_sourceIp;
66 bool m_sourceIpHasBeenSet = false;
67
68 Aws::String m_userAgent;
69 bool m_userAgentHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ApiGatewayManagementApi
74} // namespace Aws
const Aws::String & GetUserAgent() const
Definition Identity.h:54
Identity & WithSourceIp(const Aws::String &value)
Definition Identity.h:45
AWS_APIGATEWAYMANAGEMENTAPI_API Identity()
Identity & WithUserAgent(const char *value)
Definition Identity.h:61
void SetUserAgent(const Aws::String &value)
Definition Identity.h:56
void SetSourceIp(Aws::String &&value)
Definition Identity.h:43
AWS_APIGATEWAYMANAGEMENTAPI_API Identity(Aws::Utils::Json::JsonView jsonValue)
Identity & WithUserAgent(const Aws::String &value)
Definition Identity.h:59
void SetSourceIp(const Aws::String &value)
Definition Identity.h:42
AWS_APIGATEWAYMANAGEMENTAPI_API Identity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUserAgent(Aws::String &&value)
Definition Identity.h:57
Identity & WithSourceIp(Aws::String &&value)
Definition Identity.h:46
AWS_APIGATEWAYMANAGEMENTAPI_API Aws::Utils::Json::JsonValue Jsonize() const
Identity & WithUserAgent(Aws::String &&value)
Definition Identity.h:60
Identity & WithSourceIp(const char *value)
Definition Identity.h:47
const Aws::String & GetSourceIp() const
Definition Identity.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue