AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AuthenticationDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/grafana/ManagedGrafana_EXPORTS.h>
9#include <aws/grafana/model/AuthenticationProviderTypes.h>
10#include <aws/grafana/model/AwsSsoAuthentication.h>
11#include <aws/grafana/model/SamlAuthentication.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ManagedGrafana {
23namespace Model {
24
32 public:
33 AWS_MANAGEDGRAFANA_API AuthenticationDescription() = default;
34 AWS_MANAGEDGRAFANA_API AuthenticationDescription(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const AwsSsoAuthentication& GetAwsSso() const { return m_awsSso; }
44 inline bool AwsSsoHasBeenSet() const { return m_awsSsoHasBeenSet; }
45 template <typename AwsSsoT = AwsSsoAuthentication>
46 void SetAwsSso(AwsSsoT&& value) {
47 m_awsSsoHasBeenSet = true;
48 m_awsSso = std::forward<AwsSsoT>(value);
49 }
50 template <typename AwsSsoT = AwsSsoAuthentication>
52 SetAwsSso(std::forward<AwsSsoT>(value));
53 return *this;
54 }
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) {
67 m_providersHasBeenSet = true;
68 m_providers = std::forward<ProvidersT>(value);
69 }
70 template <typename ProvidersT = Aws::Vector<AuthenticationProviderTypes>>
72 SetProviders(std::forward<ProvidersT>(value));
73 return *this;
74 }
76 m_providersHasBeenSet = true;
77 m_providers.push_back(value);
78 return *this;
79 }
81
83
88 inline const SamlAuthentication& GetSaml() const { return m_saml; }
89 inline bool SamlHasBeenSet() const { return m_samlHasBeenSet; }
90 template <typename SamlT = SamlAuthentication>
91 void SetSaml(SamlT&& value) {
92 m_samlHasBeenSet = true;
93 m_saml = std::forward<SamlT>(value);
94 }
95 template <typename SamlT = SamlAuthentication>
97 SetSaml(std::forward<SamlT>(value));
98 return *this;
99 }
101 private:
102 AwsSsoAuthentication m_awsSso;
103
105
106 SamlAuthentication m_saml;
107 bool m_awsSsoHasBeenSet = false;
108 bool m_providersHasBeenSet = false;
109 bool m_samlHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ManagedGrafana
114} // 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