AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScopeDetails.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSOAdmin
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSOADMIN_API ScopeDetails() = default;
37 AWS_SSOADMIN_API ScopeDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetScope() const { return m_scope; }
47 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
48 template<typename ScopeT = Aws::String>
49 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
50 template<typename ScopeT = Aws::String>
51 ScopeDetails& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetAuthorizedTargets() const { return m_authorizedTargets; }
59 inline bool AuthorizedTargetsHasBeenSet() const { return m_authorizedTargetsHasBeenSet; }
60 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
61 void SetAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets = std::forward<AuthorizedTargetsT>(value); }
62 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
63 ScopeDetails& WithAuthorizedTargets(AuthorizedTargetsT&& value) { SetAuthorizedTargets(std::forward<AuthorizedTargetsT>(value)); return *this;}
64 template<typename AuthorizedTargetsT = Aws::String>
65 ScopeDetails& AddAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets.emplace_back(std::forward<AuthorizedTargetsT>(value)); return *this; }
67 private:
68
69 Aws::String m_scope;
70 bool m_scopeHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_authorizedTargets;
73 bool m_authorizedTargetsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SSOAdmin
78} // namespace Aws
ScopeDetails & WithAuthorizedTargets(AuthorizedTargetsT &&value)
void SetAuthorizedTargets(AuthorizedTargetsT &&value)
ScopeDetails & AddAuthorizedTargets(AuthorizedTargetsT &&value)
AWS_SSOADMIN_API ScopeDetails()=default
const Aws::String & GetScope() const
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSOADMIN_API ScopeDetails(Aws::Utils::Json::JsonView jsonValue)
ScopeDetails & WithScope(ScopeT &&value)
const Aws::Vector< Aws::String > & GetAuthorizedTargets() const
AWS_SSOADMIN_API ScopeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue