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

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

Go to download

The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service

The newest version!
/*
 * 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 structure that contains the override permission configurations that modify the permissions for specified resources * before the resource is imported. *

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

* A list of permissions overrides for any DataSource resources that are present in the asset bundle * that is imported. *

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

* A list of permissions overrides for any DataSet resources that are present in the asset bundle that * is imported. *

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

* A list of permissions overrides for any Theme resources that are present in the asset bundle that is * imported. *

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

* A list of permissions overrides for any Analysis resources that are present in the asset bundle that * is imported. *

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

* A list of permissions overrides for any Dashboard resources that are present in the asset bundle * that is imported. *

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

* A list of permissions overrides for any DataSource resources that are present in the asset bundle * that is imported. *

* * @return A list of permissions 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 permissions overrides for any DataSource resources that are present in the asset bundle * that is imported. *

* * @param dataSources * A list of permissions 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 permissions 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 permissions 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 AssetBundleImportJobOverridePermissions withDataSources(AssetBundleImportJobDataSourceOverridePermissions... dataSources) { if (this.dataSources == null) { setDataSources(new java.util.ArrayList(dataSources.length)); } for (AssetBundleImportJobDataSourceOverridePermissions ele : dataSources) { this.dataSources.add(ele); } return this; } /** *

* A list of permissions overrides for any DataSource resources that are present in the asset bundle * that is imported. *

* * @param dataSources * A list of permissions 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 AssetBundleImportJobOverridePermissions withDataSources(java.util.Collection dataSources) { setDataSources(dataSources); return this; } /** *

* A list of permissions overrides for any DataSet resources that are present in the asset bundle that * is imported. *

* * @return A list of permissions 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 permissions overrides for any DataSet resources that are present in the asset bundle that * is imported. *

* * @param dataSets * A list of permissions 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 permissions 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 permissions 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 AssetBundleImportJobOverridePermissions withDataSets(AssetBundleImportJobDataSetOverridePermissions... dataSets) { if (this.dataSets == null) { setDataSets(new java.util.ArrayList(dataSets.length)); } for (AssetBundleImportJobDataSetOverridePermissions ele : dataSets) { this.dataSets.add(ele); } return this; } /** *

* A list of permissions overrides for any DataSet resources that are present in the asset bundle that * is imported. *

* * @param dataSets * A list of permissions 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 AssetBundleImportJobOverridePermissions withDataSets(java.util.Collection dataSets) { setDataSets(dataSets); return this; } /** *

* A list of permissions overrides for any Theme resources that are present in the asset bundle that is * imported. *

* * @return A list of permissions 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 permissions overrides for any Theme resources that are present in the asset bundle that is * imported. *

* * @param themes * A list of permissions 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 permissions 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 permissions 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 AssetBundleImportJobOverridePermissions withThemes(AssetBundleImportJobThemeOverridePermissions... themes) { if (this.themes == null) { setThemes(new java.util.ArrayList(themes.length)); } for (AssetBundleImportJobThemeOverridePermissions ele : themes) { this.themes.add(ele); } return this; } /** *

* A list of permissions overrides for any Theme resources that are present in the asset bundle that is * imported. *

* * @param themes * A list of permissions 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 AssetBundleImportJobOverridePermissions withThemes(java.util.Collection themes) { setThemes(themes); return this; } /** *

* A list of permissions overrides for any Analysis resources that are present in the asset bundle that * is imported. *

* * @return A list of permissions 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 permissions overrides for any Analysis resources that are present in the asset bundle that * is imported. *

* * @param analyses * A list of permissions 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 permissions 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 permissions 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 AssetBundleImportJobOverridePermissions withAnalyses(AssetBundleImportJobAnalysisOverridePermissions... analyses) { if (this.analyses == null) { setAnalyses(new java.util.ArrayList(analyses.length)); } for (AssetBundleImportJobAnalysisOverridePermissions ele : analyses) { this.analyses.add(ele); } return this; } /** *

* A list of permissions overrides for any Analysis resources that are present in the asset bundle that * is imported. *

* * @param analyses * A list of permissions 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 AssetBundleImportJobOverridePermissions withAnalyses(java.util.Collection analyses) { setAnalyses(analyses); return this; } /** *

* A list of permissions overrides for any Dashboard resources that are present in the asset bundle * that is imported. *

* * @return A list of permissions 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 permissions overrides for any Dashboard resources that are present in the asset bundle * that is imported. *

* * @param dashboards * A list of permissions 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 permissions 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 permissions 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 AssetBundleImportJobOverridePermissions withDashboards(AssetBundleImportJobDashboardOverridePermissions... dashboards) { if (this.dashboards == null) { setDashboards(new java.util.ArrayList(dashboards.length)); } for (AssetBundleImportJobDashboardOverridePermissions ele : dashboards) { this.dashboards.add(ele); } return this; } /** *

* A list of permissions overrides for any Dashboard resources that are present in the asset bundle * that is imported. *

* * @param dashboards * A list of permissions 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 AssetBundleImportJobOverridePermissions 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 (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 AssetBundleImportJobOverridePermissions == false) return false; AssetBundleImportJobOverridePermissions other = (AssetBundleImportJobOverridePermissions) obj; 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 + ((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 AssetBundleImportJobOverridePermissions clone() { try { return (AssetBundleImportJobOverridePermissions) 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.AssetBundleImportJobOverridePermissionsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy