/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an HTTP data source configuration.See Also:
AWS
* API Reference
The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline HttpDataSourceConfig& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline HttpDataSourceConfig& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *The HTTP URL endpoint. You can specify either the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the * port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for * HTTPS endpoints.
*/ inline HttpDataSourceConfig& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline const AuthorizationConfig& GetAuthorizationConfig() const{ return m_authorizationConfig; } /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; } /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline void SetAuthorizationConfig(const AuthorizationConfig& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = value; } /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline void SetAuthorizationConfig(AuthorizationConfig&& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = std::move(value); } /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline HttpDataSourceConfig& WithAuthorizationConfig(const AuthorizationConfig& value) { SetAuthorizationConfig(value); return *this;} /** *The authorization configuration in case the HTTP endpoint requires * authorization.
*/ inline HttpDataSourceConfig& WithAuthorizationConfig(AuthorizationConfig&& value) { SetAuthorizationConfig(std::move(value)); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet = false; AuthorizationConfig m_authorizationConfig; bool m_authorizationConfigHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws