AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AuthRequest.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_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 AppFabric {
20namespace Model {
21
30 public:
31 AWS_APPFABRIC_API AuthRequest() = default;
32 AWS_APPFABRIC_API AuthRequest(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPFABRIC_API AuthRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetRedirectUri() const { return m_redirectUri; }
42 inline bool RedirectUriHasBeenSet() const { return m_redirectUriHasBeenSet; }
43 template <typename RedirectUriT = Aws::String>
44 void SetRedirectUri(RedirectUriT&& value) {
45 m_redirectUriHasBeenSet = true;
46 m_redirectUri = std::forward<RedirectUriT>(value);
47 }
48 template <typename RedirectUriT = Aws::String>
49 AuthRequest& WithRedirectUri(RedirectUriT&& value) {
50 SetRedirectUri(std::forward<RedirectUriT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 template <typename CodeT = Aws::String>
63 void SetCode(CodeT&& value) {
64 m_codeHasBeenSet = true;
65 m_code = std::forward<CodeT>(value);
66 }
67 template <typename CodeT = Aws::String>
68 AuthRequest& WithCode(CodeT&& value) {
69 SetCode(std::forward<CodeT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_redirectUri;
75
76 Aws::String m_code;
77 bool m_redirectUriHasBeenSet = false;
78 bool m_codeHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace AppFabric
83} // namespace Aws
AWS_APPFABRIC_API AuthRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
Definition AuthRequest.h:60
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
AuthRequest & WithCode(CodeT &&value)
Definition AuthRequest.h:68
const Aws::String & GetRedirectUri() const
Definition AuthRequest.h:41
AWS_APPFABRIC_API AuthRequest()=default
AWS_APPFABRIC_API AuthRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRedirectUri(RedirectUriT &&value)
Definition AuthRequest.h:44
AuthRequest & WithRedirectUri(RedirectUriT &&value)
Definition AuthRequest.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue