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

com.amazonaws.services.dataexchange.model.AssetDetails Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * 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;

/**
 * 

* Information about the asset. *

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

* The S3 object that is the asset. *

*/ private S3SnapshotAsset s3SnapshotAsset; /** *

* The Amazon Redshift datashare that is the asset. *

*/ private RedshiftDataShareAsset redshiftDataShareAsset; /** *

* Information about the API Gateway API asset. *

*/ private ApiGatewayApiAsset apiGatewayApiAsset; /** *

* The S3 object that is the asset. *

* * @param s3SnapshotAsset * The S3 object that is the asset. */ public void setS3SnapshotAsset(S3SnapshotAsset s3SnapshotAsset) { this.s3SnapshotAsset = s3SnapshotAsset; } /** *

* The S3 object that is the asset. *

* * @return The S3 object that is the asset. */ public S3SnapshotAsset getS3SnapshotAsset() { return this.s3SnapshotAsset; } /** *

* The S3 object that is the asset. *

* * @param s3SnapshotAsset * The S3 object that is the asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetDetails withS3SnapshotAsset(S3SnapshotAsset s3SnapshotAsset) { setS3SnapshotAsset(s3SnapshotAsset); return this; } /** *

* The Amazon Redshift datashare that is the asset. *

* * @param redshiftDataShareAsset * The Amazon Redshift datashare that is the asset. */ public void setRedshiftDataShareAsset(RedshiftDataShareAsset redshiftDataShareAsset) { this.redshiftDataShareAsset = redshiftDataShareAsset; } /** *

* The Amazon Redshift datashare that is the asset. *

* * @return The Amazon Redshift datashare that is the asset. */ public RedshiftDataShareAsset getRedshiftDataShareAsset() { return this.redshiftDataShareAsset; } /** *

* The Amazon Redshift datashare that is the asset. *

* * @param redshiftDataShareAsset * The Amazon Redshift datashare that is the asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetDetails withRedshiftDataShareAsset(RedshiftDataShareAsset redshiftDataShareAsset) { setRedshiftDataShareAsset(redshiftDataShareAsset); return this; } /** *

* Information about the API Gateway API asset. *

* * @param apiGatewayApiAsset * Information about the API Gateway API asset. */ public void setApiGatewayApiAsset(ApiGatewayApiAsset apiGatewayApiAsset) { this.apiGatewayApiAsset = apiGatewayApiAsset; } /** *

* Information about the API Gateway API asset. *

* * @return Information about the API Gateway API asset. */ public ApiGatewayApiAsset getApiGatewayApiAsset() { return this.apiGatewayApiAsset; } /** *

* Information about the API Gateway API asset. *

* * @param apiGatewayApiAsset * Information about the API Gateway API asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AssetDetails withApiGatewayApiAsset(ApiGatewayApiAsset apiGatewayApiAsset) { setApiGatewayApiAsset(apiGatewayApiAsset); 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 (getS3SnapshotAsset() != null) sb.append("S3SnapshotAsset: ").append(getS3SnapshotAsset()).append(","); if (getRedshiftDataShareAsset() != null) sb.append("RedshiftDataShareAsset: ").append(getRedshiftDataShareAsset()).append(","); if (getApiGatewayApiAsset() != null) sb.append("ApiGatewayApiAsset: ").append(getApiGatewayApiAsset()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssetDetails == false) return false; AssetDetails other = (AssetDetails) obj; if (other.getS3SnapshotAsset() == null ^ this.getS3SnapshotAsset() == null) return false; if (other.getS3SnapshotAsset() != null && other.getS3SnapshotAsset().equals(this.getS3SnapshotAsset()) == false) return false; if (other.getRedshiftDataShareAsset() == null ^ this.getRedshiftDataShareAsset() == null) return false; if (other.getRedshiftDataShareAsset() != null && other.getRedshiftDataShareAsset().equals(this.getRedshiftDataShareAsset()) == false) return false; if (other.getApiGatewayApiAsset() == null ^ this.getApiGatewayApiAsset() == null) return false; if (other.getApiGatewayApiAsset() != null && other.getApiGatewayApiAsset().equals(this.getApiGatewayApiAsset()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3SnapshotAsset() == null) ? 0 : getS3SnapshotAsset().hashCode()); hashCode = prime * hashCode + ((getRedshiftDataShareAsset() == null) ? 0 : getRedshiftDataShareAsset().hashCode()); hashCode = prime * hashCode + ((getApiGatewayApiAsset() == null) ? 0 : getApiGatewayApiAsset().hashCode()); return hashCode; } @Override public AssetDetails clone() { try { return (AssetDetails) 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.AssetDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy