userver: userver/s3api/models/s3api_connection_type.hpp Source File
Loading...
Searching...
No Matches
s3api_connection_type.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/s3api/models/s3api_connection_type.hpp
4/// @brief S3 connection type. Currently used to distinguish between http and
5/// https. It will be removed in future versions
6
7#include <string>
8
9#include <userver/formats/json_fwd.hpp>
10
11USERVER_NAMESPACE_BEGIN
12
13namespace s3api {
14
15enum class S3ConnectionType {
16 kHttp,
17 kHttps,
18};
19
20S3ConnectionType Parse(const formats::json::Value& elem, formats::parse::To<S3ConnectionType>);
21
22std::string ToString(S3ConnectionType connection_type);
23std::string_view ToStringView(S3ConnectionType connection_type);
24
25} // namespace s3api
26
27USERVER_NAMESPACE_END