AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceServerConfig.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/ResourceServerScopeDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSOAdmin
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSOADMIN_API ResourceServerConfig() = default;
40 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<Aws::String, ResourceServerScopeDetails>& GetScopes() const { return m_scopes; }
49 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
50 template<typename ScopesT = Aws::Map<Aws::String, ResourceServerScopeDetails>>
51 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
52 template<typename ScopesT = Aws::Map<Aws::String, ResourceServerScopeDetails>>
53 ResourceServerConfig& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
54 template<typename ScopesKeyT = Aws::String, typename ScopesValueT = ResourceServerScopeDetails>
55 ResourceServerConfig& AddScopes(ScopesKeyT&& key, ScopesValueT&& value) {
56 m_scopesHasBeenSet = true; m_scopes.emplace(std::forward<ScopesKeyT>(key), std::forward<ScopesValueT>(value)); return *this;
57 }
59 private:
60
62 bool m_scopesHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace SSOAdmin
67} // 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