* The name of the Git repository. *
*/ private String codeRepositoryName; /** ** The Amazon Resource Name (ARN) of the Git repository. *
*/ private String codeRepositoryArn; /** ** The date and time that the repository was created. *
*/ private java.util.Date creationTime; /** ** The date and time that the repository was last changed. *
*/ private java.util.Date lastModifiedTime; /** ** Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the * credentials used to access the repository. *
*/ private GitConfig gitConfig; /** ** The name of the Git repository. *
* * @param codeRepositoryName * The name of the Git repository. */ public void setCodeRepositoryName(String codeRepositoryName) { this.codeRepositoryName = codeRepositoryName; } /** ** The name of the Git repository. *
* * @return The name of the Git repository. */ public String getCodeRepositoryName() { return this.codeRepositoryName; } /** ** The name of the Git repository. *
* * @param codeRepositoryName * The name of the Git repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCodeRepositoryResult withCodeRepositoryName(String codeRepositoryName) { setCodeRepositoryName(codeRepositoryName); return this; } /** ** The Amazon Resource Name (ARN) of the Git repository. *
* * @param codeRepositoryArn * The Amazon Resource Name (ARN) of the Git repository. */ public void setCodeRepositoryArn(String codeRepositoryArn) { this.codeRepositoryArn = codeRepositoryArn; } /** ** The Amazon Resource Name (ARN) of the Git repository. *
* * @return The Amazon Resource Name (ARN) of the Git repository. */ public String getCodeRepositoryArn() { return this.codeRepositoryArn; } /** ** The Amazon Resource Name (ARN) of the Git repository. *
* * @param codeRepositoryArn * The Amazon Resource Name (ARN) of the Git repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCodeRepositoryResult withCodeRepositoryArn(String codeRepositoryArn) { setCodeRepositoryArn(codeRepositoryArn); return this; } /** ** The date and time that the repository was created. *
* * @param creationTime * The date and time that the repository was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time that the repository was created. *
* * @return The date and time that the repository was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time that the repository was created. *
* * @param creationTime * The date and time that the repository was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCodeRepositoryResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The date and time that the repository was last changed. *
* * @param lastModifiedTime * The date and time that the repository was last changed. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The date and time that the repository was last changed. *
* * @return The date and time that the repository was last changed. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The date and time that the repository was last changed. *
* * @param lastModifiedTime * The date and time that the repository was last changed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCodeRepositoryResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the * credentials used to access the repository. *
* * @param gitConfig * Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains * the credentials used to access the repository. */ public void setGitConfig(GitConfig gitConfig) { this.gitConfig = gitConfig; } /** ** Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the * credentials used to access the repository. *
* * @return Configuration details about the repository, including the URL where the repository is located, the * default branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository. */ public GitConfig getGitConfig() { return this.gitConfig; } /** ** Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the * credentials used to access the repository. *
* * @param gitConfig * Configuration details about the repository, including the URL where the repository is located, the default * branch, and the Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains * the credentials used to access the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCodeRepositoryResult withGitConfig(GitConfig gitConfig) { setGitConfig(gitConfig); 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 (getCodeRepositoryName() != null) sb.append("CodeRepositoryName: ").append(getCodeRepositoryName()).append(","); if (getCodeRepositoryArn() != null) sb.append("CodeRepositoryArn: ").append(getCodeRepositoryArn()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getGitConfig() != null) sb.append("GitConfig: ").append(getGitConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCodeRepositoryResult == false) return false; DescribeCodeRepositoryResult other = (DescribeCodeRepositoryResult) obj; if (other.getCodeRepositoryName() == null ^ this.getCodeRepositoryName() == null) return false; if (other.getCodeRepositoryName() != null && other.getCodeRepositoryName().equals(this.getCodeRepositoryName()) == false) return false; if (other.getCodeRepositoryArn() == null ^ this.getCodeRepositoryArn() == null) return false; if (other.getCodeRepositoryArn() != null && other.getCodeRepositoryArn().equals(this.getCodeRepositoryArn()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getGitConfig() == null ^ this.getGitConfig() == null) return false; if (other.getGitConfig() != null && other.getGitConfig().equals(this.getGitConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCodeRepositoryName() == null) ? 0 : getCodeRepositoryName().hashCode()); hashCode = prime * hashCode + ((getCodeRepositoryArn() == null) ? 0 : getCodeRepositoryArn().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getGitConfig() == null) ? 0 : getGitConfig().hashCode()); return hashCode; } @Override public DescribeCodeRepositoryResult clone() { try { return (DescribeCodeRepositoryResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }