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

com.amazonaws.services.appsync.model.SourceApiAssociationSummary Maven / Gradle / Ivy

Go to download

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

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

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the ARNs and IDs of associations, Merged APIs, and source APIs. *

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

* The ID generated by the AppSync service for the source API association. *

*/ private String associationId; /** *

* The Amazon Resource Name (ARN) of the source API association. *

*/ private String associationArn; /** *

* The ID of the AppSync source API. *

*/ private String sourceApiId; /** *

* The Amazon Resource Name (ARN) of the AppSync Source API. *

*/ private String sourceApiArn; /** *

* The ID of the AppSync Merged API. *

*/ private String mergedApiId; /** *

* The Amazon Resource Name (ARN) of the AppSync Merged API. *

*/ private String mergedApiArn; /** *

* The description field. *

*/ private String description; /** *

* The ID generated by the AppSync service for the source API association. *

* * @param associationId * The ID generated by the AppSync service for the source API association. */ public void setAssociationId(String associationId) { this.associationId = associationId; } /** *

* The ID generated by the AppSync service for the source API association. *

* * @return The ID generated by the AppSync service for the source API association. */ public String getAssociationId() { return this.associationId; } /** *

* The ID generated by the AppSync service for the source API association. *

* * @param associationId * The ID generated by the AppSync service for the source API association. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** *

* The Amazon Resource Name (ARN) of the source API association. *

* * @param associationArn * The Amazon Resource Name (ARN) of the source API association. */ public void setAssociationArn(String associationArn) { this.associationArn = associationArn; } /** *

* The Amazon Resource Name (ARN) of the source API association. *

* * @return The Amazon Resource Name (ARN) of the source API association. */ public String getAssociationArn() { return this.associationArn; } /** *

* The Amazon Resource Name (ARN) of the source API association. *

* * @param associationArn * The Amazon Resource Name (ARN) of the source API association. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withAssociationArn(String associationArn) { setAssociationArn(associationArn); return this; } /** *

* The ID of the AppSync source API. *

* * @param sourceApiId * The ID of the AppSync source API. */ public void setSourceApiId(String sourceApiId) { this.sourceApiId = sourceApiId; } /** *

* The ID of the AppSync source API. *

* * @return The ID of the AppSync source API. */ public String getSourceApiId() { return this.sourceApiId; } /** *

* The ID of the AppSync source API. *

* * @param sourceApiId * The ID of the AppSync source API. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withSourceApiId(String sourceApiId) { setSourceApiId(sourceApiId); return this; } /** *

* The Amazon Resource Name (ARN) of the AppSync Source API. *

* * @param sourceApiArn * The Amazon Resource Name (ARN) of the AppSync Source API. */ public void setSourceApiArn(String sourceApiArn) { this.sourceApiArn = sourceApiArn; } /** *

* The Amazon Resource Name (ARN) of the AppSync Source API. *

* * @return The Amazon Resource Name (ARN) of the AppSync Source API. */ public String getSourceApiArn() { return this.sourceApiArn; } /** *

* The Amazon Resource Name (ARN) of the AppSync Source API. *

* * @param sourceApiArn * The Amazon Resource Name (ARN) of the AppSync Source API. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withSourceApiArn(String sourceApiArn) { setSourceApiArn(sourceApiArn); return this; } /** *

* The ID of the AppSync Merged API. *

* * @param mergedApiId * The ID of the AppSync Merged API. */ public void setMergedApiId(String mergedApiId) { this.mergedApiId = mergedApiId; } /** *

* The ID of the AppSync Merged API. *

* * @return The ID of the AppSync Merged API. */ public String getMergedApiId() { return this.mergedApiId; } /** *

* The ID of the AppSync Merged API. *

* * @param mergedApiId * The ID of the AppSync Merged API. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withMergedApiId(String mergedApiId) { setMergedApiId(mergedApiId); return this; } /** *

* The Amazon Resource Name (ARN) of the AppSync Merged API. *

* * @param mergedApiArn * The Amazon Resource Name (ARN) of the AppSync Merged API. */ public void setMergedApiArn(String mergedApiArn) { this.mergedApiArn = mergedApiArn; } /** *

* The Amazon Resource Name (ARN) of the AppSync Merged API. *

* * @return The Amazon Resource Name (ARN) of the AppSync Merged API. */ public String getMergedApiArn() { return this.mergedApiArn; } /** *

* The Amazon Resource Name (ARN) of the AppSync Merged API. *

* * @param mergedApiArn * The Amazon Resource Name (ARN) of the AppSync Merged API. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withMergedApiArn(String mergedApiArn) { setMergedApiArn(mergedApiArn); return this; } /** *

* The description field. *

* * @param description * The description field. */ public void setDescription(String description) { this.description = description; } /** *

* The description field. *

* * @return The description field. */ public String getDescription() { return this.description; } /** *

* The description field. *

* * @param description * The description field. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceApiAssociationSummary withDescription(String description) { setDescription(description); 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 (getAssociationId() != null) sb.append("AssociationId: ").append(getAssociationId()).append(","); if (getAssociationArn() != null) sb.append("AssociationArn: ").append(getAssociationArn()).append(","); if (getSourceApiId() != null) sb.append("SourceApiId: ").append(getSourceApiId()).append(","); if (getSourceApiArn() != null) sb.append("SourceApiArn: ").append(getSourceApiArn()).append(","); if (getMergedApiId() != null) sb.append("MergedApiId: ").append(getMergedApiId()).append(","); if (getMergedApiArn() != null) sb.append("MergedApiArn: ").append(getMergedApiArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SourceApiAssociationSummary == false) return false; SourceApiAssociationSummary other = (SourceApiAssociationSummary) obj; if (other.getAssociationId() == null ^ this.getAssociationId() == null) return false; if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false) return false; if (other.getAssociationArn() == null ^ this.getAssociationArn() == null) return false; if (other.getAssociationArn() != null && other.getAssociationArn().equals(this.getAssociationArn()) == false) return false; if (other.getSourceApiId() == null ^ this.getSourceApiId() == null) return false; if (other.getSourceApiId() != null && other.getSourceApiId().equals(this.getSourceApiId()) == false) return false; if (other.getSourceApiArn() == null ^ this.getSourceApiArn() == null) return false; if (other.getSourceApiArn() != null && other.getSourceApiArn().equals(this.getSourceApiArn()) == false) return false; if (other.getMergedApiId() == null ^ this.getMergedApiId() == null) return false; if (other.getMergedApiId() != null && other.getMergedApiId().equals(this.getMergedApiId()) == false) return false; if (other.getMergedApiArn() == null ^ this.getMergedApiArn() == null) return false; if (other.getMergedApiArn() != null && other.getMergedApiArn().equals(this.getMergedApiArn()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode()); hashCode = prime * hashCode + ((getAssociationArn() == null) ? 0 : getAssociationArn().hashCode()); hashCode = prime * hashCode + ((getSourceApiId() == null) ? 0 : getSourceApiId().hashCode()); hashCode = prime * hashCode + ((getSourceApiArn() == null) ? 0 : getSourceApiArn().hashCode()); hashCode = prime * hashCode + ((getMergedApiId() == null) ? 0 : getMergedApiId().hashCode()); hashCode = prime * hashCode + ((getMergedApiArn() == null) ? 0 : getMergedApiArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; } @Override public SourceApiAssociationSummary clone() { try { return (SourceApiAssociationSummary) 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.appsync.model.transform.SourceApiAssociationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy