com.amazonaws.services.dataexchange.model.ResponseDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-dataexchange Show documentation
/*
* 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.dataexchange.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Details for the response.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResponseDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* Details for the export to signed URL response.
*
*/
private ExportAssetToSignedUrlResponseDetails exportAssetToSignedUrl;
/**
*
* Details for the export to Amazon S3 response.
*
*/
private ExportAssetsToS3ResponseDetails exportAssetsToS3;
/**
*
* Details for the export revisions to Amazon S3 response.
*
*/
private ExportRevisionsToS3ResponseDetails exportRevisionsToS3;
/**
*
* Details for the import from signed URL response.
*
*/
private ImportAssetFromSignedUrlResponseDetails importAssetFromSignedUrl;
/**
*
* Details for the import from Amazon S3 response.
*
*/
private ImportAssetsFromS3ResponseDetails importAssetsFromS3;
/**
*
* Details from an import from Amazon Redshift datashare response.
*
*/
private ImportAssetsFromRedshiftDataSharesResponseDetails importAssetsFromRedshiftDataShares;
/**
*
* The response details.
*
*/
private ImportAssetFromApiGatewayApiResponseDetails importAssetFromApiGatewayApi;
/**
*
* Response details from the CreateS3DataAccessFromS3Bucket job.
*
*/
private CreateS3DataAccessFromS3BucketResponseDetails createS3DataAccessFromS3Bucket;
/**
*
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*
*/
private ImportAssetsFromLakeFormationTagPolicyResponseDetails importAssetsFromLakeFormationTagPolicy;
/**
*
* Details for the export to signed URL response.
*
*
* @param exportAssetToSignedUrl
* Details for the export to signed URL response.
*/
public void setExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails exportAssetToSignedUrl) {
this.exportAssetToSignedUrl = exportAssetToSignedUrl;
}
/**
*
* Details for the export to signed URL response.
*
*
* @return Details for the export to signed URL response.
*/
public ExportAssetToSignedUrlResponseDetails getExportAssetToSignedUrl() {
return this.exportAssetToSignedUrl;
}
/**
*
* Details for the export to signed URL response.
*
*
* @param exportAssetToSignedUrl
* Details for the export to signed URL response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails exportAssetToSignedUrl) {
setExportAssetToSignedUrl(exportAssetToSignedUrl);
return this;
}
/**
*
* Details for the export to Amazon S3 response.
*
*
* @param exportAssetsToS3
* Details for the export to Amazon S3 response.
*/
public void setExportAssetsToS3(ExportAssetsToS3ResponseDetails exportAssetsToS3) {
this.exportAssetsToS3 = exportAssetsToS3;
}
/**
*
* Details for the export to Amazon S3 response.
*
*
* @return Details for the export to Amazon S3 response.
*/
public ExportAssetsToS3ResponseDetails getExportAssetsToS3() {
return this.exportAssetsToS3;
}
/**
*
* Details for the export to Amazon S3 response.
*
*
* @param exportAssetsToS3
* Details for the export to Amazon S3 response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withExportAssetsToS3(ExportAssetsToS3ResponseDetails exportAssetsToS3) {
setExportAssetsToS3(exportAssetsToS3);
return this;
}
/**
*
* Details for the export revisions to Amazon S3 response.
*
*
* @param exportRevisionsToS3
* Details for the export revisions to Amazon S3 response.
*/
public void setExportRevisionsToS3(ExportRevisionsToS3ResponseDetails exportRevisionsToS3) {
this.exportRevisionsToS3 = exportRevisionsToS3;
}
/**
*
* Details for the export revisions to Amazon S3 response.
*
*
* @return Details for the export revisions to Amazon S3 response.
*/
public ExportRevisionsToS3ResponseDetails getExportRevisionsToS3() {
return this.exportRevisionsToS3;
}
/**
*
* Details for the export revisions to Amazon S3 response.
*
*
* @param exportRevisionsToS3
* Details for the export revisions to Amazon S3 response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withExportRevisionsToS3(ExportRevisionsToS3ResponseDetails exportRevisionsToS3) {
setExportRevisionsToS3(exportRevisionsToS3);
return this;
}
/**
*
* Details for the import from signed URL response.
*
*
* @param importAssetFromSignedUrl
* Details for the import from signed URL response.
*/
public void setImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails importAssetFromSignedUrl) {
this.importAssetFromSignedUrl = importAssetFromSignedUrl;
}
/**
*
* Details for the import from signed URL response.
*
*
* @return Details for the import from signed URL response.
*/
public ImportAssetFromSignedUrlResponseDetails getImportAssetFromSignedUrl() {
return this.importAssetFromSignedUrl;
}
/**
*
* Details for the import from signed URL response.
*
*
* @param importAssetFromSignedUrl
* Details for the import from signed URL response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails importAssetFromSignedUrl) {
setImportAssetFromSignedUrl(importAssetFromSignedUrl);
return this;
}
/**
*
* Details for the import from Amazon S3 response.
*
*
* @param importAssetsFromS3
* Details for the import from Amazon S3 response.
*/
public void setImportAssetsFromS3(ImportAssetsFromS3ResponseDetails importAssetsFromS3) {
this.importAssetsFromS3 = importAssetsFromS3;
}
/**
*
* Details for the import from Amazon S3 response.
*
*
* @return Details for the import from Amazon S3 response.
*/
public ImportAssetsFromS3ResponseDetails getImportAssetsFromS3() {
return this.importAssetsFromS3;
}
/**
*
* Details for the import from Amazon S3 response.
*
*
* @param importAssetsFromS3
* Details for the import from Amazon S3 response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withImportAssetsFromS3(ImportAssetsFromS3ResponseDetails importAssetsFromS3) {
setImportAssetsFromS3(importAssetsFromS3);
return this;
}
/**
*
* Details from an import from Amazon Redshift datashare response.
*
*
* @param importAssetsFromRedshiftDataShares
* Details from an import from Amazon Redshift datashare response.
*/
public void setImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails importAssetsFromRedshiftDataShares) {
this.importAssetsFromRedshiftDataShares = importAssetsFromRedshiftDataShares;
}
/**
*
* Details from an import from Amazon Redshift datashare response.
*
*
* @return Details from an import from Amazon Redshift datashare response.
*/
public ImportAssetsFromRedshiftDataSharesResponseDetails getImportAssetsFromRedshiftDataShares() {
return this.importAssetsFromRedshiftDataShares;
}
/**
*
* Details from an import from Amazon Redshift datashare response.
*
*
* @param importAssetsFromRedshiftDataShares
* Details from an import from Amazon Redshift datashare response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails importAssetsFromRedshiftDataShares) {
setImportAssetsFromRedshiftDataShares(importAssetsFromRedshiftDataShares);
return this;
}
/**
*
* The response details.
*
*
* @param importAssetFromApiGatewayApi
* The response details.
*/
public void setImportAssetFromApiGatewayApi(ImportAssetFromApiGatewayApiResponseDetails importAssetFromApiGatewayApi) {
this.importAssetFromApiGatewayApi = importAssetFromApiGatewayApi;
}
/**
*
* The response details.
*
*
* @return The response details.
*/
public ImportAssetFromApiGatewayApiResponseDetails getImportAssetFromApiGatewayApi() {
return this.importAssetFromApiGatewayApi;
}
/**
*
* The response details.
*
*
* @param importAssetFromApiGatewayApi
* The response details.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withImportAssetFromApiGatewayApi(ImportAssetFromApiGatewayApiResponseDetails importAssetFromApiGatewayApi) {
setImportAssetFromApiGatewayApi(importAssetFromApiGatewayApi);
return this;
}
/**
*
* Response details from the CreateS3DataAccessFromS3Bucket job.
*
*
* @param createS3DataAccessFromS3Bucket
* Response details from the CreateS3DataAccessFromS3Bucket job.
*/
public void setCreateS3DataAccessFromS3Bucket(CreateS3DataAccessFromS3BucketResponseDetails createS3DataAccessFromS3Bucket) {
this.createS3DataAccessFromS3Bucket = createS3DataAccessFromS3Bucket;
}
/**
*
* Response details from the CreateS3DataAccessFromS3Bucket job.
*
*
* @return Response details from the CreateS3DataAccessFromS3Bucket job.
*/
public CreateS3DataAccessFromS3BucketResponseDetails getCreateS3DataAccessFromS3Bucket() {
return this.createS3DataAccessFromS3Bucket;
}
/**
*
* Response details from the CreateS3DataAccessFromS3Bucket job.
*
*
* @param createS3DataAccessFromS3Bucket
* Response details from the CreateS3DataAccessFromS3Bucket job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withCreateS3DataAccessFromS3Bucket(CreateS3DataAccessFromS3BucketResponseDetails createS3DataAccessFromS3Bucket) {
setCreateS3DataAccessFromS3Bucket(createS3DataAccessFromS3Bucket);
return this;
}
/**
*
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*
*
* @param importAssetsFromLakeFormationTagPolicy
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*/
public void setImportAssetsFromLakeFormationTagPolicy(ImportAssetsFromLakeFormationTagPolicyResponseDetails importAssetsFromLakeFormationTagPolicy) {
this.importAssetsFromLakeFormationTagPolicy = importAssetsFromLakeFormationTagPolicy;
}
/**
*
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*
*
* @return Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*/
public ImportAssetsFromLakeFormationTagPolicyResponseDetails getImportAssetsFromLakeFormationTagPolicy() {
return this.importAssetsFromLakeFormationTagPolicy;
}
/**
*
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
*
*
* @param importAssetsFromLakeFormationTagPolicy
* Response details from the ImportAssetsFromLakeFormationTagPolicy job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseDetails withImportAssetsFromLakeFormationTagPolicy(
ImportAssetsFromLakeFormationTagPolicyResponseDetails importAssetsFromLakeFormationTagPolicy) {
setImportAssetsFromLakeFormationTagPolicy(importAssetsFromLakeFormationTagPolicy);
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 (getExportAssetToSignedUrl() != null)
sb.append("ExportAssetToSignedUrl: ").append(getExportAssetToSignedUrl()).append(",");
if (getExportAssetsToS3() != null)
sb.append("ExportAssetsToS3: ").append(getExportAssetsToS3()).append(",");
if (getExportRevisionsToS3() != null)
sb.append("ExportRevisionsToS3: ").append(getExportRevisionsToS3()).append(",");
if (getImportAssetFromSignedUrl() != null)
sb.append("ImportAssetFromSignedUrl: ").append(getImportAssetFromSignedUrl()).append(",");
if (getImportAssetsFromS3() != null)
sb.append("ImportAssetsFromS3: ").append(getImportAssetsFromS3()).append(",");
if (getImportAssetsFromRedshiftDataShares() != null)
sb.append("ImportAssetsFromRedshiftDataShares: ").append(getImportAssetsFromRedshiftDataShares()).append(",");
if (getImportAssetFromApiGatewayApi() != null)
sb.append("ImportAssetFromApiGatewayApi: ").append(getImportAssetFromApiGatewayApi()).append(",");
if (getCreateS3DataAccessFromS3Bucket() != null)
sb.append("CreateS3DataAccessFromS3Bucket: ").append(getCreateS3DataAccessFromS3Bucket()).append(",");
if (getImportAssetsFromLakeFormationTagPolicy() != null)
sb.append("ImportAssetsFromLakeFormationTagPolicy: ").append(getImportAssetsFromLakeFormationTagPolicy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ResponseDetails == false)
return false;
ResponseDetails other = (ResponseDetails) obj;
if (other.getExportAssetToSignedUrl() == null ^ this.getExportAssetToSignedUrl() == null)
return false;
if (other.getExportAssetToSignedUrl() != null && other.getExportAssetToSignedUrl().equals(this.getExportAssetToSignedUrl()) == false)
return false;
if (other.getExportAssetsToS3() == null ^ this.getExportAssetsToS3() == null)
return false;
if (other.getExportAssetsToS3() != null && other.getExportAssetsToS3().equals(this.getExportAssetsToS3()) == false)
return false;
if (other.getExportRevisionsToS3() == null ^ this.getExportRevisionsToS3() == null)
return false;
if (other.getExportRevisionsToS3() != null && other.getExportRevisionsToS3().equals(this.getExportRevisionsToS3()) == false)
return false;
if (other.getImportAssetFromSignedUrl() == null ^ this.getImportAssetFromSignedUrl() == null)
return false;
if (other.getImportAssetFromSignedUrl() != null && other.getImportAssetFromSignedUrl().equals(this.getImportAssetFromSignedUrl()) == false)
return false;
if (other.getImportAssetsFromS3() == null ^ this.getImportAssetsFromS3() == null)
return false;
if (other.getImportAssetsFromS3() != null && other.getImportAssetsFromS3().equals(this.getImportAssetsFromS3()) == false)
return false;
if (other.getImportAssetsFromRedshiftDataShares() == null ^ this.getImportAssetsFromRedshiftDataShares() == null)
return false;
if (other.getImportAssetsFromRedshiftDataShares() != null
&& other.getImportAssetsFromRedshiftDataShares().equals(this.getImportAssetsFromRedshiftDataShares()) == false)
return false;
if (other.getImportAssetFromApiGatewayApi() == null ^ this.getImportAssetFromApiGatewayApi() == null)
return false;
if (other.getImportAssetFromApiGatewayApi() != null && other.getImportAssetFromApiGatewayApi().equals(this.getImportAssetFromApiGatewayApi()) == false)
return false;
if (other.getCreateS3DataAccessFromS3Bucket() == null ^ this.getCreateS3DataAccessFromS3Bucket() == null)
return false;
if (other.getCreateS3DataAccessFromS3Bucket() != null
&& other.getCreateS3DataAccessFromS3Bucket().equals(this.getCreateS3DataAccessFromS3Bucket()) == false)
return false;
if (other.getImportAssetsFromLakeFormationTagPolicy() == null ^ this.getImportAssetsFromLakeFormationTagPolicy() == null)
return false;
if (other.getImportAssetsFromLakeFormationTagPolicy() != null
&& other.getImportAssetsFromLakeFormationTagPolicy().equals(this.getImportAssetsFromLakeFormationTagPolicy()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getExportAssetToSignedUrl() == null) ? 0 : getExportAssetToSignedUrl().hashCode());
hashCode = prime * hashCode + ((getExportAssetsToS3() == null) ? 0 : getExportAssetsToS3().hashCode());
hashCode = prime * hashCode + ((getExportRevisionsToS3() == null) ? 0 : getExportRevisionsToS3().hashCode());
hashCode = prime * hashCode + ((getImportAssetFromSignedUrl() == null) ? 0 : getImportAssetFromSignedUrl().hashCode());
hashCode = prime * hashCode + ((getImportAssetsFromS3() == null) ? 0 : getImportAssetsFromS3().hashCode());
hashCode = prime * hashCode + ((getImportAssetsFromRedshiftDataShares() == null) ? 0 : getImportAssetsFromRedshiftDataShares().hashCode());
hashCode = prime * hashCode + ((getImportAssetFromApiGatewayApi() == null) ? 0 : getImportAssetFromApiGatewayApi().hashCode());
hashCode = prime * hashCode + ((getCreateS3DataAccessFromS3Bucket() == null) ? 0 : getCreateS3DataAccessFromS3Bucket().hashCode());
hashCode = prime * hashCode + ((getImportAssetsFromLakeFormationTagPolicy() == null) ? 0 : getImportAssetsFromLakeFormationTagPolicy().hashCode());
return hashCode;
}
@Override
public ResponseDetails clone() {
try {
return (ResponseDetails) 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.dataexchange.model.transform.ResponseDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}