package com.perforce.hwsclient.models;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.google.gson.annotations.SerializedName;
@ApiModel(description = "")
public class LabelsCommand {
@SerializedName("label")
private String label = null;
@SerializedName("update")
private Date update = null;
@SerializedName("access")
private Date access = null;
@SerializedName("owner")
private String owner = null;
@SerializedName("options")
private String options = null;
@SerializedName("description")
private String description = null;
/**
* The label name.
**/
@ApiModelProperty(value = "The label name.")
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
/**
* The date the label specification was last modified.
**/
@ApiModelProperty(value = "The date the label specification was last modified.")
public Date getUpdate() {
return update;
}
public void setUpdate(Date update) {
this.update = update;
}
/**
* The date and time the label was last accessed, either by running p4 labelsync on the label, or by otherwise referring to a file with the label revision specifier @label.\n(Note: Reloading a label with p4 reload does not affect the access time.)
**/
@ApiModelProperty(value = "The date and time the label was last accessed, either by running p4 labelsync on the label, or by otherwise referring to a file with the label revision specifier @label.\n(Note: Reloading a label with p4 reload does not affect the access time.)")
public Date getAccess() {
return access;
}
public void setAccess(Date access) {
this.access = access;
}
/**
* The label’s owner.\nBy default, the user who created the label.\nOnly the owner of a label can update which files are tagged with the label.\n\nThe specified owner does not have to be a Perforce user.\nYou might want to use an arbitrary name if the user does not yet exist, or if you have deleted the user and need a placeholder until you can assign the spec to a new user.
**/
@ApiModelProperty(value = "The label’s owner.\nBy default, the user who created the label.\nOnly the owner of a label can update which files are tagged with the label.\n\nThe specified owner does not have to be a Perforce user.\nYou might want to use an arbitrary name if the user does not yet exist, or if you have deleted the user and need a placeholder until you can assign the spec to a new user.")
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
/**
* Options to control behavior and storage location of labels.\n\n- locked or unlocked: If the label is locked, the list of files tagged with the label cannot be changed with p4 labelsync.\n\n- autoreload or noautoreload. For static labels, if noautoreload is set, the label is stored in db.label, and if autoreload is set, it is stored in the unload depot. This option is ignored for automatic labels. Storing labels in the unload depot can improve performance on sites that make extremely heavy use of labels.
**/
@ApiModelProperty(value = "Options to control behavior and storage location of labels.\n\n- locked or unlocked: If the label is locked, the list of files tagged with the label cannot be changed with p4 labelsync.\n\n- autoreload or noautoreload. For static labels, if noautoreload is set, the label is stored in db.label, and if autoreload is set, it is stored in the unload depot. This option is ignored for automatic labels. Storing labels in the unload depot can improve performance on sites that make extremely heavy use of labels.")
public String getOptions() {
return options;
}
public void setOptions(String options) {
this.options = options;
}
/**
* An optional description of the label’s purpose.
**/
@ApiModelProperty(value = "An optional description of the label’s purpose.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LabelsCommand labelsCommand = (LabelsCommand) o;
return Objects.equals(this.label, labelsCommand.label) &&
Objects.equals(this.update, labelsCommand.update) &&
Objects.equals(this.access, labelsCommand.access) &&
Objects.equals(this.owner, labelsCommand.owner) &&
Objects.equals(this.options, labelsCommand.options) &&
Objects.equals(this.description, labelsCommand.description);
}
@Override
public int hashCode() {
return Objects.hash(label, update, access, owner, options, description);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LabelsCommand {\n");
sb.append(" label: ").append(toIndentedString(label)).append("\n");
sb.append(" update: ").append(toIndentedString(update)).append("\n");
sb.append(" access: ").append(toIndentedString(access)).append("\n");
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}