/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.managedgrafana.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A structure that contains some information about one workspace in the account. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class WorkspaceSummary implements Serializable, Cloneable, StructuredPojo { /** ** A structure containing information about the authentication methods used in the workspace. *
*/ private AuthenticationSummary authentication; /** ** The date that the workspace was created. *
*/ private java.util.Date created; /** ** The customer-entered description of the workspace. *
*/ private String description; /** ** The URL endpoint to use to access the Grafana console in the workspace. *
*/ private String endpoint; /** ** The Grafana version that the workspace is running. *
*/ private String grafanaVersion; /** ** The unique ID of the workspace. *
*/ private String id; /** ** The most recent date that the workspace was modified. *
*/ private java.util.Date modified; /** ** The name of the workspace. *
*/ private String name; /** ** 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. *
*/ private java.util.List* The current status of the workspace. *
*/ private String status; /** ** The list of tags associated with the workspace. *
*/ private java.util.Map* A structure containing information about the authentication methods used in the workspace. *
* * @param authentication * A structure containing information about the authentication methods used in the workspace. */ public void setAuthentication(AuthenticationSummary authentication) { this.authentication = authentication; } /** ** A structure containing information about the authentication methods used in the workspace. *
* * @return A structure containing information about the authentication methods used in the workspace. */ public AuthenticationSummary getAuthentication() { return this.authentication; } /** ** A structure containing information about the authentication methods used in the workspace. *
* * @param authentication * A structure containing information about the authentication methods used in the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withAuthentication(AuthenticationSummary authentication) { setAuthentication(authentication); return this; } /** ** The date that the workspace was created. *
* * @param created * The date that the workspace was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** ** The date that the workspace was created. *
* * @return The date that the workspace was created. */ public java.util.Date getCreated() { return this.created; } /** ** The date that the workspace was created. *
* * @param created * The date that the workspace was created. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withCreated(java.util.Date created) { setCreated(created); return this; } /** ** The customer-entered description of the workspace. *
* * @param description * The customer-entered description of the workspace. */ public void setDescription(String description) { this.description = description; } /** ** The customer-entered description of the workspace. *
* * @return The customer-entered description of the workspace. */ public String getDescription() { return this.description; } /** ** The customer-entered description of the workspace. *
* * @param description * The customer-entered description of the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withDescription(String description) { setDescription(description); return this; } /** ** The URL endpoint to use to access the Grafana console in the workspace. *
* * @param endpoint * The URL endpoint to use to access the Grafana console in the workspace. */ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } /** ** The URL endpoint to use to access the Grafana console in the workspace. *
* * @return The URL endpoint to use to access the Grafana console in the workspace. */ public String getEndpoint() { return this.endpoint; } /** ** The URL endpoint to use to access the Grafana console in the workspace. *
* * @param endpoint * The URL endpoint to use to access the Grafana console in the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withEndpoint(String endpoint) { setEndpoint(endpoint); return this; } /** ** The Grafana version that the workspace is running. *
* * @param grafanaVersion * The Grafana version that the workspace is running. */ public void setGrafanaVersion(String grafanaVersion) { this.grafanaVersion = grafanaVersion; } /** ** The Grafana version that the workspace is running. *
* * @return The Grafana version that the workspace is running. */ public String getGrafanaVersion() { return this.grafanaVersion; } /** ** The Grafana version that the workspace is running. *
* * @param grafanaVersion * The Grafana version that the workspace is running. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withGrafanaVersion(String grafanaVersion) { setGrafanaVersion(grafanaVersion); return this; } /** ** The unique ID of the workspace. *
* * @param id * The unique ID of the workspace. */ public void setId(String id) { this.id = id; } /** ** The unique ID of the workspace. *
* * @return The unique ID of the workspace. */ public String getId() { return this.id; } /** ** The unique ID of the workspace. *
* * @param id * The unique ID of the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withId(String id) { setId(id); return this; } /** ** The most recent date that the workspace was modified. *
* * @param modified * The most recent date that the workspace was modified. */ public void setModified(java.util.Date modified) { this.modified = modified; } /** ** The most recent date that the workspace was modified. *
* * @return The most recent date that the workspace was modified. */ public java.util.Date getModified() { return this.modified; } /** ** The most recent date that the workspace was modified. *
* * @param modified * The most recent date that the workspace was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withModified(java.util.Date modified) { setModified(modified); return this; } /** ** The name of the workspace. *
* * @param name * The name of the workspace. */ public void setName(String name) { this.name = name; } /** ** The name of the workspace. *
* * @return The name of the workspace. */ public String getName() { return this.name; } /** ** The name of the workspace. *
* * @param name * The name of the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withName(String name) { setName(name); 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. *
* * @return 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. * @see NotificationDestinationType */ public java.util.List* 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. *
* * @param 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. * @see NotificationDestinationType */ public void setNotificationDestinations(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNotificationDestinations(java.util.Collection)} or * {@link #withNotificationDestinations(java.util.Collection)} if you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationDestinationType */ public WorkspaceSummary withNotificationDestinations(String... notificationDestinations) { if (this.notificationDestinations == null) { setNotificationDestinations(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationDestinationType */ public WorkspaceSummary withNotificationDestinations(java.util.Collection* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationDestinationType */ public WorkspaceSummary withNotificationDestinations(NotificationDestinationType... notificationDestinations) { java.util.ArrayList* The current status of the workspace. *
* * @param status * The current status of the workspace. * @see WorkspaceStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the workspace. *
* * @return The current status of the workspace. * @see WorkspaceStatus */ public String getStatus() { return this.status; } /** ** The current status of the workspace. *
* * @param status * The current status of the workspace. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkspaceStatus */ public WorkspaceSummary withStatus(String status) { setStatus(status); return this; } /** ** The current status of the workspace. *
* * @param status * The current status of the workspace. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkspaceStatus */ public WorkspaceSummary withStatus(WorkspaceStatus status) { this.status = status.toString(); return this; } /** ** The list of tags associated with the workspace. *
* * @return The list of tags associated with the workspace. */ public java.util.Map* The list of tags associated with the workspace. *
* * @param tags * The list of tags associated with the workspace. */ public void setTags(java.util.Map* The list of tags associated with the workspace. *
* * @param tags * The list of tags associated with the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkspaceSummary withTags(java.util.Map