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

com.amazonaws.services.quicksight.model.CustomContentConfiguration 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 configuration of a CustomContentVisual. *

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

* The input URL that links to the custom content that you want in the custom visual. *

*/ private String contentUrl; /** *

* The content type of the custom content visual. You can use this to have the visual render as an image. *

*/ private String contentType; /** *

* The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. *

*/ private String imageScaling; /** *

* The general visual interactions setup for a visual. *

*/ private VisualInteractionOptions interactions; /** *

* The input URL that links to the custom content that you want in the custom visual. *

* * @param contentUrl * The input URL that links to the custom content that you want in the custom visual. */ public void setContentUrl(String contentUrl) { this.contentUrl = contentUrl; } /** *

* The input URL that links to the custom content that you want in the custom visual. *

* * @return The input URL that links to the custom content that you want in the custom visual. */ public String getContentUrl() { return this.contentUrl; } /** *

* The input URL that links to the custom content that you want in the custom visual. *

* * @param contentUrl * The input URL that links to the custom content that you want in the custom visual. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomContentConfiguration withContentUrl(String contentUrl) { setContentUrl(contentUrl); return this; } /** *

* The content type of the custom content visual. You can use this to have the visual render as an image. *

* * @param contentType * The content type of the custom content visual. You can use this to have the visual render as an image. * @see CustomContentType */ public void setContentType(String contentType) { this.contentType = contentType; } /** *

* The content type of the custom content visual. You can use this to have the visual render as an image. *

* * @return The content type of the custom content visual. You can use this to have the visual render as an image. * @see CustomContentType */ public String getContentType() { return this.contentType; } /** *

* The content type of the custom content visual. You can use this to have the visual render as an image. *

* * @param contentType * The content type of the custom content visual. You can use this to have the visual render as an image. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomContentType */ public CustomContentConfiguration withContentType(String contentType) { setContentType(contentType); return this; } /** *

* The content type of the custom content visual. You can use this to have the visual render as an image. *

* * @param contentType * The content type of the custom content visual. You can use this to have the visual render as an image. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomContentType */ public CustomContentConfiguration withContentType(CustomContentType contentType) { this.contentType = contentType.toString(); return this; } /** *

* The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. *

* * @param imageScaling * The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. * @see CustomContentImageScalingConfiguration */ public void setImageScaling(String imageScaling) { this.imageScaling = imageScaling; } /** *

* The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. *

* * @return The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. * @see CustomContentImageScalingConfiguration */ public String getImageScaling() { return this.imageScaling; } /** *

* The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. *

* * @param imageScaling * The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomContentImageScalingConfiguration */ public CustomContentConfiguration withImageScaling(String imageScaling) { setImageScaling(imageScaling); return this; } /** *

* The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. *

* * @param imageScaling * The sizing options for the size of the custom content visual. This structure is required when the * ContentType of the visual is 'IMAGE'. * @return Returns a reference to this object so that method calls can be chained together. * @see CustomContentImageScalingConfiguration */ public CustomContentConfiguration withImageScaling(CustomContentImageScalingConfiguration imageScaling) { this.imageScaling = imageScaling.toString(); return this; } /** *

* The general visual interactions setup for a visual. *

* * @param interactions * The general visual interactions setup for a visual. */ public void setInteractions(VisualInteractionOptions interactions) { this.interactions = interactions; } /** *

* The general visual interactions setup for a visual. *

* * @return The general visual interactions setup for a visual. */ public VisualInteractionOptions getInteractions() { return this.interactions; } /** *

* The general visual interactions setup for a visual. *

* * @param interactions * The general visual interactions setup for a visual. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomContentConfiguration withInteractions(VisualInteractionOptions interactions) { setInteractions(interactions); 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 (getContentUrl() != null) sb.append("ContentUrl: ").append(getContentUrl()).append(","); if (getContentType() != null) sb.append("ContentType: ").append(getContentType()).append(","); if (getImageScaling() != null) sb.append("ImageScaling: ").append(getImageScaling()).append(","); if (getInteractions() != null) sb.append("Interactions: ").append(getInteractions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CustomContentConfiguration == false) return false; CustomContentConfiguration other = (CustomContentConfiguration) obj; if (other.getContentUrl() == null ^ this.getContentUrl() == null) return false; if (other.getContentUrl() != null && other.getContentUrl().equals(this.getContentUrl()) == false) return false; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; if (other.getImageScaling() == null ^ this.getImageScaling() == null) return false; if (other.getImageScaling() != null && other.getImageScaling().equals(this.getImageScaling()) == false) return false; if (other.getInteractions() == null ^ this.getInteractions() == null) return false; if (other.getInteractions() != null && other.getInteractions().equals(this.getInteractions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContentUrl() == null) ? 0 : getContentUrl().hashCode()); hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); hashCode = prime * hashCode + ((getImageScaling() == null) ? 0 : getImageScaling().hashCode()); hashCode = prime * hashCode + ((getInteractions() == null) ? 0 : getInteractions().hashCode()); return hashCode; } @Override public CustomContentConfiguration clone() { try { return (CustomContentConfiguration) 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.CustomContentConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy