This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-appsync/include/aws/appsync/model/HttpDataSourceConfig.h

154 lines
5.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appsync/AppSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appsync/model/AuthorizationConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppSync
{
namespace Model
{
/**
* <p>Describes an HTTP data source configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/HttpDataSourceConfig">AWS
* API Reference</a></p>
*/
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;
/**
* <p>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.</p>
*/
inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
/**
* <p>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.</p>
*/
inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
/**
* <p>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.</p>
*/
inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
/**
* <p>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.</p>
*/
inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
/**
* <p>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.</p>
*/
inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
/**
* <p>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.</p>
*/
inline HttpDataSourceConfig& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
/**
* <p>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.</p>
*/
inline HttpDataSourceConfig& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
/**
* <p>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.</p>
*/
inline HttpDataSourceConfig& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
inline const AuthorizationConfig& GetAuthorizationConfig() const{ return m_authorizationConfig; }
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; }
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
inline void SetAuthorizationConfig(const AuthorizationConfig& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = value; }
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
inline void SetAuthorizationConfig(AuthorizationConfig&& value) { m_authorizationConfigHasBeenSet = true; m_authorizationConfig = std::move(value); }
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
inline HttpDataSourceConfig& WithAuthorizationConfig(const AuthorizationConfig& value) { SetAuthorizationConfig(value); return *this;}
/**
* <p>The authorization config in case the HTTP endpoint requires
* authorization.</p>
*/
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