AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
ResourceServerConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
10#include <aws/sso-admin/model/ResourceServerScopeDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSOAdmin {
22namespace Model {
23
31 public:
32 AWS_SSOADMIN_API ResourceServerConfig() = default;
35 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<Aws::String, ResourceServerScopeDetails>& GetScopes() const { return m_scopes; }
43 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
44 template <typename ScopesT = Aws::Map<Aws::String, ResourceServerScopeDetails>>
45 void SetScopes(ScopesT&& value) {
46 m_scopesHasBeenSet = true;
47 m_scopes = std::forward<ScopesT>(value);
48 }
49 template <typename ScopesT = Aws::Map<Aws::String, ResourceServerScopeDetails>>
50 ResourceServerConfig& WithScopes(ScopesT&& value) {
51 SetScopes(std::forward<ScopesT>(value));
52 return *this;
53 }
54 template <typename ScopesKeyT = Aws::String, typename ScopesValueT = ResourceServerScopeDetails>
55 ResourceServerConfig& AddScopes(ScopesKeyT&& key, ScopesValueT&& value) {
56 m_scopesHasBeenSet = true;
57 m_scopes.emplace(std::forward<ScopesKeyT>(key), std::forward<ScopesValueT>(value));
58 return *this;
59 }
61 private:
63 bool m_scopesHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace SSOAdmin
68} // namespace Aws
AWS_SSOADMIN_API ResourceServerConfig()=default
const Aws::Map< Aws::String, ResourceServerScopeDetails > & GetScopes() const
AWS_SSOADMIN_API ResourceServerConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API ResourceServerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceServerConfig & AddScopes(ScopesKeyT &&key, ScopesValueT &&value)
ResourceServerConfig & WithScopes(ScopesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue