com.amazonaws.services.appsync.model.GetSourceApiAssociationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appsync 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.appsync.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetSourceApiAssociationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs
* (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in
* other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*
*/
private String mergedApiIdentifier;
/**
*
* The ID generated by the AppSync service for the source API association.
*
*/
private String associationId;
/**
*
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs
* (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in
* other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*
*
* @param mergedApiIdentifier
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged
* APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged
* APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*/
public void setMergedApiIdentifier(String mergedApiIdentifier) {
this.mergedApiIdentifier = mergedApiIdentifier;
}
/**
*
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs
* (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in
* other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*
*
* @return The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged
* APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged
* APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged
* API.
*/
public String getMergedApiIdentifier() {
return this.mergedApiIdentifier;
}
/**
*
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs
* (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in
* other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
*
*
* @param mergedApiIdentifier
* The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged
* APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged
* APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSourceApiAssociationRequest withMergedApiIdentifier(String mergedApiIdentifier) {
setMergedApiIdentifier(mergedApiIdentifier);
return this;
}
/**
*
* 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 GetSourceApiAssociationRequest withAssociationId(String associationId) {
setAssociationId(associationId);
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 (getMergedApiIdentifier() != null)
sb.append("MergedApiIdentifier: ").append(getMergedApiIdentifier()).append(",");
if (getAssociationId() != null)
sb.append("AssociationId: ").append(getAssociationId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetSourceApiAssociationRequest == false)
return false;
GetSourceApiAssociationRequest other = (GetSourceApiAssociationRequest) obj;
if (other.getMergedApiIdentifier() == null ^ this.getMergedApiIdentifier() == null)
return false;
if (other.getMergedApiIdentifier() != null && other.getMergedApiIdentifier().equals(this.getMergedApiIdentifier()) == false)
return false;
if (other.getAssociationId() == null ^ this.getAssociationId() == null)
return false;
if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMergedApiIdentifier() == null) ? 0 : getMergedApiIdentifier().hashCode());
hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode());
return hashCode;
}
@Override
public GetSourceApiAssociationRequest clone() {
return (GetSourceApiAssociationRequest) super.clone();
}
}