AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
AuthorizationCodeGrant.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 AuthorizationCodeGrant() = default;
34 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetRedirectUris() const { return m_redirectUris; }
43 inline bool RedirectUrisHasBeenSet() const { return m_redirectUrisHasBeenSet; }
44 template <typename RedirectUrisT = Aws::Vector<Aws::String>>
45 void SetRedirectUris(RedirectUrisT&& value) {
46 m_redirectUrisHasBeenSet = true;
47 m_redirectUris = std::forward<RedirectUrisT>(value);
48 }
49 template <typename RedirectUrisT = Aws::Vector<Aws::String>>
50 AuthorizationCodeGrant& WithRedirectUris(RedirectUrisT&& value) {
51 SetRedirectUris(std::forward<RedirectUrisT>(value));
52 return *this;
53 }
54 template <typename RedirectUrisT = Aws::String>
55 AuthorizationCodeGrant& AddRedirectUris(RedirectUrisT&& value) {
56 m_redirectUrisHasBeenSet = true;
57 m_redirectUris.emplace_back(std::forward<RedirectUrisT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<Aws::String> m_redirectUris;
63 bool m_redirectUrisHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace SSOAdmin
68} // namespace Aws
AuthorizationCodeGrant & AddRedirectUris(RedirectUrisT &&value)
AWS_SSOADMIN_API AuthorizationCodeGrant(Aws::Utils::Json::JsonView jsonValue)
AuthorizationCodeGrant & WithRedirectUris(RedirectUrisT &&value)
const Aws::Vector< Aws::String > & GetRedirectUris() const
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSOADMIN_API AuthorizationCodeGrant & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API AuthorizationCodeGrant()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue