/* * 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.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The type of experience you want to embed. For anonymous users, you can embed Amazon QuickSight dashboards. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnonymousUserEmbeddingExperienceConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The type of embedding experience. In this case, Amazon QuickSight dashboards. *
*/ private AnonymousUserDashboardEmbeddingConfiguration dashboard; /** ** The type of embedding experience. In this case, Amazon QuickSight visuals. *
*/ private AnonymousUserDashboardVisualEmbeddingConfiguration dashboardVisual; /** ** The Q search bar that you want to use for anonymous user embedding. *
*/ private AnonymousUserQSearchBarEmbeddingConfiguration qSearchBar; /** ** The type of embedding experience. In this case, Amazon QuickSight dashboards. *
* * @param dashboard * The type of embedding experience. In this case, Amazon QuickSight dashboards. */ public void setDashboard(AnonymousUserDashboardEmbeddingConfiguration dashboard) { this.dashboard = dashboard; } /** ** The type of embedding experience. In this case, Amazon QuickSight dashboards. *
* * @return The type of embedding experience. In this case, Amazon QuickSight dashboards. */ public AnonymousUserDashboardEmbeddingConfiguration getDashboard() { return this.dashboard; } /** ** The type of embedding experience. In this case, Amazon QuickSight dashboards. *
* * @param dashboard * The type of embedding experience. In this case, Amazon QuickSight dashboards. * @return Returns a reference to this object so that method calls can be chained together. */ public AnonymousUserEmbeddingExperienceConfiguration withDashboard(AnonymousUserDashboardEmbeddingConfiguration dashboard) { setDashboard(dashboard); return this; } /** ** The type of embedding experience. In this case, Amazon QuickSight visuals. *
* * @param dashboardVisual * The type of embedding experience. In this case, Amazon QuickSight visuals. */ public void setDashboardVisual(AnonymousUserDashboardVisualEmbeddingConfiguration dashboardVisual) { this.dashboardVisual = dashboardVisual; } /** ** The type of embedding experience. In this case, Amazon QuickSight visuals. *
* * @return The type of embedding experience. In this case, Amazon QuickSight visuals. */ public AnonymousUserDashboardVisualEmbeddingConfiguration getDashboardVisual() { return this.dashboardVisual; } /** ** The type of embedding experience. In this case, Amazon QuickSight visuals. *
* * @param dashboardVisual * The type of embedding experience. In this case, Amazon QuickSight visuals. * @return Returns a reference to this object so that method calls can be chained together. */ public AnonymousUserEmbeddingExperienceConfiguration withDashboardVisual(AnonymousUserDashboardVisualEmbeddingConfiguration dashboardVisual) { setDashboardVisual(dashboardVisual); return this; } /** ** The Q search bar that you want to use for anonymous user embedding. *
* * @param qSearchBar * The Q search bar that you want to use for anonymous user embedding. */ public void setQSearchBar(AnonymousUserQSearchBarEmbeddingConfiguration qSearchBar) { this.qSearchBar = qSearchBar; } /** ** The Q search bar that you want to use for anonymous user embedding. *
* * @return The Q search bar that you want to use for anonymous user embedding. */ public AnonymousUserQSearchBarEmbeddingConfiguration getQSearchBar() { return this.qSearchBar; } /** ** The Q search bar that you want to use for anonymous user embedding. *
* * @param qSearchBar * The Q search bar that you want to use for anonymous user embedding. * @return Returns a reference to this object so that method calls can be chained together. */ public AnonymousUserEmbeddingExperienceConfiguration withQSearchBar(AnonymousUserQSearchBarEmbeddingConfiguration qSearchBar) { setQSearchBar(qSearchBar); 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 (getDashboard() != null) sb.append("Dashboard: ").append(getDashboard()).append(","); if (getDashboardVisual() != null) sb.append("DashboardVisual: ").append(getDashboardVisual()).append(","); if (getQSearchBar() != null) sb.append("QSearchBar: ").append(getQSearchBar()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AnonymousUserEmbeddingExperienceConfiguration == false) return false; AnonymousUserEmbeddingExperienceConfiguration other = (AnonymousUserEmbeddingExperienceConfiguration) obj; if (other.getDashboard() == null ^ this.getDashboard() == null) return false; if (other.getDashboard() != null && other.getDashboard().equals(this.getDashboard()) == false) return false; if (other.getDashboardVisual() == null ^ this.getDashboardVisual() == null) return false; if (other.getDashboardVisual() != null && other.getDashboardVisual().equals(this.getDashboardVisual()) == false) return false; if (other.getQSearchBar() == null ^ this.getQSearchBar() == null) return false; if (other.getQSearchBar() != null && other.getQSearchBar().equals(this.getQSearchBar()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDashboard() == null) ? 0 : getDashboard().hashCode()); hashCode = prime * hashCode + ((getDashboardVisual() == null) ? 0 : getDashboardVisual().hashCode()); hashCode = prime * hashCode + ((getQSearchBar() == null) ? 0 : getQSearchBar().hashCode()); return hashCode; } @Override public AnonymousUserEmbeddingExperienceConfiguration clone() { try { return (AnonymousUserEmbeddingExperienceConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.quicksight.model.transform.AnonymousUserEmbeddingExperienceConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }