AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
ScopeDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSOAdmin {
21namespace Model {
22
30 public:
31 AWS_SSOADMIN_API ScopeDetails() = default;
32 AWS_SSOADMIN_API ScopeDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetScope() const { return m_scope; }
41 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
42 template <typename ScopeT = Aws::String>
43 void SetScope(ScopeT&& value) {
44 m_scopeHasBeenSet = true;
45 m_scope = std::forward<ScopeT>(value);
46 }
47 template <typename ScopeT = Aws::String>
48 ScopeDetails& WithScope(ScopeT&& value) {
49 SetScope(std::forward<ScopeT>(value));
50 return *this;
51 }
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) {
62 m_authorizedTargetsHasBeenSet = true;
63 m_authorizedTargets = std::forward<AuthorizedTargetsT>(value);
64 }
65 template <typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
66 ScopeDetails& WithAuthorizedTargets(AuthorizedTargetsT&& value) {
67 SetAuthorizedTargets(std::forward<AuthorizedTargetsT>(value));
68 return *this;
69 }
70 template <typename AuthorizedTargetsT = Aws::String>
71 ScopeDetails& AddAuthorizedTargets(AuthorizedTargetsT&& value) {
72 m_authorizedTargetsHasBeenSet = true;
73 m_authorizedTargets.emplace_back(std::forward<AuthorizedTargetsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_scope;
79
80 Aws::Vector<Aws::String> m_authorizedTargets;
81 bool m_scopeHasBeenSet = false;
82 bool m_authorizedTargetsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SSOAdmin
87} // 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