AWS SDK for C++

AWS SDK for C++ Version 1.11.550

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
AuthSchemeOption.h
1
5#pragma once
6
7#include <aws/crt/Variant.h>
8
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/endpoint/EndpointParameter.h>
12
13namespace smithy {
14/* AuthSchemeOption and AuthSchemeOptionResolver */
16{
18 using EndpointParameters = Aws::Vector<Aws::Endpoint::EndpointParameter>;
19 /* note: AuthSchemeOption is not connected with AuthScheme by type system, only by the String of schemeId, this is in accordance with SRA */
20public:
21 AuthSchemeOption(const char* id = nullptr): schemeId(id) {}
22 virtual ~AuthSchemeOption() = default;
23
24 const char* schemeId = nullptr;
25
26 PropertyBag virtual identityProperties() const { return m_identityProperties; };
27 PropertyBag virtual signerProperties() const { return m_signerProperties; };
28 void putIdentityProperty( const Aws::String& key,const Aws::Crt::Variant<Aws::String, bool>& value) {
29 auto it = m_identityProperties.emplace(key, value);
30 if(!it.second) {
31 it.first->second = value;
32 }
33 };
34 void putSignerProperty( const Aws::String& key,const Aws::Crt::Variant<Aws::String, bool>& value) {
35 auto it = m_signerProperties.emplace(key, value);
36 if(!it.second) {
37 it.first->second = value;
38 }
39 };
40 EndpointParameters virtual endpointParameters() const { return EndpointParameters{}; };
41
42private:
43 PropertyBag m_identityProperties;
44 PropertyBag m_signerProperties;
45};
46}
void putSignerProperty(const Aws::String &key, const Aws::Crt::Variant< Aws::String, bool > &value)
AuthSchemeOption(const char *id=nullptr)
virtual PropertyBag identityProperties() const
virtual ~AuthSchemeOption()=default
virtual EndpointParameters endpointParameters() const
void putIdentityProperty(const Aws::String &key, const Aws::Crt::Variant< Aws::String, bool > &value)
virtual PropertyBag signerProperties() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97
std::vector< T, Aws::Allocator< T > > Vector
Definition AWSVector.h:17
std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, Aws::Allocator< std::pair< const K, V > > > UnorderedMap
Definition AWSMap.h:21