/* * Copyright 2018-2023 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 UpdateSourceApiAssociationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
*/ private String mergedApiIdentifier; /** ** The description field. *
*/ private String description; /** *
* The SourceApiAssociationConfig
object data.
*
* 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 UpdateSourceApiAssociationRequest withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** ** 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 UpdateSourceApiAssociationRequest withMergedApiIdentifier(String mergedApiIdentifier) { setMergedApiIdentifier(mergedApiIdentifier); 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 UpdateSourceApiAssociationRequest withDescription(String description) { setDescription(description); return this; } /** *
* The SourceApiAssociationConfig
object data.
*
SourceApiAssociationConfig
object data.
*/
public void setSourceApiAssociationConfig(SourceApiAssociationConfig sourceApiAssociationConfig) {
this.sourceApiAssociationConfig = sourceApiAssociationConfig;
}
/**
*
* The SourceApiAssociationConfig
object data.
*
SourceApiAssociationConfig
object data.
*/
public SourceApiAssociationConfig getSourceApiAssociationConfig() {
return this.sourceApiAssociationConfig;
}
/**
*
* The SourceApiAssociationConfig
object data.
*
SourceApiAssociationConfig
object data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSourceApiAssociationRequest withSourceApiAssociationConfig(SourceApiAssociationConfig sourceApiAssociationConfig) {
setSourceApiAssociationConfig(sourceApiAssociationConfig);
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 (getMergedApiIdentifier() != null)
sb.append("MergedApiIdentifier: ").append(getMergedApiIdentifier()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getSourceApiAssociationConfig() != null)
sb.append("SourceApiAssociationConfig: ").append(getSourceApiAssociationConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateSourceApiAssociationRequest == false)
return false;
UpdateSourceApiAssociationRequest other = (UpdateSourceApiAssociationRequest) obj;
if (other.getAssociationId() == null ^ this.getAssociationId() == null)
return false;
if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false)
return false;
if (other.getMergedApiIdentifier() == null ^ this.getMergedApiIdentifier() == null)
return false;
if (other.getMergedApiIdentifier() != null && other.getMergedApiIdentifier().equals(this.getMergedApiIdentifier()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getSourceApiAssociationConfig() == null ^ this.getSourceApiAssociationConfig() == null)
return false;
if (other.getSourceApiAssociationConfig() != null && other.getSourceApiAssociationConfig().equals(this.getSourceApiAssociationConfig()) == 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 + ((getMergedApiIdentifier() == null) ? 0 : getMergedApiIdentifier().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getSourceApiAssociationConfig() == null) ? 0 : getSourceApiAssociationConfig().hashCode());
return hashCode;
}
@Override
public UpdateSourceApiAssociationRequest clone() {
return (UpdateSourceApiAssociationRequest) super.clone();
}
}