AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SamlConfiguration.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/grafana/model/AssertionAttributes.h>
10#include <aws/grafana/model/IdpMetadata.h>
11#include <aws/grafana/model/RoleValues.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ManagedGrafana
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MANAGEDGRAFANA_API SamlConfiguration();
40 AWS_MANAGEDGRAFANA_API SamlConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API SamlConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Vector<Aws::String>& GetAllowedOrganizations() const{ return m_allowedOrganizations; }
52 inline bool AllowedOrganizationsHasBeenSet() const { return m_allowedOrganizationsHasBeenSet; }
53 inline void SetAllowedOrganizations(const Aws::Vector<Aws::String>& value) { m_allowedOrganizationsHasBeenSet = true; m_allowedOrganizations = value; }
54 inline void SetAllowedOrganizations(Aws::Vector<Aws::String>&& value) { m_allowedOrganizationsHasBeenSet = true; m_allowedOrganizations = std::move(value); }
57 inline SamlConfiguration& AddAllowedOrganizations(const Aws::String& value) { m_allowedOrganizationsHasBeenSet = true; m_allowedOrganizations.push_back(value); return *this; }
58 inline SamlConfiguration& AddAllowedOrganizations(Aws::String&& value) { m_allowedOrganizationsHasBeenSet = true; m_allowedOrganizations.push_back(std::move(value)); return *this; }
59 inline SamlConfiguration& AddAllowedOrganizations(const char* value) { m_allowedOrganizationsHasBeenSet = true; m_allowedOrganizations.push_back(value); return *this; }
61
63
68 inline const AssertionAttributes& GetAssertionAttributes() const{ return m_assertionAttributes; }
69 inline bool AssertionAttributesHasBeenSet() const { return m_assertionAttributesHasBeenSet; }
70 inline void SetAssertionAttributes(const AssertionAttributes& value) { m_assertionAttributesHasBeenSet = true; m_assertionAttributes = value; }
71 inline void SetAssertionAttributes(AssertionAttributes&& value) { m_assertionAttributesHasBeenSet = true; m_assertionAttributes = std::move(value); }
73 inline SamlConfiguration& WithAssertionAttributes(AssertionAttributes&& value) { SetAssertionAttributes(std::move(value)); return *this;}
75
77
81 inline const IdpMetadata& GetIdpMetadata() const{ return m_idpMetadata; }
82 inline bool IdpMetadataHasBeenSet() const { return m_idpMetadataHasBeenSet; }
83 inline void SetIdpMetadata(const IdpMetadata& value) { m_idpMetadataHasBeenSet = true; m_idpMetadata = value; }
84 inline void SetIdpMetadata(IdpMetadata&& value) { m_idpMetadataHasBeenSet = true; m_idpMetadata = std::move(value); }
85 inline SamlConfiguration& WithIdpMetadata(const IdpMetadata& value) { SetIdpMetadata(value); return *this;}
86 inline SamlConfiguration& WithIdpMetadata(IdpMetadata&& value) { SetIdpMetadata(std::move(value)); return *this;}
88
90
94 inline int GetLoginValidityDuration() const{ return m_loginValidityDuration; }
95 inline bool LoginValidityDurationHasBeenSet() const { return m_loginValidityDurationHasBeenSet; }
96 inline void SetLoginValidityDuration(int value) { m_loginValidityDurationHasBeenSet = true; m_loginValidityDuration = value; }
97 inline SamlConfiguration& WithLoginValidityDuration(int value) { SetLoginValidityDuration(value); return *this;}
99
101
106 inline const RoleValues& GetRoleValues() const{ return m_roleValues; }
107 inline bool RoleValuesHasBeenSet() const { return m_roleValuesHasBeenSet; }
108 inline void SetRoleValues(const RoleValues& value) { m_roleValuesHasBeenSet = true; m_roleValues = value; }
109 inline void SetRoleValues(RoleValues&& value) { m_roleValuesHasBeenSet = true; m_roleValues = std::move(value); }
110 inline SamlConfiguration& WithRoleValues(const RoleValues& value) { SetRoleValues(value); return *this;}
111 inline SamlConfiguration& WithRoleValues(RoleValues&& value) { SetRoleValues(std::move(value)); return *this;}
113 private:
114
115 Aws::Vector<Aws::String> m_allowedOrganizations;
116 bool m_allowedOrganizationsHasBeenSet = false;
117
118 AssertionAttributes m_assertionAttributes;
119 bool m_assertionAttributesHasBeenSet = false;
120
121 IdpMetadata m_idpMetadata;
122 bool m_idpMetadataHasBeenSet = false;
123
124 int m_loginValidityDuration;
125 bool m_loginValidityDurationHasBeenSet = false;
126
127 RoleValues m_roleValues;
128 bool m_roleValuesHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace ManagedGrafana
133} // namespace Aws
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDGRAFANA_API SamlConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API SamlConfiguration(Aws::Utils::Json::JsonView jsonValue)
SamlConfiguration & AddAllowedOrganizations(const char *value)
const Aws::Vector< Aws::String > & GetAllowedOrganizations() const
SamlConfiguration & WithIdpMetadata(IdpMetadata &&value)
SamlConfiguration & WithAssertionAttributes(AssertionAttributes &&value)
void SetAllowedOrganizations(const Aws::Vector< Aws::String > &value)
void SetAllowedOrganizations(Aws::Vector< Aws::String > &&value)
SamlConfiguration & WithRoleValues(const RoleValues &value)
const AssertionAttributes & GetAssertionAttributes() const
SamlConfiguration & AddAllowedOrganizations(Aws::String &&value)
void SetAssertionAttributes(AssertionAttributes &&value)
void SetIdpMetadata(const IdpMetadata &value)
void SetAssertionAttributes(const AssertionAttributes &value)
SamlConfiguration & WithRoleValues(RoleValues &&value)
SamlConfiguration & WithAssertionAttributes(const AssertionAttributes &value)
SamlConfiguration & WithIdpMetadata(const IdpMetadata &value)
SamlConfiguration & AddAllowedOrganizations(const Aws::String &value)
SamlConfiguration & WithAllowedOrganizations(Aws::Vector< Aws::String > &&value)
SamlConfiguration & WithLoginValidityDuration(int value)
SamlConfiguration & WithAllowedOrganizations(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue