/* * 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; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeWorkspaceConfigurationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your Grafana * workspace. *

*/ private String configuration; /** *

* The supported Grafana version for the workspace. *

*/ private String grafanaVersion; /** *

* The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your Grafana * workspace. *

*

* This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *

*

* The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *

* * @param configuration * The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your * Grafana workspace. */ public void setConfiguration(String configuration) { this.configuration = configuration; } /** *

* The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your Grafana * workspace. *

*

* This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *

* * @return The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your * Grafana workspace. */ public String getConfiguration() { return this.configuration; } /** *

* The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your Grafana * workspace. *

*

* This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For * example: '{"key": "value"}'. *

*

* The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. *

* * @param configuration * The configuration string for the workspace that you requested. For more information about the format and * configuration options available, see Working in your * Grafana workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeWorkspaceConfigurationResult withConfiguration(String configuration) { setConfiguration(configuration); return this; } /** *

* The supported Grafana version for the workspace. *

* * @param grafanaVersion * The supported Grafana version for the workspace. */ public void setGrafanaVersion(String grafanaVersion) { this.grafanaVersion = grafanaVersion; } /** *

* The supported Grafana version for the workspace. *

* * @return The supported Grafana version for the workspace. */ public String getGrafanaVersion() { return this.grafanaVersion; } /** *

* The supported Grafana version for the workspace. *

* * @param grafanaVersion * The supported Grafana version for the workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeWorkspaceConfigurationResult withGrafanaVersion(String grafanaVersion) { setGrafanaVersion(grafanaVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()).append(","); if (getGrafanaVersion() != null) sb.append("GrafanaVersion: ").append(getGrafanaVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeWorkspaceConfigurationResult == false) return false; DescribeWorkspaceConfigurationResult other = (DescribeWorkspaceConfigurationResult) obj; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; if (other.getGrafanaVersion() == null ^ this.getGrafanaVersion() == null) return false; if (other.getGrafanaVersion() != null && other.getGrafanaVersion().equals(this.getGrafanaVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); hashCode = prime * hashCode + ((getGrafanaVersion() == null) ? 0 : getGrafanaVersion().hashCode()); return hashCode; } @Override public DescribeWorkspaceConfigurationResult clone() { try { return (DescribeWorkspaceConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }