* The SchemaVersionId
of the schema version.
*
* The schema definition for the schema ID. *
*/ private String schemaDefinition; /** *
* The data format of the schema definition. Currently AVRO
, JSON
and
* PROTOBUF
are supported.
*
* The Amazon Resource Name (ARN) of the schema. *
*/ private String schemaArn; /** ** The version number of the schema. *
*/ private Long versionNumber; /** ** The status of the schema version. *
*/ private String status; /** ** The date and time the schema version was created. *
*/ private String createdTime; /** *
* The SchemaVersionId
of the schema version.
*
SchemaVersionId
of the schema version.
*/
public void setSchemaVersionId(String schemaVersionId) {
this.schemaVersionId = schemaVersionId;
}
/**
*
* The SchemaVersionId
of the schema version.
*
SchemaVersionId
of the schema version.
*/
public String getSchemaVersionId() {
return this.schemaVersionId;
}
/**
*
* The SchemaVersionId
of the schema version.
*
SchemaVersionId
of the schema version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSchemaVersionResult withSchemaVersionId(String schemaVersionId) {
setSchemaVersionId(schemaVersionId);
return this;
}
/**
* * The schema definition for the schema ID. *
* * @param schemaDefinition * The schema definition for the schema ID. */ public void setSchemaDefinition(String schemaDefinition) { this.schemaDefinition = schemaDefinition; } /** ** The schema definition for the schema ID. *
* * @return The schema definition for the schema ID. */ public String getSchemaDefinition() { return this.schemaDefinition; } /** ** The schema definition for the schema ID. *
* * @param schemaDefinition * The schema definition for the schema ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionResult withSchemaDefinition(String schemaDefinition) { setSchemaDefinition(schemaDefinition); return this; } /** *
* The data format of the schema definition. Currently AVRO
, JSON
and
* PROTOBUF
are supported.
*
AVRO
, JSON
and
* PROTOBUF
are supported.
* @see DataFormat
*/
public void setDataFormat(String dataFormat) {
this.dataFormat = dataFormat;
}
/**
*
* The data format of the schema definition. Currently AVRO
, JSON
and
* PROTOBUF
are supported.
*
AVRO
, JSON
and
* PROTOBUF
are supported.
* @see DataFormat
*/
public String getDataFormat() {
return this.dataFormat;
}
/**
*
* The data format of the schema definition. Currently AVRO
, JSON
and
* PROTOBUF
are supported.
*
AVRO
, JSON
and
* PROTOBUF
are supported.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataFormat
*/
public GetSchemaVersionResult withDataFormat(String dataFormat) {
setDataFormat(dataFormat);
return this;
}
/**
*
* The data format of the schema definition. Currently AVRO
, JSON
and
* PROTOBUF
are supported.
*
AVRO
, JSON
and
* PROTOBUF
are supported.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataFormat
*/
public GetSchemaVersionResult withDataFormat(DataFormat dataFormat) {
this.dataFormat = dataFormat.toString();
return this;
}
/**
* * The Amazon Resource Name (ARN) of the schema. *
* * @param schemaArn * The Amazon Resource Name (ARN) of the schema. */ public void setSchemaArn(String schemaArn) { this.schemaArn = schemaArn; } /** ** The Amazon Resource Name (ARN) of the schema. *
* * @return The Amazon Resource Name (ARN) of the schema. */ public String getSchemaArn() { return this.schemaArn; } /** ** The Amazon Resource Name (ARN) of the schema. *
* * @param schemaArn * The Amazon Resource Name (ARN) of the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionResult withSchemaArn(String schemaArn) { setSchemaArn(schemaArn); return this; } /** ** The version number of the schema. *
* * @param versionNumber * The version number of the schema. */ public void setVersionNumber(Long versionNumber) { this.versionNumber = versionNumber; } /** ** The version number of the schema. *
* * @return The version number of the schema. */ public Long getVersionNumber() { return this.versionNumber; } /** ** The version number of the schema. *
* * @param versionNumber * The version number of the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionResult withVersionNumber(Long versionNumber) { setVersionNumber(versionNumber); return this; } /** ** The status of the schema version. *
* * @param status * The status of the schema version. * @see SchemaVersionStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the schema version. *
* * @return The status of the schema version. * @see SchemaVersionStatus */ public String getStatus() { return this.status; } /** ** The status of the schema version. *
* * @param status * The status of the schema version. * @return Returns a reference to this object so that method calls can be chained together. * @see SchemaVersionStatus */ public GetSchemaVersionResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the schema version. *
* * @param status * The status of the schema version. * @return Returns a reference to this object so that method calls can be chained together. * @see SchemaVersionStatus */ public GetSchemaVersionResult withStatus(SchemaVersionStatus status) { this.status = status.toString(); return this; } /** ** The date and time the schema version was created. *
* * @param createdTime * The date and time the schema version was created. */ public void setCreatedTime(String createdTime) { this.createdTime = createdTime; } /** ** The date and time the schema version was created. *
* * @return The date and time the schema version was created. */ public String getCreatedTime() { return this.createdTime; } /** ** The date and time the schema version was created. *
* * @param createdTime * The date and time the schema version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSchemaVersionResult withCreatedTime(String createdTime) { setCreatedTime(createdTime); 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 (getSchemaVersionId() != null) sb.append("SchemaVersionId: ").append(getSchemaVersionId()).append(","); if (getSchemaDefinition() != null) sb.append("SchemaDefinition: ").append(getSchemaDefinition()).append(","); if (getDataFormat() != null) sb.append("DataFormat: ").append(getDataFormat()).append(","); if (getSchemaArn() != null) sb.append("SchemaArn: ").append(getSchemaArn()).append(","); if (getVersionNumber() != null) sb.append("VersionNumber: ").append(getVersionNumber()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSchemaVersionResult == false) return false; GetSchemaVersionResult other = (GetSchemaVersionResult) obj; if (other.getSchemaVersionId() == null ^ this.getSchemaVersionId() == null) return false; if (other.getSchemaVersionId() != null && other.getSchemaVersionId().equals(this.getSchemaVersionId()) == false) return false; if (other.getSchemaDefinition() == null ^ this.getSchemaDefinition() == null) return false; if (other.getSchemaDefinition() != null && other.getSchemaDefinition().equals(this.getSchemaDefinition()) == false) return false; if (other.getDataFormat() == null ^ this.getDataFormat() == null) return false; if (other.getDataFormat() != null && other.getDataFormat().equals(this.getDataFormat()) == 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.getVersionNumber() == null ^ this.getVersionNumber() == null) return false; if (other.getVersionNumber() != null && other.getVersionNumber().equals(this.getVersionNumber()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSchemaVersionId() == null) ? 0 : getSchemaVersionId().hashCode()); hashCode = prime * hashCode + ((getSchemaDefinition() == null) ? 0 : getSchemaDefinition().hashCode()); hashCode = prime * hashCode + ((getDataFormat() == null) ? 0 : getDataFormat().hashCode()); hashCode = prime * hashCode + ((getSchemaArn() == null) ? 0 : getSchemaArn().hashCode()); hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); return hashCode; } @Override public GetSchemaVersionResult clone() { try { return (GetSchemaVersionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }