com.amazonaws.services.dataexchange.model.RequestDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-dataexchange Show documentation
/*
* Copyright 2017-2022 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;
/**
*
* The details for the request.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RequestDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* Details about the export to signed URL request.
*
*/
private ExportAssetToSignedUrlRequestDetails exportAssetToSignedUrl;
/**
*
* Details about the export to Amazon S3 request.
*
*/
private ExportAssetsToS3RequestDetails exportAssetsToS3;
/**
*
* Details about the export to Amazon S3 request.
*
*/
private ExportRevisionsToS3RequestDetails exportRevisionsToS3;
/**
*
* Details about the import from Amazon S3 request.
*
*/
private ImportAssetFromSignedUrlRequestDetails importAssetFromSignedUrl;
/**
*
* Information about the import asset from API Gateway API request.
*
*/
private ImportAssetsFromS3RequestDetails importAssetsFromS3;
/**
*
* Details from an import from Amazon Redshift datashare request.
*
*/
private ImportAssetsFromRedshiftDataSharesRequestDetails importAssetsFromRedshiftDataShares;
/**
*
* Details about the import from signed URL request.
*
*/
private ImportAssetFromApiGatewayApiRequestDetails importAssetFromApiGatewayApi;
/**
*
* Details about the export to signed URL request.
*
*
* @param exportAssetToSignedUrl
* Details about the export to signed URL request.
*/
public void setExportAssetToSignedUrl(ExportAssetToSignedUrlRequestDetails exportAssetToSignedUrl) {
this.exportAssetToSignedUrl = exportAssetToSignedUrl;
}
/**
*
* Details about the export to signed URL request.
*
*
* @return Details about the export to signed URL request.
*/
public ExportAssetToSignedUrlRequestDetails getExportAssetToSignedUrl() {
return this.exportAssetToSignedUrl;
}
/**
*
* Details about the export to signed URL request.
*
*
* @param exportAssetToSignedUrl
* Details about the export to signed URL request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withExportAssetToSignedUrl(ExportAssetToSignedUrlRequestDetails exportAssetToSignedUrl) {
setExportAssetToSignedUrl(exportAssetToSignedUrl);
return this;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @param exportAssetsToS3
* Details about the export to Amazon S3 request.
*/
public void setExportAssetsToS3(ExportAssetsToS3RequestDetails exportAssetsToS3) {
this.exportAssetsToS3 = exportAssetsToS3;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @return Details about the export to Amazon S3 request.
*/
public ExportAssetsToS3RequestDetails getExportAssetsToS3() {
return this.exportAssetsToS3;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @param exportAssetsToS3
* Details about the export to Amazon S3 request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withExportAssetsToS3(ExportAssetsToS3RequestDetails exportAssetsToS3) {
setExportAssetsToS3(exportAssetsToS3);
return this;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @param exportRevisionsToS3
* Details about the export to Amazon S3 request.
*/
public void setExportRevisionsToS3(ExportRevisionsToS3RequestDetails exportRevisionsToS3) {
this.exportRevisionsToS3 = exportRevisionsToS3;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @return Details about the export to Amazon S3 request.
*/
public ExportRevisionsToS3RequestDetails getExportRevisionsToS3() {
return this.exportRevisionsToS3;
}
/**
*
* Details about the export to Amazon S3 request.
*
*
* @param exportRevisionsToS3
* Details about the export to Amazon S3 request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withExportRevisionsToS3(ExportRevisionsToS3RequestDetails exportRevisionsToS3) {
setExportRevisionsToS3(exportRevisionsToS3);
return this;
}
/**
*
* Details about the import from Amazon S3 request.
*
*
* @param importAssetFromSignedUrl
* Details about the import from Amazon S3 request.
*/
public void setImportAssetFromSignedUrl(ImportAssetFromSignedUrlRequestDetails importAssetFromSignedUrl) {
this.importAssetFromSignedUrl = importAssetFromSignedUrl;
}
/**
*
* Details about the import from Amazon S3 request.
*
*
* @return Details about the import from Amazon S3 request.
*/
public ImportAssetFromSignedUrlRequestDetails getImportAssetFromSignedUrl() {
return this.importAssetFromSignedUrl;
}
/**
*
* Details about the import from Amazon S3 request.
*
*
* @param importAssetFromSignedUrl
* Details about the import from Amazon S3 request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withImportAssetFromSignedUrl(ImportAssetFromSignedUrlRequestDetails importAssetFromSignedUrl) {
setImportAssetFromSignedUrl(importAssetFromSignedUrl);
return this;
}
/**
*
* Information about the import asset from API Gateway API request.
*
*
* @param importAssetsFromS3
* Information about the import asset from API Gateway API request.
*/
public void setImportAssetsFromS3(ImportAssetsFromS3RequestDetails importAssetsFromS3) {
this.importAssetsFromS3 = importAssetsFromS3;
}
/**
*
* Information about the import asset from API Gateway API request.
*
*
* @return Information about the import asset from API Gateway API request.
*/
public ImportAssetsFromS3RequestDetails getImportAssetsFromS3() {
return this.importAssetsFromS3;
}
/**
*
* Information about the import asset from API Gateway API request.
*
*
* @param importAssetsFromS3
* Information about the import asset from API Gateway API request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withImportAssetsFromS3(ImportAssetsFromS3RequestDetails importAssetsFromS3) {
setImportAssetsFromS3(importAssetsFromS3);
return this;
}
/**
*
* Details from an import from Amazon Redshift datashare request.
*
*
* @param importAssetsFromRedshiftDataShares
* Details from an import from Amazon Redshift datashare request.
*/
public void setImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesRequestDetails importAssetsFromRedshiftDataShares) {
this.importAssetsFromRedshiftDataShares = importAssetsFromRedshiftDataShares;
}
/**
*
* Details from an import from Amazon Redshift datashare request.
*
*
* @return Details from an import from Amazon Redshift datashare request.
*/
public ImportAssetsFromRedshiftDataSharesRequestDetails getImportAssetsFromRedshiftDataShares() {
return this.importAssetsFromRedshiftDataShares;
}
/**
*
* Details from an import from Amazon Redshift datashare request.
*
*
* @param importAssetsFromRedshiftDataShares
* Details from an import from Amazon Redshift datashare request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesRequestDetails importAssetsFromRedshiftDataShares) {
setImportAssetsFromRedshiftDataShares(importAssetsFromRedshiftDataShares);
return this;
}
/**
*
* Details about the import from signed URL request.
*
*
* @param importAssetFromApiGatewayApi
* Details about the import from signed URL request.
*/
public void setImportAssetFromApiGatewayApi(ImportAssetFromApiGatewayApiRequestDetails importAssetFromApiGatewayApi) {
this.importAssetFromApiGatewayApi = importAssetFromApiGatewayApi;
}
/**
*
* Details about the import from signed URL request.
*
*
* @return Details about the import from signed URL request.
*/
public ImportAssetFromApiGatewayApiRequestDetails getImportAssetFromApiGatewayApi() {
return this.importAssetFromApiGatewayApi;
}
/**
*
* Details about the import from signed URL request.
*
*
* @param importAssetFromApiGatewayApi
* Details about the import from signed URL request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RequestDetails withImportAssetFromApiGatewayApi(ImportAssetFromApiGatewayApiRequestDetails importAssetFromApiGatewayApi) {
setImportAssetFromApiGatewayApi(importAssetFromApiGatewayApi);
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());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RequestDetails == false)
return false;
RequestDetails other = (RequestDetails) 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;
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());
return hashCode;
}
@Override
public RequestDetails clone() {
try {
return (RequestDetails) 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.RequestDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}