/* * 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; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetRegistryResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The name of the registry. *

*/ private String registryName; /** *

* The Amazon Resource Name (ARN) of the registry. *

*/ private String registryArn; /** *

* A description of the registry. *

*/ private String description; /** *

* The status of the registry. *

*/ private String status; /** *

* The date and time the registry was created. *

*/ private String createdTime; /** *

* The date and time the registry was updated. *

*/ private String updatedTime; /** *

* The name of the registry. *

* * @param registryName * The name of the registry. */ public void setRegistryName(String registryName) { this.registryName = registryName; } /** *

* The name of the registry. *

* * @return The name of the registry. */ public String getRegistryName() { return this.registryName; } /** *

* The name of the registry. *

* * @param registryName * The name of the registry. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegistryResult withRegistryName(String registryName) { setRegistryName(registryName); return this; } /** *

* The Amazon Resource Name (ARN) of the registry. *

* * @param registryArn * The Amazon Resource Name (ARN) of the registry. */ public void setRegistryArn(String registryArn) { this.registryArn = registryArn; } /** *

* The Amazon Resource Name (ARN) of the registry. *

* * @return The Amazon Resource Name (ARN) of the registry. */ public String getRegistryArn() { return this.registryArn; } /** *

* The Amazon Resource Name (ARN) of the registry. *

* * @param registryArn * The Amazon Resource Name (ARN) of the registry. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegistryResult withRegistryArn(String registryArn) { setRegistryArn(registryArn); return this; } /** *

* A description of the registry. *

* * @param description * A description of the registry. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the registry. *

* * @return A description of the registry. */ public String getDescription() { return this.description; } /** *

* A description of the registry. *

* * @param description * A description of the registry. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegistryResult withDescription(String description) { setDescription(description); return this; } /** *

* The status of the registry. *

* * @param status * The status of the registry. * @see RegistryStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the registry. *

* * @return The status of the registry. * @see RegistryStatus */ public String getStatus() { return this.status; } /** *

* The status of the registry. *

* * @param status * The status of the registry. * @return Returns a reference to this object so that method calls can be chained together. * @see RegistryStatus */ public GetRegistryResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the registry. *

* * @param status * The status of the registry. * @return Returns a reference to this object so that method calls can be chained together. * @see RegistryStatus */ public GetRegistryResult withStatus(RegistryStatus status) { this.status = status.toString(); return this; } /** *

* The date and time the registry was created. *

* * @param createdTime * The date and time the registry was created. */ public void setCreatedTime(String createdTime) { this.createdTime = createdTime; } /** *

* The date and time the registry was created. *

* * @return The date and time the registry was created. */ public String getCreatedTime() { return this.createdTime; } /** *

* The date and time the registry was created. *

* * @param createdTime * The date and time the registry was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegistryResult withCreatedTime(String createdTime) { setCreatedTime(createdTime); return this; } /** *

* The date and time the registry was updated. *

* * @param updatedTime * The date and time the registry was updated. */ public void setUpdatedTime(String updatedTime) { this.updatedTime = updatedTime; } /** *

* The date and time the registry was updated. *

* * @return The date and time the registry was updated. */ public String getUpdatedTime() { return this.updatedTime; } /** *

* The date and time the registry was updated. *

* * @param updatedTime * The date and time the registry was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegistryResult withUpdatedTime(String updatedTime) { setUpdatedTime(updatedTime); 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 (getRegistryName() != null) sb.append("RegistryName: ").append(getRegistryName()).append(","); if (getRegistryArn() != null) sb.append("RegistryArn: ").append(getRegistryArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getUpdatedTime() != null) sb.append("UpdatedTime: ").append(getUpdatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRegistryResult == false) return false; GetRegistryResult other = (GetRegistryResult) obj; if (other.getRegistryName() == null ^ this.getRegistryName() == null) return false; if (other.getRegistryName() != null && other.getRegistryName().equals(this.getRegistryName()) == false) return false; if (other.getRegistryArn() == null ^ this.getRegistryArn() == null) return false; if (other.getRegistryArn() != null && other.getRegistryArn().equals(this.getRegistryArn()) == 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.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; if (other.getUpdatedTime() == null ^ this.getUpdatedTime() == null) return false; if (other.getUpdatedTime() != null && other.getUpdatedTime().equals(this.getUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryName() == null) ? 0 : getRegistryName().hashCode()); hashCode = prime * hashCode + ((getRegistryArn() == null) ? 0 : getRegistryArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); return hashCode; } @Override public GetRegistryResult clone() { try { return (GetRegistryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }