AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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
44 inline const Aws::Vector<AuthenticationProviderTypes>& GetProviders() const { return m_providers; }
45 inline bool ProvidersHasBeenSet() const { return m_providersHasBeenSet; }
46 template <typename ProvidersT = Aws::Vector<AuthenticationProviderTypes>>
47 void SetProviders(ProvidersT&& value) {
48 m_providersHasBeenSet = true;
49 m_providers = std::forward<ProvidersT>(value);
50 }
51 template <typename ProvidersT = Aws::Vector<AuthenticationProviderTypes>>
53 SetProviders(std::forward<ProvidersT>(value));
54 return *this;
55 }
57 m_providersHasBeenSet = true;
58 m_providers.push_back(value);
59 return *this;
60 }
62
64
69 inline const SamlAuthentication& GetSaml() const { return m_saml; }
70 inline bool SamlHasBeenSet() const { return m_samlHasBeenSet; }
71 template <typename SamlT = SamlAuthentication>
72 void SetSaml(SamlT&& value) {
73 m_samlHasBeenSet = true;
74 m_saml = std::forward<SamlT>(value);
75 }
76 template <typename SamlT = SamlAuthentication>
78 SetSaml(std::forward<SamlT>(value));
79 return *this;
80 }
82
84
88 inline const AwsSsoAuthentication& GetAwsSso() const { return m_awsSso; }
89 inline bool AwsSsoHasBeenSet() const { return m_awsSsoHasBeenSet; }
90 template <typename AwsSsoT = AwsSsoAuthentication>
91 void SetAwsSso(AwsSsoT&& value) {
92 m_awsSsoHasBeenSet = true;
93 m_awsSso = std::forward<AwsSsoT>(value);
94 }
95 template <typename AwsSsoT = AwsSsoAuthentication>
97 SetAwsSso(std::forward<AwsSsoT>(value));
98 return *this;
99 }
101 private:
103
104 SamlAuthentication m_saml;
105
106 AwsSsoAuthentication m_awsSso;
107 bool m_providersHasBeenSet = false;
108 bool m_samlHasBeenSet = false;
109 bool m_awsSsoHasBeenSet = 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