/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartAssetBundleImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Amazon Web Services account to import assets into. *
*/ private String awsAccountId; /** ** The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID * for another job. *
*/ private String assetBundleImportJobId; /** *
* The source of the asset bundle zip file that contains the data that you want to import. The file must be in
* QUICKSIGHT_JSON
format.
*
* Optional overrides to be applied to the resource configuration before import. *
*/ private AssetBundleImportJobOverrideParameters overrideParameters; /** ** The failure action for the import job. *
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by the
* failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes caused
* by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
*
* The ID of the Amazon Web Services account to import assets into. *
* * @param awsAccountId * The ID of the Amazon Web Services account to import assets into. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID of the Amazon Web Services account to import assets into. *
* * @return The ID of the Amazon Web Services account to import assets into. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID of the Amazon Web Services account to import assets into. *
* * @param awsAccountId * The ID of the Amazon Web Services account to import assets into. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAssetBundleImportJobRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID * for another job. *
* * @param assetBundleImportJobId * The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse * this ID for another job. */ public void setAssetBundleImportJobId(String assetBundleImportJobId) { this.assetBundleImportJobId = assetBundleImportJobId; } /** ** The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID * for another job. *
* * @return The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse * this ID for another job. */ public String getAssetBundleImportJobId() { return this.assetBundleImportJobId; } /** ** The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse this ID * for another job. *
* * @param assetBundleImportJobId * The ID of the job. This ID is unique while the job is running. After the job is completed, you can reuse * this ID for another job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAssetBundleImportJobRequest withAssetBundleImportJobId(String assetBundleImportJobId) { setAssetBundleImportJobId(assetBundleImportJobId); return this; } /** *
* The source of the asset bundle zip file that contains the data that you want to import. The file must be in
* QUICKSIGHT_JSON
format.
*
QUICKSIGHT_JSON
format.
*/
public void setAssetBundleImportSource(AssetBundleImportSource assetBundleImportSource) {
this.assetBundleImportSource = assetBundleImportSource;
}
/**
*
* The source of the asset bundle zip file that contains the data that you want to import. The file must be in
* QUICKSIGHT_JSON
format.
*
QUICKSIGHT_JSON
format.
*/
public AssetBundleImportSource getAssetBundleImportSource() {
return this.assetBundleImportSource;
}
/**
*
* The source of the asset bundle zip file that contains the data that you want to import. The file must be in
* QUICKSIGHT_JSON
format.
*
QUICKSIGHT_JSON
format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartAssetBundleImportJobRequest withAssetBundleImportSource(AssetBundleImportSource assetBundleImportSource) {
setAssetBundleImportSource(assetBundleImportSource);
return this;
}
/**
* * Optional overrides to be applied to the resource configuration before import. *
* * @param overrideParameters * Optional overrides to be applied to the resource configuration before import. */ public void setOverrideParameters(AssetBundleImportJobOverrideParameters overrideParameters) { this.overrideParameters = overrideParameters; } /** ** Optional overrides to be applied to the resource configuration before import. *
* * @return Optional overrides to be applied to the resource configuration before import. */ public AssetBundleImportJobOverrideParameters getOverrideParameters() { return this.overrideParameters; } /** ** Optional overrides to be applied to the resource configuration before import. *
* * @param overrideParameters * Optional overrides to be applied to the resource configuration before import. * @return Returns a reference to this object so that method calls can be chained together. */ public StartAssetBundleImportJobRequest withOverrideParameters(AssetBundleImportJobOverrideParameters overrideParameters) { setOverrideParameters(overrideParameters); return this; } /** ** The failure action for the import job. *
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by the
* failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes caused
* by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by
* the failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes
* caused by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
* @see AssetBundleImportFailureAction
*/
public void setFailureAction(String failureAction) {
this.failureAction = failureAction;
}
/**
*
* The failure action for the import job. *
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by the
* failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes caused
* by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by
* the failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes
* caused by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
* @see AssetBundleImportFailureAction
*/
public String getFailureAction() {
return this.failureAction;
}
/**
*
* The failure action for the import job. *
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by the
* failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes caused
* by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by
* the failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes
* caused by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssetBundleImportFailureAction
*/
public StartAssetBundleImportJobRequest withFailureAction(String failureAction) {
setFailureAction(failureAction);
return this;
}
/**
*
* The failure action for the import job. *
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by the
* failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes caused
* by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
*
* If you choose ROLLBACK
, failed import jobs will attempt to undo any asset changes caused by
* the failed job.
*
* If you choose DO_NOTHING
, failed import jobs will not attempt to roll back any asset changes
* caused by the failed job, possibly keeping the Amazon QuickSight account in an inconsistent state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AssetBundleImportFailureAction
*/
public StartAssetBundleImportJobRequest withFailureAction(AssetBundleImportFailureAction failureAction) {
this.failureAction = failureAction.toString();
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 (getAwsAccountId() != null)
sb.append("AwsAccountId: ").append(getAwsAccountId()).append(",");
if (getAssetBundleImportJobId() != null)
sb.append("AssetBundleImportJobId: ").append(getAssetBundleImportJobId()).append(",");
if (getAssetBundleImportSource() != null)
sb.append("AssetBundleImportSource: ").append(getAssetBundleImportSource()).append(",");
if (getOverrideParameters() != null)
sb.append("OverrideParameters: ").append(getOverrideParameters()).append(",");
if (getFailureAction() != null)
sb.append("FailureAction: ").append(getFailureAction());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartAssetBundleImportJobRequest == false)
return false;
StartAssetBundleImportJobRequest other = (StartAssetBundleImportJobRequest) obj;
if (other.getAwsAccountId() == null ^ this.getAwsAccountId() == null)
return false;
if (other.getAwsAccountId() != null && other.getAwsAccountId().equals(this.getAwsAccountId()) == false)
return false;
if (other.getAssetBundleImportJobId() == null ^ this.getAssetBundleImportJobId() == null)
return false;
if (other.getAssetBundleImportJobId() != null && other.getAssetBundleImportJobId().equals(this.getAssetBundleImportJobId()) == false)
return false;
if (other.getAssetBundleImportSource() == null ^ this.getAssetBundleImportSource() == null)
return false;
if (other.getAssetBundleImportSource() != null && other.getAssetBundleImportSource().equals(this.getAssetBundleImportSource()) == false)
return false;
if (other.getOverrideParameters() == null ^ this.getOverrideParameters() == null)
return false;
if (other.getOverrideParameters() != null && other.getOverrideParameters().equals(this.getOverrideParameters()) == false)
return false;
if (other.getFailureAction() == null ^ this.getFailureAction() == null)
return false;
if (other.getFailureAction() != null && other.getFailureAction().equals(this.getFailureAction()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAwsAccountId() == null) ? 0 : getAwsAccountId().hashCode());
hashCode = prime * hashCode + ((getAssetBundleImportJobId() == null) ? 0 : getAssetBundleImportJobId().hashCode());
hashCode = prime * hashCode + ((getAssetBundleImportSource() == null) ? 0 : getAssetBundleImportSource().hashCode());
hashCode = prime * hashCode + ((getOverrideParameters() == null) ? 0 : getOverrideParameters().hashCode());
hashCode = prime * hashCode + ((getFailureAction() == null) ? 0 : getFailureAction().hashCode());
return hashCode;
}
@Override
public StartAssetBundleImportJobRequest clone() {
return (StartAssetBundleImportJobRequest) super.clone();
}
}