Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* hub-model-common
*
* Copyright (C) 2017 Black Duck Software, Inc.
* http://www.blackducksoftware.com/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License 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.
*/
/*
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
*
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.blackducksoftware.integration.hub.model;
import java.util.Objects;
import com.blackducksoftware.integration.hub.model.HubView;
import com.blackducksoftware.integration.hub.model.MetadataView;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime;
/**
* ReportView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class ReportView extends HubView {
@SerializedName("createdAt")
private DateTime createdAt = null;
@SerializedName("createdBy")
private String createdBy = null;
@SerializedName("createdByUser")
private String createdByUser = null;
@SerializedName("fileName")
private String fileName = null;
@SerializedName("fileNamePrefix")
private String fileNamePrefix = null;
@SerializedName("fileSize")
private Long fileSize = null;
@SerializedName("finishedAt")
private DateTime finishedAt = null;
@SerializedName("locale")
private String locale = null;
/**
* The file format for the given report
*/
public enum ReportFormatEnum {
@SerializedName("CSV")
CSV("CSV"),
@SerializedName("JSON")
JSON("JSON"),
@SerializedName("TEXT")
TEXT("TEXT"),
@SerializedName("UNKNOWN")
UNKNOWN("UNKNOWN");
private String value;
ReportFormatEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("reportFormat")
private ReportFormatEnum reportFormat = null;
@SerializedName("updatedAt")
private DateTime updatedAt = null;
public ReportView createdAt(DateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* The date/time the report was created
* @return createdAt
**/
@ApiModelProperty(example = "null", value = "The date/time the report was created")
public DateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(DateTime createdAt) {
this.createdAt = createdAt;
}
public ReportView createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
/**
* The user that originally created this report
* @return createdBy
**/
@ApiModelProperty(example = "null", value = "The user that originally created this report")
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public ReportView createdByUser(String createdByUser) {
this.createdByUser = createdByUser;
return this;
}
/**
* URL linking to more information about the user who created this report
* @return createdByUser
**/
@ApiModelProperty(example = "null", value = "URL linking to more information about the user who created this report")
public String getCreatedByUser() {
return createdByUser;
}
public void setCreatedByUser(String createdByUser) {
this.createdByUser = createdByUser;
}
public ReportView fileName(String fileName) {
this.fileName = fileName;
return this;
}
/**
* The file name for the given report
* @return fileName
**/
@ApiModelProperty(example = "null", value = "The file name for the given report")
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public ReportView fileNamePrefix(String fileNamePrefix) {
this.fileNamePrefix = fileNamePrefix;
return this;
}
/**
* The file name prefix for the given report
* @return fileNamePrefix
**/
@ApiModelProperty(example = "null", value = "The file name prefix for the given report")
public String getFileNamePrefix() {
return fileNamePrefix;
}
public void setFileNamePrefix(String fileNamePrefix) {
this.fileNamePrefix = fileNamePrefix;
}
public ReportView fileSize(Long fileSize) {
this.fileSize = fileSize;
return this;
}
/**
* The file size for the given report
* @return fileSize
**/
@ApiModelProperty(example = "null", value = "The file size for the given report")
public Long getFileSize() {
return fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public ReportView finishedAt(DateTime finishedAt) {
this.finishedAt = finishedAt;
return this;
}
/**
* The date/time the report was finished
* @return finishedAt
**/
@ApiModelProperty(example = "null", value = "The date/time the report was finished")
public DateTime getFinishedAt() {
return finishedAt;
}
public void setFinishedAt(DateTime finishedAt) {
this.finishedAt = finishedAt;
}
public ReportView locale(String locale) {
this.locale = locale;
return this;
}
/**
* The locale used in generating the report's contents
* @return locale
**/
@ApiModelProperty(example = "null", value = "The locale used in generating the report's contents")
public String getLocale() {
return locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
public ReportView reportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
return this;
}
/**
* The file format for the given report
* @return reportFormat
**/
@ApiModelProperty(example = "null", value = "The file format for the given report")
public ReportFormatEnum getReportFormat() {
return reportFormat;
}
public void setReportFormat(ReportFormatEnum reportFormat) {
this.reportFormat = reportFormat;
}
public ReportView updatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* The date/time the report was last updated
* @return updatedAt
**/
@ApiModelProperty(example = "null", value = "The date/time the report was last updated")
public DateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReportView reportView = (ReportView) o;
return Objects.equals(this.createdAt, reportView.createdAt) &&
Objects.equals(this.createdBy, reportView.createdBy) &&
Objects.equals(this.createdByUser, reportView.createdByUser) &&
Objects.equals(this.fileName, reportView.fileName) &&
Objects.equals(this.fileNamePrefix, reportView.fileNamePrefix) &&
Objects.equals(this.fileSize, reportView.fileSize) &&
Objects.equals(this.finishedAt, reportView.finishedAt) &&
Objects.equals(this.locale, reportView.locale) &&
Objects.equals(this.reportFormat, reportView.reportFormat) &&
Objects.equals(this.updatedAt, reportView.updatedAt) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, createdBy, createdByUser, fileName, fileNamePrefix, fileSize, finishedAt, locale, reportFormat, updatedAt, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReportView {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" createdByUser: ").append(toIndentedString(createdByUser)).append("\n");
sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n");
sb.append(" fileNamePrefix: ").append(toIndentedString(fileNamePrefix)).append("\n");
sb.append(" fileSize: ").append(toIndentedString(fileSize)).append("\n");
sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n");
sb.append(" locale: ").append(toIndentedString(locale)).append("\n");
sb.append(" reportFormat: ").append(toIndentedString(reportFormat)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}