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

com.amazonaws.services.dataexchange.model.ImportAssetFromApiGatewayApiRequestDetails 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;

/**
 * 

* The request details. *

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

* The API description. Markdown supported. *

*/ private String apiDescription; /** *

* The API Gateway API ID. *

*/ private String apiId; /** *

* The API Gateway API key. *

*/ private String apiKey; /** *

* The API name. *

*/ private String apiName; /** *

* The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of * the file. *

*/ private String apiSpecificationMd5Hash; /** *

* The data set ID. *

*/ private String dataSetId; /** *

* The protocol type. *

*/ private String protocolType; /** *

* The revision ID. *

*/ private String revisionId; /** *

* The API stage. *

*/ private String stage; /** *

* The API description. Markdown supported. *

* * @param apiDescription * The API description. Markdown supported. */ public void setApiDescription(String apiDescription) { this.apiDescription = apiDescription; } /** *

* The API description. Markdown supported. *

* * @return The API description. Markdown supported. */ public String getApiDescription() { return this.apiDescription; } /** *

* The API description. Markdown supported. *

* * @param apiDescription * The API description. Markdown supported. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withApiDescription(String apiDescription) { setApiDescription(apiDescription); return this; } /** *

* The API Gateway API ID. *

* * @param apiId * The API Gateway API ID. */ public void setApiId(String apiId) { this.apiId = apiId; } /** *

* The API Gateway API ID. *

* * @return The API Gateway API ID. */ public String getApiId() { return this.apiId; } /** *

* The API Gateway API ID. *

* * @param apiId * The API Gateway API ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withApiId(String apiId) { setApiId(apiId); return this; } /** *

* The API Gateway API key. *

* * @param apiKey * The API Gateway API key. */ public void setApiKey(String apiKey) { this.apiKey = apiKey; } /** *

* The API Gateway API key. *

* * @return The API Gateway API key. */ public String getApiKey() { return this.apiKey; } /** *

* The API Gateway API key. *

* * @param apiKey * The API Gateway API key. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withApiKey(String apiKey) { setApiKey(apiKey); return this; } /** *

* The API name. *

* * @param apiName * The API name. */ public void setApiName(String apiName) { this.apiName = apiName; } /** *

* The API name. *

* * @return The API name. */ public String getApiName() { return this.apiName; } /** *

* The API name. *

* * @param apiName * The API name. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withApiName(String apiName) { setApiName(apiName); return this; } /** *

* The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of * the file. *

* * @param apiSpecificationMd5Hash * The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the * integrity of the file. */ public void setApiSpecificationMd5Hash(String apiSpecificationMd5Hash) { this.apiSpecificationMd5Hash = apiSpecificationMd5Hash; } /** *

* The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of * the file. *

* * @return The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the * integrity of the file. */ public String getApiSpecificationMd5Hash() { return this.apiSpecificationMd5Hash; } /** *

* The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the integrity of * the file. *

* * @param apiSpecificationMd5Hash * The Base64-encoded MD5 hash of the OpenAPI 3.0 JSON API specification file. It is used to ensure the * integrity of the file. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withApiSpecificationMd5Hash(String apiSpecificationMd5Hash) { setApiSpecificationMd5Hash(apiSpecificationMd5Hash); return this; } /** *

* The data set ID. *

* * @param dataSetId * The data set ID. */ public void setDataSetId(String dataSetId) { this.dataSetId = dataSetId; } /** *

* The data set ID. *

* * @return The data set ID. */ public String getDataSetId() { return this.dataSetId; } /** *

* The data set ID. *

* * @param dataSetId * The data set ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withDataSetId(String dataSetId) { setDataSetId(dataSetId); return this; } /** *

* The protocol type. *

* * @param protocolType * The protocol type. * @see ProtocolType */ public void setProtocolType(String protocolType) { this.protocolType = protocolType; } /** *

* The protocol type. *

* * @return The protocol type. * @see ProtocolType */ public String getProtocolType() { return this.protocolType; } /** *

* The protocol type. *

* * @param protocolType * The protocol type. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolType */ public ImportAssetFromApiGatewayApiRequestDetails withProtocolType(String protocolType) { setProtocolType(protocolType); return this; } /** *

* The protocol type. *

* * @param protocolType * The protocol type. * @return Returns a reference to this object so that method calls can be chained together. * @see ProtocolType */ public ImportAssetFromApiGatewayApiRequestDetails withProtocolType(ProtocolType protocolType) { this.protocolType = protocolType.toString(); return this; } /** *

* The revision ID. *

* * @param revisionId * The revision ID. */ public void setRevisionId(String revisionId) { this.revisionId = revisionId; } /** *

* The revision ID. *

* * @return The revision ID. */ public String getRevisionId() { return this.revisionId; } /** *

* The revision ID. *

* * @param revisionId * The revision ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withRevisionId(String revisionId) { setRevisionId(revisionId); return this; } /** *

* The API stage. *

* * @param stage * The API stage. */ public void setStage(String stage) { this.stage = stage; } /** *

* The API stage. *

* * @return The API stage. */ public String getStage() { return this.stage; } /** *

* The API stage. *

* * @param stage * The API stage. * @return Returns a reference to this object so that method calls can be chained together. */ public ImportAssetFromApiGatewayApiRequestDetails withStage(String stage) { setStage(stage); 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 (getApiDescription() != null) sb.append("ApiDescription: ").append(getApiDescription()).append(","); if (getApiId() != null) sb.append("ApiId: ").append(getApiId()).append(","); if (getApiKey() != null) sb.append("ApiKey: ").append(getApiKey()).append(","); if (getApiName() != null) sb.append("ApiName: ").append(getApiName()).append(","); if (getApiSpecificationMd5Hash() != null) sb.append("ApiSpecificationMd5Hash: ").append(getApiSpecificationMd5Hash()).append(","); if (getDataSetId() != null) sb.append("DataSetId: ").append(getDataSetId()).append(","); if (getProtocolType() != null) sb.append("ProtocolType: ").append(getProtocolType()).append(","); if (getRevisionId() != null) sb.append("RevisionId: ").append(getRevisionId()).append(","); if (getStage() != null) sb.append("Stage: ").append(getStage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImportAssetFromApiGatewayApiRequestDetails == false) return false; ImportAssetFromApiGatewayApiRequestDetails other = (ImportAssetFromApiGatewayApiRequestDetails) obj; if (other.getApiDescription() == null ^ this.getApiDescription() == null) return false; if (other.getApiDescription() != null && other.getApiDescription().equals(this.getApiDescription()) == false) return false; if (other.getApiId() == null ^ this.getApiId() == null) return false; if (other.getApiId() != null && other.getApiId().equals(this.getApiId()) == false) return false; if (other.getApiKey() == null ^ this.getApiKey() == null) return false; if (other.getApiKey() != null && other.getApiKey().equals(this.getApiKey()) == false) return false; if (other.getApiName() == null ^ this.getApiName() == null) return false; if (other.getApiName() != null && other.getApiName().equals(this.getApiName()) == false) return false; if (other.getApiSpecificationMd5Hash() == null ^ this.getApiSpecificationMd5Hash() == null) return false; if (other.getApiSpecificationMd5Hash() != null && other.getApiSpecificationMd5Hash().equals(this.getApiSpecificationMd5Hash()) == false) return false; if (other.getDataSetId() == null ^ this.getDataSetId() == null) return false; if (other.getDataSetId() != null && other.getDataSetId().equals(this.getDataSetId()) == false) return false; if (other.getProtocolType() == null ^ this.getProtocolType() == null) return false; if (other.getProtocolType() != null && other.getProtocolType().equals(this.getProtocolType()) == false) return false; if (other.getRevisionId() == null ^ this.getRevisionId() == null) return false; if (other.getRevisionId() != null && other.getRevisionId().equals(this.getRevisionId()) == false) return false; if (other.getStage() == null ^ this.getStage() == null) return false; if (other.getStage() != null && other.getStage().equals(this.getStage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApiDescription() == null) ? 0 : getApiDescription().hashCode()); hashCode = prime * hashCode + ((getApiId() == null) ? 0 : getApiId().hashCode()); hashCode = prime * hashCode + ((getApiKey() == null) ? 0 : getApiKey().hashCode()); hashCode = prime * hashCode + ((getApiName() == null) ? 0 : getApiName().hashCode()); hashCode = prime * hashCode + ((getApiSpecificationMd5Hash() == null) ? 0 : getApiSpecificationMd5Hash().hashCode()); hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); hashCode = prime * hashCode + ((getProtocolType() == null) ? 0 : getProtocolType().hashCode()); hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode()); hashCode = prime * hashCode + ((getStage() == null) ? 0 : getStage().hashCode()); return hashCode; } @Override public ImportAssetFromApiGatewayApiRequestDetails clone() { try { return (ImportAssetFromApiGatewayApiRequestDetails) 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.ImportAssetFromApiGatewayApiRequestDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy