/* * 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.glue.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 GetSchemaVersionsDiffRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* This is a wrapper structure to contain schema identity fields. The structure contains: *
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has to be
* provided.
*
* The first of the two schema versions to be compared. *
*/ private SchemaVersionNumber firstSchemaVersionNumber; /** ** The second of the two schema versions to be compared. *
*/ private SchemaVersionNumber secondSchemaVersionNumber; /** *
* Refers to SYNTAX_DIFF
, which is the currently supported diff type.
*
* This is a wrapper structure to contain schema identity fields. The structure contains: *
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has to be
* provided.
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has
* to be provided.
*
* This is a wrapper structure to contain schema identity fields. The structure contains: *
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has to be
* provided.
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has
* to be provided.
*
* This is a wrapper structure to contain schema identity fields. The structure contains: *
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has to be
* provided.
*
* SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of SchemaArn
or
* SchemaName
has to be provided.
*
* SchemaId$SchemaName: The name of the schema. One of SchemaArn
or SchemaName
has
* to be provided.
*
* The first of the two schema versions to be compared. *
* * @param firstSchemaVersionNumber * The first of the two schema versions to be compared. */ public void setFirstSchemaVersionNumber(SchemaVersionNumber firstSchemaVersionNumber) { this.firstSchemaVersionNumber = firstSchemaVersionNumber; } /** ** The first of the two schema versions to be compared. *
* * @return The first of the two schema versions to be compared. */ public SchemaVersionNumber getFirstSchemaVersionNumber() { return this.firstSchemaVersionNumber; } /** ** The first of the two schema versions to be compared. *
* * @param firstSchemaVersionNumber * The first of the two schema versions to be compared. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionsDiffRequest withFirstSchemaVersionNumber(SchemaVersionNumber firstSchemaVersionNumber) { setFirstSchemaVersionNumber(firstSchemaVersionNumber); return this; } /** ** The second of the two schema versions to be compared. *
* * @param secondSchemaVersionNumber * The second of the two schema versions to be compared. */ public void setSecondSchemaVersionNumber(SchemaVersionNumber secondSchemaVersionNumber) { this.secondSchemaVersionNumber = secondSchemaVersionNumber; } /** ** The second of the two schema versions to be compared. *
* * @return The second of the two schema versions to be compared. */ public SchemaVersionNumber getSecondSchemaVersionNumber() { return this.secondSchemaVersionNumber; } /** ** The second of the two schema versions to be compared. *
* * @param secondSchemaVersionNumber * The second of the two schema versions to be compared. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionsDiffRequest withSecondSchemaVersionNumber(SchemaVersionNumber secondSchemaVersionNumber) { setSecondSchemaVersionNumber(secondSchemaVersionNumber); return this; } /** *
* Refers to SYNTAX_DIFF
, which is the currently supported diff type.
*
SYNTAX_DIFF
, which is the currently supported diff type.
* @see SchemaDiffType
*/
public void setSchemaDiffType(String schemaDiffType) {
this.schemaDiffType = schemaDiffType;
}
/**
*
* Refers to SYNTAX_DIFF
, which is the currently supported diff type.
*
SYNTAX_DIFF
, which is the currently supported diff type.
* @see SchemaDiffType
*/
public String getSchemaDiffType() {
return this.schemaDiffType;
}
/**
*
* Refers to SYNTAX_DIFF
, which is the currently supported diff type.
*
SYNTAX_DIFF
, which is the currently supported diff type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SchemaDiffType
*/
public GetSchemaVersionsDiffRequest withSchemaDiffType(String schemaDiffType) {
setSchemaDiffType(schemaDiffType);
return this;
}
/**
*
* Refers to SYNTAX_DIFF
, which is the currently supported diff type.
*
SYNTAX_DIFF
, which is the currently supported diff type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SchemaDiffType
*/
public GetSchemaVersionsDiffRequest withSchemaDiffType(SchemaDiffType schemaDiffType) {
this.schemaDiffType = schemaDiffType.toString();
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 (getSchemaId() != null)
sb.append("SchemaId: ").append(getSchemaId()).append(",");
if (getFirstSchemaVersionNumber() != null)
sb.append("FirstSchemaVersionNumber: ").append(getFirstSchemaVersionNumber()).append(",");
if (getSecondSchemaVersionNumber() != null)
sb.append("SecondSchemaVersionNumber: ").append(getSecondSchemaVersionNumber()).append(",");
if (getSchemaDiffType() != null)
sb.append("SchemaDiffType: ").append(getSchemaDiffType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetSchemaVersionsDiffRequest == false)
return false;
GetSchemaVersionsDiffRequest other = (GetSchemaVersionsDiffRequest) obj;
if (other.getSchemaId() == null ^ this.getSchemaId() == null)
return false;
if (other.getSchemaId() != null && other.getSchemaId().equals(this.getSchemaId()) == false)
return false;
if (other.getFirstSchemaVersionNumber() == null ^ this.getFirstSchemaVersionNumber() == null)
return false;
if (other.getFirstSchemaVersionNumber() != null && other.getFirstSchemaVersionNumber().equals(this.getFirstSchemaVersionNumber()) == false)
return false;
if (other.getSecondSchemaVersionNumber() == null ^ this.getSecondSchemaVersionNumber() == null)
return false;
if (other.getSecondSchemaVersionNumber() != null && other.getSecondSchemaVersionNumber().equals(this.getSecondSchemaVersionNumber()) == false)
return false;
if (other.getSchemaDiffType() == null ^ this.getSchemaDiffType() == null)
return false;
if (other.getSchemaDiffType() != null && other.getSchemaDiffType().equals(this.getSchemaDiffType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSchemaId() == null) ? 0 : getSchemaId().hashCode());
hashCode = prime * hashCode + ((getFirstSchemaVersionNumber() == null) ? 0 : getFirstSchemaVersionNumber().hashCode());
hashCode = prime * hashCode + ((getSecondSchemaVersionNumber() == null) ? 0 : getSecondSchemaVersionNumber().hashCode());
hashCode = prime * hashCode + ((getSchemaDiffType() == null) ? 0 : getSchemaDiffType().hashCode());
return hashCode;
}
@Override
public GetSchemaVersionsDiffRequest clone() {
return (GetSchemaVersionsDiffRequest) super.clone();
}
}