/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ManagedGrafana { namespace Model { /** */ class UpdateWorkspaceAuthenticationRequest : public ManagedGrafanaRequest { public: AWS_MANAGEDGRAFANA_API UpdateWorkspaceAuthenticationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspaceAuthentication"; } AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override; /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline const Aws::Vector& GetAuthenticationProviders() const{ return m_authenticationProviders; } /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline bool AuthenticationProvidersHasBeenSet() const { return m_authenticationProvidersHasBeenSet; } /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline void SetAuthenticationProviders(const Aws::Vector& value) { m_authenticationProvidersHasBeenSet = true; m_authenticationProviders = value; } /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline void SetAuthenticationProviders(Aws::Vector&& value) { m_authenticationProvidersHasBeenSet = true; m_authenticationProviders = std::move(value); } /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline UpdateWorkspaceAuthenticationRequest& WithAuthenticationProviders(const Aws::Vector& value) { SetAuthenticationProviders(value); return *this;} /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline UpdateWorkspaceAuthenticationRequest& WithAuthenticationProviders(Aws::Vector&& value) { SetAuthenticationProviders(std::move(value)); return *this;} /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline UpdateWorkspaceAuthenticationRequest& AddAuthenticationProviders(const AuthenticationProviderTypes& value) { m_authenticationProvidersHasBeenSet = true; m_authenticationProviders.push_back(value); return *this; } /** *

Specifies whether this workspace uses SAML 2.0, IAM Identity Center * (successor to Single Sign-On), or both to authenticate users for using the * Grafana console within a workspace. For more information, see User * authentication in Amazon Managed Grafana.

*/ inline UpdateWorkspaceAuthenticationRequest& AddAuthenticationProviders(AuthenticationProviderTypes&& value) { m_authenticationProvidersHasBeenSet = true; m_authenticationProviders.push_back(std::move(value)); return *this; } /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline const SamlConfiguration& GetSamlConfiguration() const{ return m_samlConfiguration; } /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline bool SamlConfigurationHasBeenSet() const { return m_samlConfigurationHasBeenSet; } /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline void SetSamlConfiguration(const SamlConfiguration& value) { m_samlConfigurationHasBeenSet = true; m_samlConfiguration = value; } /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline void SetSamlConfiguration(SamlConfiguration&& value) { m_samlConfigurationHasBeenSet = true; m_samlConfiguration = std::move(value); } /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline UpdateWorkspaceAuthenticationRequest& WithSamlConfiguration(const SamlConfiguration& value) { SetSamlConfiguration(value); return *this;} /** *

If the workspace uses SAML, use this structure to map SAML assertion * attributes to workspace user information and define which groups in the * assertion attribute are to have the Admin and Editor * roles in the workspace.

*/ inline UpdateWorkspaceAuthenticationRequest& WithSamlConfiguration(SamlConfiguration&& value) { SetSamlConfiguration(std::move(value)); return *this;} /** *

The ID of the workspace to update the authentication for.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The ID of the workspace to update the authentication for.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The ID of the workspace to update the authentication for.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The ID of the workspace to update the authentication for.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The ID of the workspace to update the authentication for.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The ID of the workspace to update the authentication for.

*/ inline UpdateWorkspaceAuthenticationRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The ID of the workspace to update the authentication for.

*/ inline UpdateWorkspaceAuthenticationRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The ID of the workspace to update the authentication for.

*/ inline UpdateWorkspaceAuthenticationRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} private: Aws::Vector m_authenticationProviders; bool m_authenticationProvidersHasBeenSet = false; SamlConfiguration m_samlConfiguration; bool m_samlConfigurationHasBeenSet = false; Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws