/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { /** *

Describes an HTTP data source configuration.

See Also:

AWS * API Reference

*/ class AWS_APPSYNC_API HttpDataSourceConfig { public: HttpDataSourceConfig(); HttpDataSourceConfig(Aws::Utils::Json::JsonView jsonValue); HttpDataSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The HTTP URL endpoint. You can either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 either specify the domain name or IP, and port * combination, and the URL scheme must be HTTP or HTTPS. If the port is not * specified, AWS 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 config in case the HTTP endpoint requires * authorization.

*/ inline const AuthorizationConfig& GetAuthorizationConfig() const{ return m_authorizationConfig; } /** *

The authorization config in case the HTTP endpoint requires * authorization.

*/ inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; } /** *

The authorization config in case the HTTP endpoint requires * authorization.

*/ inline void SetAuthorizationConfig(const AuthorizationConfig& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = value; } /** *

The authorization config in case the HTTP endpoint requires * authorization.

*/ inline void SetAuthorizationConfig(AuthorizationConfig&& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = std::move(value); } /** *

The authorization config in case the HTTP endpoint requires * authorization.

*/ inline HttpDataSourceConfig& WithAuthorizationConfig(const AuthorizationConfig& value) { SetAuthorizationConfig(value); return *this;} /** *

The authorization config 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; AuthorizationConfig m_authorizationConfig; bool m_authorizationConfigHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws