/*
* 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.schemas.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ExportSchemaResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
private String content;
private String schemaArn;
private String schemaName;
private String schemaVersion;
private String type;
/**
* @param content
*/
public void setContent(String content) {
this.content = content;
}
/**
* @return
*/
public String getContent() {
return this.content;
}
/**
* @param content
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportSchemaResult withContent(String content) {
setContent(content);
return this;
}
/**
* @param schemaArn
*/
public void setSchemaArn(String schemaArn) {
this.schemaArn = schemaArn;
}
/**
* @return
*/
public String getSchemaArn() {
return this.schemaArn;
}
/**
* @param schemaArn
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportSchemaResult withSchemaArn(String schemaArn) {
setSchemaArn(schemaArn);
return this;
}
/**
* @param schemaName
*/
public void setSchemaName(String schemaName) {
this.schemaName = schemaName;
}
/**
* @return
*/
public String getSchemaName() {
return this.schemaName;
}
/**
* @param schemaName
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportSchemaResult withSchemaName(String schemaName) {
setSchemaName(schemaName);
return this;
}
/**
* @param schemaVersion
*/
public void setSchemaVersion(String schemaVersion) {
this.schemaVersion = schemaVersion;
}
/**
* @return
*/
public String getSchemaVersion() {
return this.schemaVersion;
}
/**
* @param schemaVersion
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportSchemaResult withSchemaVersion(String schemaVersion) {
setSchemaVersion(schemaVersion);
return this;
}
/**
* @param type
*/
public void setType(String type) {
this.type = type;
}
/**
* @return
*/
public String getType() {
return this.type;
}
/**
* @param type
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportSchemaResult withType(String type) {
setType(type);
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 (getContent() != null)
sb.append("Content: ").append(getContent()).append(",");
if (getSchemaArn() != null)
sb.append("SchemaArn: ").append(getSchemaArn()).append(",");
if (getSchemaName() != null)
sb.append("SchemaName: ").append(getSchemaName()).append(",");
if (getSchemaVersion() != null)
sb.append("SchemaVersion: ").append(getSchemaVersion()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ExportSchemaResult == false)
return false;
ExportSchemaResult other = (ExportSchemaResult) obj;
if (other.getContent() == null ^ this.getContent() == null)
return false;
if (other.getContent() != null && other.getContent().equals(this.getContent()) == false)
return false;
if (other.getSchemaArn() == null ^ this.getSchemaArn() == null)
return false;
if (other.getSchemaArn() != null && other.getSchemaArn().equals(this.getSchemaArn()) == false)
return false;
if (other.getSchemaName() == null ^ this.getSchemaName() == null)
return false;
if (other.getSchemaName() != null && other.getSchemaName().equals(this.getSchemaName()) == false)
return false;
if (other.getSchemaVersion() == null ^ this.getSchemaVersion() == null)
return false;
if (other.getSchemaVersion() != null && other.getSchemaVersion().equals(this.getSchemaVersion()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode());
hashCode = prime * hashCode + ((getSchemaArn() == null) ? 0 : getSchemaArn().hashCode());
hashCode = prime * hashCode + ((getSchemaName() == null) ? 0 : getSchemaName().hashCode());
hashCode = prime * hashCode + ((getSchemaVersion() == null) ? 0 : getSchemaVersion().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
return hashCode;
}
@Override
public ExportSchemaResult clone() {
try {
return (ExportSchemaResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}