/** * 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 #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ManagedGrafana { namespace Model { /** *

A structure that contains some information about one workspace in the * account.

See Also:

AWS * API Reference

*/ class WorkspaceSummary { public: AWS_MANAGEDGRAFANA_API WorkspaceSummary(); AWS_MANAGEDGRAFANA_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDGRAFANA_API WorkspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline const AuthenticationSummary& GetAuthentication() const{ return m_authentication; } /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; } /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline void SetAuthentication(const AuthenticationSummary& value) { m_authenticationHasBeenSet = true; m_authentication = value; } /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline void SetAuthentication(AuthenticationSummary&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); } /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline WorkspaceSummary& WithAuthentication(const AuthenticationSummary& value) { SetAuthentication(value); return *this;} /** *

A structure containing information about the authentication methods used in * the workspace.

*/ inline WorkspaceSummary& WithAuthentication(AuthenticationSummary&& value) { SetAuthentication(std::move(value)); return *this;} /** *

The date that the workspace was created.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date that the workspace was created.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date that the workspace was created.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date that the workspace was created.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date that the workspace was created.

*/ inline WorkspaceSummary& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date that the workspace was created.

*/ inline WorkspaceSummary& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The customer-entered description of the workspace.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The customer-entered description of the workspace.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The customer-entered description of the workspace.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The customer-entered description of the workspace.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The customer-entered description of the workspace.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The customer-entered description of the workspace.

*/ inline WorkspaceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The customer-entered description of the workspace.

*/ inline WorkspaceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The customer-entered description of the workspace.

*/ inline WorkspaceSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline WorkspaceSummary& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline WorkspaceSummary& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The URL endpoint to use to access the Grafana console in the workspace.

*/ inline WorkspaceSummary& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The Grafana version that the workspace is running.

*/ inline const Aws::String& GetGrafanaVersion() const{ return m_grafanaVersion; } /** *

The Grafana version that the workspace is running.

*/ inline bool GrafanaVersionHasBeenSet() const { return m_grafanaVersionHasBeenSet; } /** *

The Grafana version that the workspace is running.

*/ inline void SetGrafanaVersion(const Aws::String& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = value; } /** *

The Grafana version that the workspace is running.

*/ inline void SetGrafanaVersion(Aws::String&& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = std::move(value); } /** *

The Grafana version that the workspace is running.

*/ inline void SetGrafanaVersion(const char* value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion.assign(value); } /** *

The Grafana version that the workspace is running.

*/ inline WorkspaceSummary& WithGrafanaVersion(const Aws::String& value) { SetGrafanaVersion(value); return *this;} /** *

The Grafana version that the workspace is running.

*/ inline WorkspaceSummary& WithGrafanaVersion(Aws::String&& value) { SetGrafanaVersion(std::move(value)); return *this;} /** *

The Grafana version that the workspace is running.

*/ inline WorkspaceSummary& WithGrafanaVersion(const char* value) { SetGrafanaVersion(value); return *this;} /** *

The unique ID of the workspace.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID of the workspace.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID of the workspace.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID of the workspace.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID of the workspace.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID of the workspace.

*/ inline WorkspaceSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID of the workspace.

*/ inline WorkspaceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID of the workspace.

*/ inline WorkspaceSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The most recent date that the workspace was modified.

*/ inline const Aws::Utils::DateTime& GetModified() const{ return m_modified; } /** *

The most recent date that the workspace was modified.

*/ inline bool ModifiedHasBeenSet() const { return m_modifiedHasBeenSet; } /** *

The most recent date that the workspace was modified.

*/ inline void SetModified(const Aws::Utils::DateTime& value) { m_modifiedHasBeenSet = true; m_modified = value; } /** *

The most recent date that the workspace was modified.

*/ inline void SetModified(Aws::Utils::DateTime&& value) { m_modifiedHasBeenSet = true; m_modified = std::move(value); } /** *

The most recent date that the workspace was modified.

*/ inline WorkspaceSummary& WithModified(const Aws::Utils::DateTime& value) { SetModified(value); return *this;} /** *

The most recent date that the workspace was modified.

*/ inline WorkspaceSummary& WithModified(Aws::Utils::DateTime&& value) { SetModified(std::move(value)); return *this;} /** *

The name of the workspace.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the workspace.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the workspace.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the workspace.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the workspace.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the workspace.

*/ inline WorkspaceSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the workspace.

*/ inline WorkspaceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the workspace.

*/ inline WorkspaceSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline const Aws::Vector& GetNotificationDestinations() const{ return m_notificationDestinations; } /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline bool NotificationDestinationsHasBeenSet() const { return m_notificationDestinationsHasBeenSet; } /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline void SetNotificationDestinations(const Aws::Vector& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations = value; } /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline void SetNotificationDestinations(Aws::Vector&& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations = std::move(value); } /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline WorkspaceSummary& WithNotificationDestinations(const Aws::Vector& value) { SetNotificationDestinations(value); return *this;} /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline WorkspaceSummary& WithNotificationDestinations(Aws::Vector&& value) { SetNotificationDestinations(std::move(value)); return *this;} /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline WorkspaceSummary& AddNotificationDestinations(const NotificationDestinationType& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations.push_back(value); return *this; } /** *

The Amazon Web Services notification channels that Amazon Managed Grafana can * automatically create IAM roles and permissions for, which allows Amazon Managed * Grafana to use these channels.

*/ inline WorkspaceSummary& AddNotificationDestinations(NotificationDestinationType&& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations.push_back(std::move(value)); return *this; } /** *

The current status of the workspace.

*/ inline const WorkspaceStatus& GetStatus() const{ return m_status; } /** *

The current status of the workspace.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the workspace.

*/ inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the workspace.

*/ inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the workspace.

*/ inline WorkspaceSummary& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} /** *

The current status of the workspace.

*/ inline WorkspaceSummary& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The list of tags associated with the workspace.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The list of tags associated with the workspace.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of tags associated with the workspace.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of tags associated with the workspace.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The list of tags associated with the workspace.

*/ inline WorkspaceSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AuthenticationSummary m_authentication; bool m_authenticationHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_grafanaVersion; bool m_grafanaVersionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_modified; bool m_modifiedHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_notificationDestinations; bool m_notificationDestinationsHasBeenSet = false; WorkspaceStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws