AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AWSEndpoint.h
Go to the documentation of this file.
1
6#pragma once
7
11
13
14namespace Aws
15{
16 namespace Endpoint
17 {
22 {
23 public:
25
26 virtual ~AWSEndpoint()
27 {};
28
31
32 const Aws::Http::URI& GetURI() const;
34
35 template<typename T>
36 inline void AddPathSegment(T&& pathSegment)
37 {
38 m_uri.AddPathSegment(std::forward<T>(pathSegment));
39 }
40
41 template<typename T>
42 inline void AddPathSegments(T&& pathSegments)
43 {
44 m_uri.AddPathSegments(std::forward<T>(pathSegments));
45 }
46
47 using OptionalError = Crt::Optional<Aws::Client::AWSError<Aws::Client::CoreErrors>>;
49
50 void SetQueryString(const Aws::String& queryString);
51
52 const Crt::Optional<EndpointAttributes>& GetAttributes() const;
53 Crt::Optional<EndpointAttributes>& AccessAttributes();
55
58
59 protected:
60 // A URI containing at minimum the scheme and host. May optionally include a port and a path.
62
63 // A grab bag property map of endpoint attributes. The values here are considered unstable.
64 Crt::Optional<EndpointAttributes> m_attributes;
65
66 // A map of additional headers to be set when calling the endpoint.
67 // Note: the values in these maps are Lists to support multi-value headers.
69 };
70 }
71}
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
Aws::String GetURL() const
Crt::Optional< Aws::Client::AWSError< Aws::Client::CoreErrors > > OptionalError
Definition: AWSEndpoint.h:47
Crt::Optional< EndpointAttributes > & AccessAttributes()
void SetURL(Aws::String url)
const Aws::UnorderedMap< Aws::String, Aws::String > & GetHeaders() const
Aws::UnorderedMap< Aws::String, Aws::String > m_headers
Definition: AWSEndpoint.h:68
Crt::Optional< EndpointAttributes > m_attributes
Definition: AWSEndpoint.h:64
void SetAttributes(EndpointAttributes &&attributes)
void SetURI(Aws::Http::URI uri)
const Aws::Http::URI & GetURI() const
void AddPathSegments(T &&pathSegments)
Definition: AWSEndpoint.h:42
void AddPathSegment(T &&pathSegment)
Definition: AWSEndpoint.h:36
const Crt::Optional< EndpointAttributes > & GetAttributes() const
void SetHeaders(Aws::UnorderedMap< Aws::String, Aws::String > headers)
void SetQueryString(const Aws::String &queryString)
OptionalError AddPrefixIfMissing(const Aws::String &prefix)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, Aws::Allocator< std::pair< const K, V > > > UnorderedMap
Definition: AWSMap.h:20