
com.amazonaws.services.quicksight.model.AssetBundleImportJobOverrideParameters 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;
/**
*
* A list of overrides that modify the asset bundle resource configuration before the resource is imported.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AssetBundleImportJobOverrideParameters implements Serializable, Cloneable, StructuredPojo {
/**
*
* An optional structure that configures resource ID overrides to be applied within the import job.
*
*/
private AssetBundleImportJobResourceIdOverrideConfiguration resourceIdOverrideConfiguration;
/**
*
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that is
* imported.
*
*/
private java.util.List vPCConnections;
/**
*
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle that is
* imported.
*
*/
private java.util.List refreshSchedules;
/**
*
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*
*/
private java.util.List dataSources;
/**
*
* A list of overrides for any DataSet
resources that are present in the asset bundle that is imported.
*
*/
private java.util.List dataSets;
/**
*
* A list of overrides for any Theme
resources that are present in the asset bundle that is imported.
*
*/
private java.util.List themes;
/**
*
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*
*/
private java.util.List analyses;
/**
*
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*
*/
private java.util.List dashboards;
/**
*
* An optional structure that configures resource ID overrides to be applied within the import job.
*
*
* @param resourceIdOverrideConfiguration
* An optional structure that configures resource ID overrides to be applied within the import job.
*/
public void setResourceIdOverrideConfiguration(AssetBundleImportJobResourceIdOverrideConfiguration resourceIdOverrideConfiguration) {
this.resourceIdOverrideConfiguration = resourceIdOverrideConfiguration;
}
/**
*
* An optional structure that configures resource ID overrides to be applied within the import job.
*
*
* @return An optional structure that configures resource ID overrides to be applied within the import job.
*/
public AssetBundleImportJobResourceIdOverrideConfiguration getResourceIdOverrideConfiguration() {
return this.resourceIdOverrideConfiguration;
}
/**
*
* An optional structure that configures resource ID overrides to be applied within the import job.
*
*
* @param resourceIdOverrideConfiguration
* An optional structure that configures resource ID overrides to be applied within the import job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withResourceIdOverrideConfiguration(
AssetBundleImportJobResourceIdOverrideConfiguration resourceIdOverrideConfiguration) {
setResourceIdOverrideConfiguration(resourceIdOverrideConfiguration);
return this;
}
/**
*
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that is
* imported.
*
*
* @return A list of overrides for any VPCConnection
resources that are present in the asset bundle
* that is imported.
*/
public java.util.List getVPCConnections() {
return vPCConnections;
}
/**
*
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that is
* imported.
*
*
* @param vPCConnections
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that
* is imported.
*/
public void setVPCConnections(java.util.Collection vPCConnections) {
if (vPCConnections == null) {
this.vPCConnections = null;
return;
}
this.vPCConnections = new java.util.ArrayList(vPCConnections);
}
/**
*
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that is
* imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVPCConnections(java.util.Collection)} or {@link #withVPCConnections(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param vPCConnections
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that
* is imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withVPCConnections(AssetBundleImportJobVPCConnectionOverrideParameters... vPCConnections) {
if (this.vPCConnections == null) {
setVPCConnections(new java.util.ArrayList(vPCConnections.length));
}
for (AssetBundleImportJobVPCConnectionOverrideParameters ele : vPCConnections) {
this.vPCConnections.add(ele);
}
return this;
}
/**
*
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that is
* imported.
*
*
* @param vPCConnections
* A list of overrides for any VPCConnection
resources that are present in the asset bundle that
* is imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withVPCConnections(java.util.Collection vPCConnections) {
setVPCConnections(vPCConnections);
return this;
}
/**
*
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle that is
* imported.
*
*
* @return A list of overrides for any RefreshSchedule
resources that are present in the asset bundle
* that is imported.
*/
public java.util.List getRefreshSchedules() {
return refreshSchedules;
}
/**
*
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle that is
* imported.
*
*
* @param refreshSchedules
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle
* that is imported.
*/
public void setRefreshSchedules(java.util.Collection refreshSchedules) {
if (refreshSchedules == null) {
this.refreshSchedules = null;
return;
}
this.refreshSchedules = new java.util.ArrayList(refreshSchedules);
}
/**
*
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle that is
* imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRefreshSchedules(java.util.Collection)} or {@link #withRefreshSchedules(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param refreshSchedules
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle
* that is imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withRefreshSchedules(AssetBundleImportJobRefreshScheduleOverrideParameters... refreshSchedules) {
if (this.refreshSchedules == null) {
setRefreshSchedules(new java.util.ArrayList(refreshSchedules.length));
}
for (AssetBundleImportJobRefreshScheduleOverrideParameters ele : refreshSchedules) {
this.refreshSchedules.add(ele);
}
return this;
}
/**
*
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle that is
* imported.
*
*
* @param refreshSchedules
* A list of overrides for any RefreshSchedule
resources that are present in the asset bundle
* that is imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withRefreshSchedules(
java.util.Collection refreshSchedules) {
setRefreshSchedules(refreshSchedules);
return this;
}
/**
*
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*
*
* @return A list of overrides for any DataSource
resources that are present in the asset bundle that
* is imported.
*/
public java.util.List getDataSources() {
return dataSources;
}
/**
*
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*
*
* @param dataSources
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*/
public void setDataSources(java.util.Collection dataSources) {
if (dataSources == null) {
this.dataSources = null;
return;
}
this.dataSources = new java.util.ArrayList(dataSources);
}
/**
*
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dataSources
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDataSources(AssetBundleImportJobDataSourceOverrideParameters... dataSources) {
if (this.dataSources == null) {
setDataSources(new java.util.ArrayList(dataSources.length));
}
for (AssetBundleImportJobDataSourceOverrideParameters ele : dataSources) {
this.dataSources.add(ele);
}
return this;
}
/**
*
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
*
*
* @param dataSources
* A list of overrides for any DataSource
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDataSources(java.util.Collection dataSources) {
setDataSources(dataSources);
return this;
}
/**
*
* A list of overrides for any DataSet
resources that are present in the asset bundle that is imported.
*
*
* @return A list of overrides for any DataSet
resources that are present in the asset bundle that is
* imported.
*/
public java.util.List getDataSets() {
return dataSets;
}
/**
*
* A list of overrides for any DataSet
resources that are present in the asset bundle that is imported.
*
*
* @param dataSets
* A list of overrides for any DataSet
resources that are present in the asset bundle that is
* imported.
*/
public void setDataSets(java.util.Collection dataSets) {
if (dataSets == null) {
this.dataSets = null;
return;
}
this.dataSets = new java.util.ArrayList(dataSets);
}
/**
*
* A list of overrides for any DataSet
resources that are present in the asset bundle that is imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataSets(java.util.Collection)} or {@link #withDataSets(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param dataSets
* A list of overrides for any DataSet
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDataSets(AssetBundleImportJobDataSetOverrideParameters... dataSets) {
if (this.dataSets == null) {
setDataSets(new java.util.ArrayList(dataSets.length));
}
for (AssetBundleImportJobDataSetOverrideParameters ele : dataSets) {
this.dataSets.add(ele);
}
return this;
}
/**
*
* A list of overrides for any DataSet
resources that are present in the asset bundle that is imported.
*
*
* @param dataSets
* A list of overrides for any DataSet
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDataSets(java.util.Collection dataSets) {
setDataSets(dataSets);
return this;
}
/**
*
* A list of overrides for any Theme
resources that are present in the asset bundle that is imported.
*
*
* @return A list of overrides for any Theme
resources that are present in the asset bundle that is
* imported.
*/
public java.util.List getThemes() {
return themes;
}
/**
*
* A list of overrides for any Theme
resources that are present in the asset bundle that is imported.
*
*
* @param themes
* A list of overrides for any Theme
resources that are present in the asset bundle that is
* imported.
*/
public void setThemes(java.util.Collection themes) {
if (themes == null) {
this.themes = null;
return;
}
this.themes = new java.util.ArrayList(themes);
}
/**
*
* A list of overrides for any Theme
resources that are present in the asset bundle that is imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setThemes(java.util.Collection)} or {@link #withThemes(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param themes
* A list of overrides for any Theme
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withThemes(AssetBundleImportJobThemeOverrideParameters... themes) {
if (this.themes == null) {
setThemes(new java.util.ArrayList(themes.length));
}
for (AssetBundleImportJobThemeOverrideParameters ele : themes) {
this.themes.add(ele);
}
return this;
}
/**
*
* A list of overrides for any Theme
resources that are present in the asset bundle that is imported.
*
*
* @param themes
* A list of overrides for any Theme
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withThemes(java.util.Collection themes) {
setThemes(themes);
return this;
}
/**
*
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*
*
* @return A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*/
public java.util.List getAnalyses() {
return analyses;
}
/**
*
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*
*
* @param analyses
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*/
public void setAnalyses(java.util.Collection analyses) {
if (analyses == null) {
this.analyses = null;
return;
}
this.analyses = new java.util.ArrayList(analyses);
}
/**
*
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAnalyses(java.util.Collection)} or {@link #withAnalyses(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param analyses
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withAnalyses(AssetBundleImportJobAnalysisOverrideParameters... analyses) {
if (this.analyses == null) {
setAnalyses(new java.util.ArrayList(analyses.length));
}
for (AssetBundleImportJobAnalysisOverrideParameters ele : analyses) {
this.analyses.add(ele);
}
return this;
}
/**
*
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
*
*
* @param analyses
* A list of overrides for any Analysis
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withAnalyses(java.util.Collection analyses) {
setAnalyses(analyses);
return this;
}
/**
*
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*
*
* @return A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*/
public java.util.List getDashboards() {
return dashboards;
}
/**
*
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*
*
* @param dashboards
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*/
public void setDashboards(java.util.Collection dashboards) {
if (dashboards == null) {
this.dashboards = null;
return;
}
this.dashboards = new java.util.ArrayList(dashboards);
}
/**
*
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDashboards(java.util.Collection)} or {@link #withDashboards(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dashboards
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDashboards(AssetBundleImportJobDashboardOverrideParameters... dashboards) {
if (this.dashboards == null) {
setDashboards(new java.util.ArrayList(dashboards.length));
}
for (AssetBundleImportJobDashboardOverrideParameters ele : dashboards) {
this.dashboards.add(ele);
}
return this;
}
/**
*
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
*
*
* @param dashboards
* A list of overrides for any Dashboard
resources that are present in the asset bundle that is
* imported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssetBundleImportJobOverrideParameters withDashboards(java.util.Collection dashboards) {
setDashboards(dashboards);
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 (getResourceIdOverrideConfiguration() != null)
sb.append("ResourceIdOverrideConfiguration: ").append(getResourceIdOverrideConfiguration()).append(",");
if (getVPCConnections() != null)
sb.append("VPCConnections: ").append(getVPCConnections()).append(",");
if (getRefreshSchedules() != null)
sb.append("RefreshSchedules: ").append(getRefreshSchedules()).append(",");
if (getDataSources() != null)
sb.append("DataSources: ").append(getDataSources()).append(",");
if (getDataSets() != null)
sb.append("DataSets: ").append(getDataSets()).append(",");
if (getThemes() != null)
sb.append("Themes: ").append(getThemes()).append(",");
if (getAnalyses() != null)
sb.append("Analyses: ").append(getAnalyses()).append(",");
if (getDashboards() != null)
sb.append("Dashboards: ").append(getDashboards());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AssetBundleImportJobOverrideParameters == false)
return false;
AssetBundleImportJobOverrideParameters other = (AssetBundleImportJobOverrideParameters) obj;
if (other.getResourceIdOverrideConfiguration() == null ^ this.getResourceIdOverrideConfiguration() == null)
return false;
if (other.getResourceIdOverrideConfiguration() != null
&& other.getResourceIdOverrideConfiguration().equals(this.getResourceIdOverrideConfiguration()) == false)
return false;
if (other.getVPCConnections() == null ^ this.getVPCConnections() == null)
return false;
if (other.getVPCConnections() != null && other.getVPCConnections().equals(this.getVPCConnections()) == false)
return false;
if (other.getRefreshSchedules() == null ^ this.getRefreshSchedules() == null)
return false;
if (other.getRefreshSchedules() != null && other.getRefreshSchedules().equals(this.getRefreshSchedules()) == false)
return false;
if (other.getDataSources() == null ^ this.getDataSources() == null)
return false;
if (other.getDataSources() != null && other.getDataSources().equals(this.getDataSources()) == false)
return false;
if (other.getDataSets() == null ^ this.getDataSets() == null)
return false;
if (other.getDataSets() != null && other.getDataSets().equals(this.getDataSets()) == false)
return false;
if (other.getThemes() == null ^ this.getThemes() == null)
return false;
if (other.getThemes() != null && other.getThemes().equals(this.getThemes()) == false)
return false;
if (other.getAnalyses() == null ^ this.getAnalyses() == null)
return false;
if (other.getAnalyses() != null && other.getAnalyses().equals(this.getAnalyses()) == false)
return false;
if (other.getDashboards() == null ^ this.getDashboards() == null)
return false;
if (other.getDashboards() != null && other.getDashboards().equals(this.getDashboards()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getResourceIdOverrideConfiguration() == null) ? 0 : getResourceIdOverrideConfiguration().hashCode());
hashCode = prime * hashCode + ((getVPCConnections() == null) ? 0 : getVPCConnections().hashCode());
hashCode = prime * hashCode + ((getRefreshSchedules() == null) ? 0 : getRefreshSchedules().hashCode());
hashCode = prime * hashCode + ((getDataSources() == null) ? 0 : getDataSources().hashCode());
hashCode = prime * hashCode + ((getDataSets() == null) ? 0 : getDataSets().hashCode());
hashCode = prime * hashCode + ((getThemes() == null) ? 0 : getThemes().hashCode());
hashCode = prime * hashCode + ((getAnalyses() == null) ? 0 : getAnalyses().hashCode());
hashCode = prime * hashCode + ((getDashboards() == null) ? 0 : getDashboards().hashCode());
return hashCode;
}
@Override
public AssetBundleImportJobOverrideParameters clone() {
try {
return (AssetBundleImportJobOverrideParameters) 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.AssetBundleImportJobOverrideParametersMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}