AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AuthenticationDescription.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/model/AwsSsoAuthentication.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/grafana/model/SamlAuthentication.h>
11#include <aws/grafana/model/AuthenticationProviderTypes.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ManagedGrafana
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MANAGEDGRAFANA_API AuthenticationDescription() = default;
39 AWS_MANAGEDGRAFANA_API AuthenticationDescription(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const AwsSsoAuthentication& GetAwsSso() const { return m_awsSso; }
50 inline bool AwsSsoHasBeenSet() const { return m_awsSsoHasBeenSet; }
51 template<typename AwsSsoT = AwsSsoAuthentication>
52 void SetAwsSso(AwsSsoT&& value) { m_awsSsoHasBeenSet = true; m_awsSso = std::forward<AwsSsoT>(value); }
53 template<typename AwsSsoT = AwsSsoAuthentication>
54 AuthenticationDescription& WithAwsSso(AwsSsoT&& value) { SetAwsSso(std::forward<AwsSsoT>(value)); return *this;}
56
58
63 inline const Aws::Vector<AuthenticationProviderTypes>& GetProviders() const { return m_providers; }
64 inline bool ProvidersHasBeenSet() const { return m_providersHasBeenSet; }
65 template<typename ProvidersT = Aws::Vector<AuthenticationProviderTypes>>
66 void SetProviders(ProvidersT&& value) { m_providersHasBeenSet = true; m_providers = std::forward<ProvidersT>(value); }
67 template<typename ProvidersT = Aws::Vector<AuthenticationProviderTypes>>
68 AuthenticationDescription& WithProviders(ProvidersT&& value) { SetProviders(std::forward<ProvidersT>(value)); return *this;}
69 inline AuthenticationDescription& AddProviders(AuthenticationProviderTypes value) { m_providersHasBeenSet = true; m_providers.push_back(value); return *this; }
71
73
78 inline const SamlAuthentication& GetSaml() const { return m_saml; }
79 inline bool SamlHasBeenSet() const { return m_samlHasBeenSet; }
80 template<typename SamlT = SamlAuthentication>
81 void SetSaml(SamlT&& value) { m_samlHasBeenSet = true; m_saml = std::forward<SamlT>(value); }
82 template<typename SamlT = SamlAuthentication>
83 AuthenticationDescription& WithSaml(SamlT&& value) { SetSaml(std::forward<SamlT>(value)); return *this;}
85 private:
86
87 AwsSsoAuthentication m_awsSso;
88 bool m_awsSsoHasBeenSet = false;
89
91 bool m_providersHasBeenSet = false;
92
93 SamlAuthentication m_saml;
94 bool m_samlHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ManagedGrafana
99} // namespace Aws
AWS_MANAGEDGRAFANA_API AuthenticationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API AuthenticationDescription()=default
const Aws::Vector< AuthenticationProviderTypes > & GetProviders() const
AWS_MANAGEDGRAFANA_API AuthenticationDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AuthenticationDescription & AddProviders(AuthenticationProviderTypes value)
AuthenticationDescription & WithSaml(SamlT &&value)
AuthenticationDescription & WithAwsSso(AwsSsoT &&value)
AuthenticationDescription & WithProviders(ProvidersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue