AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApiGatewayManagementApi {
20namespace Model {
21
22class Identity {
23 public:
24 AWS_APIGATEWAYMANAGEMENTAPI_API Identity() = default;
25 AWS_APIGATEWAYMANAGEMENTAPI_API Identity(Aws::Utils::Json::JsonView jsonValue);
26 AWS_APIGATEWAYMANAGEMENTAPI_API Identity& operator=(Aws::Utils::Json::JsonView jsonValue);
27 AWS_APIGATEWAYMANAGEMENTAPI_API Aws::Utils::Json::JsonValue Jsonize() const;
28
30
34 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
35 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
36 template <typename SourceIpT = Aws::String>
37 void SetSourceIp(SourceIpT&& value) {
38 m_sourceIpHasBeenSet = true;
39 m_sourceIp = std::forward<SourceIpT>(value);
40 }
41 template <typename SourceIpT = Aws::String>
42 Identity& WithSourceIp(SourceIpT&& value) {
43 SetSourceIp(std::forward<SourceIpT>(value));
44 return *this;
45 }
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) {
56 m_userAgentHasBeenSet = true;
57 m_userAgent = std::forward<UserAgentT>(value);
58 }
59 template <typename UserAgentT = Aws::String>
60 Identity& WithUserAgent(UserAgentT&& value) {
61 SetUserAgent(std::forward<UserAgentT>(value));
62 return *this;
63 }
65 private:
66 Aws::String m_sourceIp;
67
68 Aws::String m_userAgent;
69 bool m_sourceIpHasBeenSet = false;
70 bool m_userAgentHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ApiGatewayManagementApi
75} // namespace Aws
Identity & WithUserAgent(UserAgentT &&value)
Definition Identity.h:60
void SetUserAgent(UserAgentT &&value)
Definition Identity.h:55
const Aws::String & GetUserAgent() const
Definition Identity.h:52
Identity & WithSourceIp(SourceIpT &&value)
Definition Identity.h:42
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:34
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue