All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.quicksight.model.TopicVisual Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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 definition for a TopicVisual. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TopicVisual implements Serializable, Cloneable, StructuredPojo { /** *

* The visual ID for the TopicVisual. *

*/ private String visualId; /** *

* The role for the TopicVisual. *

*/ private String role; /** *

* The ir for the TopicVisual. *

*/ private TopicIR ir; /** *

* The supporting visuals for the TopicVisual. *

*/ private java.util.List supportingVisuals; /** *

* The visual ID for the TopicVisual. *

* * @param visualId * The visual ID for the TopicVisual. */ public void setVisualId(String visualId) { this.visualId = visualId; } /** *

* The visual ID for the TopicVisual. *

* * @return The visual ID for the TopicVisual. */ public String getVisualId() { return this.visualId; } /** *

* The visual ID for the TopicVisual. *

* * @param visualId * The visual ID for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicVisual withVisualId(String visualId) { setVisualId(visualId); return this; } /** *

* The role for the TopicVisual. *

* * @param role * The role for the TopicVisual. * @see VisualRole */ public void setRole(String role) { this.role = role; } /** *

* The role for the TopicVisual. *

* * @return The role for the TopicVisual. * @see VisualRole */ public String getRole() { return this.role; } /** *

* The role for the TopicVisual. *

* * @param role * The role for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. * @see VisualRole */ public TopicVisual withRole(String role) { setRole(role); return this; } /** *

* The role for the TopicVisual. *

* * @param role * The role for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. * @see VisualRole */ public TopicVisual withRole(VisualRole role) { this.role = role.toString(); return this; } /** *

* The ir for the TopicVisual. *

* * @param ir * The ir for the TopicVisual. */ public void setIr(TopicIR ir) { this.ir = ir; } /** *

* The ir for the TopicVisual. *

* * @return The ir for the TopicVisual. */ public TopicIR getIr() { return this.ir; } /** *

* The ir for the TopicVisual. *

* * @param ir * The ir for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicVisual withIr(TopicIR ir) { setIr(ir); return this; } /** *

* The supporting visuals for the TopicVisual. *

* * @return The supporting visuals for the TopicVisual. */ public java.util.List getSupportingVisuals() { return supportingVisuals; } /** *

* The supporting visuals for the TopicVisual. *

* * @param supportingVisuals * The supporting visuals for the TopicVisual. */ public void setSupportingVisuals(java.util.Collection supportingVisuals) { if (supportingVisuals == null) { this.supportingVisuals = null; return; } this.supportingVisuals = new java.util.ArrayList(supportingVisuals); } /** *

* The supporting visuals for the TopicVisual. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportingVisuals(java.util.Collection)} or {@link #withSupportingVisuals(java.util.Collection)} if * you want to override the existing values. *

* * @param supportingVisuals * The supporting visuals for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicVisual withSupportingVisuals(TopicVisual... supportingVisuals) { if (this.supportingVisuals == null) { setSupportingVisuals(new java.util.ArrayList(supportingVisuals.length)); } for (TopicVisual ele : supportingVisuals) { this.supportingVisuals.add(ele); } return this; } /** *

* The supporting visuals for the TopicVisual. *

* * @param supportingVisuals * The supporting visuals for the TopicVisual. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicVisual withSupportingVisuals(java.util.Collection supportingVisuals) { setSupportingVisuals(supportingVisuals); 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 (getVisualId() != null) sb.append("VisualId: ").append(getVisualId()).append(","); if (getRole() != null) sb.append("Role: ").append(getRole()).append(","); if (getIr() != null) sb.append("Ir: ").append(getIr()).append(","); if (getSupportingVisuals() != null) sb.append("SupportingVisuals: ").append(getSupportingVisuals()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TopicVisual == false) return false; TopicVisual other = (TopicVisual) obj; if (other.getVisualId() == null ^ this.getVisualId() == null) return false; if (other.getVisualId() != null && other.getVisualId().equals(this.getVisualId()) == false) return false; if (other.getRole() == null ^ this.getRole() == null) return false; if (other.getRole() != null && other.getRole().equals(this.getRole()) == false) return false; if (other.getIr() == null ^ this.getIr() == null) return false; if (other.getIr() != null && other.getIr().equals(this.getIr()) == false) return false; if (other.getSupportingVisuals() == null ^ this.getSupportingVisuals() == null) return false; if (other.getSupportingVisuals() != null && other.getSupportingVisuals().equals(this.getSupportingVisuals()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVisualId() == null) ? 0 : getVisualId().hashCode()); hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); hashCode = prime * hashCode + ((getIr() == null) ? 0 : getIr().hashCode()); hashCode = prime * hashCode + ((getSupportingVisuals() == null) ? 0 : getSupportingVisuals().hashCode()); return hashCode; } @Override public TopicVisual clone() { try { return (TopicVisual) 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.TopicVisualMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy