com.atlassian.jira.rest.client.api.domain.AuditAssociatedItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jira-rest-java-client-api Show documentation
Show all versions of jira-rest-java-client-api Show documentation
The public API for JIRA REST Java Client
The newest version!
package com.atlassian.jira.rest.client.api.domain;
import com.google.common.base.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Item that can be associated with Audit Record.
* Represents additional information about item related to record like user, group or schema.
*
* @since v2.0
*/
public class AuditAssociatedItem {
@Nullable
private final String id;
private final String name;
private final String typeName;
@Nullable
private final String parentId;
@Nullable
private final String parentName;
public AuditAssociatedItem(final String id, final String name, final String typeName, final String parentId, final String parentName) {
this.id = id;
this.name = name;
this.typeName = typeName;
this.parentId = parentId;
this.parentName = parentName;
}
@Nullable
public String getId() {
return id;
}
@Nonnull
public String getName() {
return name;
}
@Nonnull
public String getTypeName() {
return typeName;
}
@Nullable
public String getParentId() {
return parentId;
}
@Nullable
public String getParentName() {
return parentName;
}
protected Objects.ToStringHelper getToStringHelper() {
return Objects.toStringHelper(this).
add("id", id).
add("name", name).
add("typeName", typeName).
add("parentId", parentId).
add("parentName", parentName);
}
@Override
public boolean equals(final Object o) {
if (o instanceof AuditAssociatedItem) {
final AuditAssociatedItem that = (AuditAssociatedItem) o;
return Objects.equal(this.id, that.id)
&& Objects.equal(this.name, that.name)
&& Objects.equal(this.parentId, that.parentId)
&& Objects.equal(this.parentName, that.parentName)
&& Objects.equal(this.typeName, that.typeName);
}
return false;
}
@Override
public int hashCode() {
return Objects.hashCode(id, name, typeName, typeName, parentId, parentName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy