AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename SourceIpT = Aws::String>
43 void SetSourceIp(SourceIpT&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::forward<SourceIpT>(value); }
44 template<typename SourceIpT = Aws::String>
45 Identity& WithSourceIp(SourceIpT&& value) { SetSourceIp(std::forward<SourceIpT>(value)); return *this;}
47
49
52 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
53 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
54 template<typename UserAgentT = Aws::String>
55 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
56 template<typename UserAgentT = Aws::String>
57 Identity& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
59 private:
60
61 Aws::String m_sourceIp;
62 bool m_sourceIpHasBeenSet = false;
63
64 Aws::String m_userAgent;
65 bool m_userAgentHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace ApiGatewayManagementApi
70} // namespace Aws
Identity & WithUserAgent(UserAgentT &&value)
Definition Identity.h:57
void SetUserAgent(UserAgentT &&value)
Definition Identity.h:55
const Aws::String & GetUserAgent() const
Definition Identity.h:52
Identity & WithSourceIp(SourceIpT &&value)
Definition Identity.h:45
AWS_APIGATEWAYMANAGEMENTAPI_API Identity(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYMANAGEMENTAPI_API Identity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYMANAGEMENTAPI_API Identity()=default
AWS_APIGATEWAYMANAGEMENTAPI_API Aws::Utils::Json::JsonValue Jsonize() const
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