AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HttpDataSourceConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/AuthorizationConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPSYNC_API HttpDataSourceConfig() = default;
38 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
49 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
50 template<typename EndpointT = Aws::String>
51 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
52 template<typename EndpointT = Aws::String>
53 HttpDataSourceConfig& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
55
57
61 inline const AuthorizationConfig& GetAuthorizationConfig() const { return m_authorizationConfig; }
62 inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; }
63 template<typename AuthorizationConfigT = AuthorizationConfig>
64 void SetAuthorizationConfig(AuthorizationConfigT&& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = std::forward<AuthorizationConfigT>(value); }
65 template<typename AuthorizationConfigT = AuthorizationConfig>
66 HttpDataSourceConfig& WithAuthorizationConfig(AuthorizationConfigT&& value) { SetAuthorizationConfig(std::forward<AuthorizationConfigT>(value)); return *this;}
68 private:
69
70 Aws::String m_endpoint;
71 bool m_endpointHasBeenSet = false;
72
73 AuthorizationConfig m_authorizationConfig;
74 bool m_authorizationConfigHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AppSync
79} // namespace Aws
AWS_APPSYNC_API HttpDataSourceConfig()=default
const AuthorizationConfig & GetAuthorizationConfig() const
AWS_APPSYNC_API HttpDataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
HttpDataSourceConfig & WithAuthorizationConfig(AuthorizationConfigT &&value)
AWS_APPSYNC_API HttpDataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizationConfig(AuthorizationConfigT &&value)
HttpDataSourceConfig & WithEndpoint(EndpointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue