if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getDefaultVersionId() != null) sb.append("DefaultVersionId: ").append(getDefaultVersionId()).append(","); if (getAttachmentCount() != null) sb.append("AttachmentCount: ").append(getAttachmentCount()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode()); hashCode = prime * hashCode + ((getPolicyId() == null) ? 0 : getPolicyId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getDefaultVersionId() == null) ? 0 : getDefaultVersionId().hashCode()); hashCode = prime * hashCode + ((getAttachmentCount() == null) ? 0 : getAttachmentCount().hashCode()); hashCode = prime * hashCode + ((getPermissionsBoundaryUsageCount() == null) ? 0 : getPermissionsBoundaryUsageCount().hashCode()); hashCode = prime * hashCode + ((getIsAttachable() == null) ? 0 : getIsAttachable().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode()); return hashCode; }
if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getDefaultVersionId() == null ^ this.getDefaultVersionId() == null) return false; if (other.getDefaultVersionId() != null && other.getDefaultVersionId().equals(this.getDefaultVersionId()) == false) return false; if (other.getAttachmentCount() == null ^ this.getAttachmentCount() == null)
if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getDefaultVersionId() != null) sb.append("DefaultVersionId: ").append(getDefaultVersionId()).append(","); if (getAttachmentCount() != null) sb.append("AttachmentCount: ").append(getAttachmentCount()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode()); hashCode = prime * hashCode + ((getPolicyId() == null) ? 0 : getPolicyId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getDefaultVersionId() == null) ? 0 : getDefaultVersionId().hashCode()); hashCode = prime * hashCode + ((getAttachmentCount() == null) ? 0 : getAttachmentCount().hashCode()); hashCode = prime * hashCode + ((getPermissionsBoundaryUsageCount() == null) ? 0 : getPermissionsBoundaryUsageCount().hashCode()); hashCode = prime * hashCode + ((getIsAttachable() == null) ? 0 : getIsAttachable().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode()); return hashCode; }
versionRequest.setVersionId(p.getDefaultVersionId()); GetPolicyVersionResult versionResult = iamClient .getPolicyVersion(versionRequest);
if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getDefaultVersionId() == null ^ this.getDefaultVersionId() == null) return false; if (other.getDefaultVersionId() != null && other.getDefaultVersionId().equals(this.getDefaultVersionId()) == false) return false; if (other.getAttachmentCount() == null ^ this.getAttachmentCount() == null)
.withVersionId(getResult.getPolicy().getDefaultVersionId())) .getPolicyVersion();