AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ConnectionOAuthResponseParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEvents_EXPORTS.h>
9#include <aws/events/model/ConnectionHttpParameters.h>
10#include <aws/events/model/ConnectionOAuthClientResponseParameters.h>
11#include <aws/events/model/ConnectionOAuthHttpMethod.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvents {
23namespace Model {
24
32 public:
33 AWS_CLOUDWATCHEVENTS_API ConnectionOAuthResponseParameters() = default;
36 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const ConnectionOAuthClientResponseParameters& GetClientParameters() const { return m_clientParameters; }
45 inline bool ClientParametersHasBeenSet() const { return m_clientParametersHasBeenSet; }
46 template <typename ClientParametersT = ConnectionOAuthClientResponseParameters>
47 void SetClientParameters(ClientParametersT&& value) {
48 m_clientParametersHasBeenSet = true;
49 m_clientParameters = std::forward<ClientParametersT>(value);
50 }
51 template <typename ClientParametersT = ConnectionOAuthClientResponseParameters>
53 SetClientParameters(std::forward<ClientParametersT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetAuthorizationEndpoint() const { return m_authorizationEndpoint; }
63 inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; }
64 template <typename AuthorizationEndpointT = Aws::String>
65 void SetAuthorizationEndpoint(AuthorizationEndpointT&& value) {
66 m_authorizationEndpointHasBeenSet = true;
67 m_authorizationEndpoint = std::forward<AuthorizationEndpointT>(value);
68 }
69 template <typename AuthorizationEndpointT = Aws::String>
71 SetAuthorizationEndpoint(std::forward<AuthorizationEndpointT>(value));
72 return *this;
73 }
75
77
80 inline ConnectionOAuthHttpMethod GetHttpMethod() const { return m_httpMethod; }
81 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
83 m_httpMethodHasBeenSet = true;
84 m_httpMethod = value;
85 }
87 SetHttpMethod(value);
88 return *this;
89 }
91
93
96 inline const ConnectionHttpParameters& GetOAuthHttpParameters() const { return m_oAuthHttpParameters; }
97 inline bool OAuthHttpParametersHasBeenSet() const { return m_oAuthHttpParametersHasBeenSet; }
98 template <typename OAuthHttpParametersT = ConnectionHttpParameters>
99 void SetOAuthHttpParameters(OAuthHttpParametersT&& value) {
100 m_oAuthHttpParametersHasBeenSet = true;
101 m_oAuthHttpParameters = std::forward<OAuthHttpParametersT>(value);
102 }
103 template <typename OAuthHttpParametersT = ConnectionHttpParameters>
105 SetOAuthHttpParameters(std::forward<OAuthHttpParametersT>(value));
106 return *this;
107 }
109 private:
111
112 Aws::String m_authorizationEndpoint;
113
115
116 ConnectionHttpParameters m_oAuthHttpParameters;
117 bool m_clientParametersHasBeenSet = false;
118 bool m_authorizationEndpointHasBeenSet = false;
119 bool m_httpMethodHasBeenSet = false;
120 bool m_oAuthHttpParametersHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CloudWatchEvents
125} // namespace Aws
AWS_CLOUDWATCHEVENTS_API ConnectionOAuthResponseParameters(Aws::Utils::Json::JsonView jsonValue)
ConnectionOAuthResponseParameters & WithOAuthHttpParameters(OAuthHttpParametersT &&value)
const ConnectionOAuthClientResponseParameters & GetClientParameters() const
AWS_CLOUDWATCHEVENTS_API ConnectionOAuthResponseParameters()=default
ConnectionOAuthResponseParameters & WithHttpMethod(ConnectionOAuthHttpMethod value)
AWS_CLOUDWATCHEVENTS_API ConnectionOAuthResponseParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionOAuthResponseParameters & WithAuthorizationEndpoint(AuthorizationEndpointT &&value)
ConnectionOAuthResponseParameters & WithClientParameters(ClientParametersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue