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;
/**
* ScanSummaryView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class ScanSummaryView extends HubView {
@SerializedName("createdAt")
private DateTime createdAt = null;
/**
* Gets or Sets status
*/
public enum StatusEnum {
@SerializedName("UNSTARTED")
UNSTARTED("UNSTARTED"),
@SerializedName("SCANNING")
SCANNING("SCANNING"),
@SerializedName("SAVING_SCAN_DATA")
SAVING_SCAN_DATA("SAVING_SCAN_DATA"),
@SerializedName("SCAN_DATA_SAVE_COMPLETE")
SCAN_DATA_SAVE_COMPLETE("SCAN_DATA_SAVE_COMPLETE"),
@SerializedName("REQUESTED_MATCH_JOB")
REQUESTED_MATCH_JOB("REQUESTED_MATCH_JOB"),
@SerializedName("MATCHING")
MATCHING("MATCHING"),
@SerializedName("BOM_VERSION_CHECK")
BOM_VERSION_CHECK("BOM_VERSION_CHECK"),
@SerializedName("BUILDING_BOM")
BUILDING_BOM("BUILDING_BOM"),
@SerializedName("COMPLETE")
COMPLETE("COMPLETE"),
@SerializedName("CANCELLED")
CANCELLED("CANCELLED"),
@SerializedName("CLONED")
CLONED("CLONED"),
@SerializedName("ERROR_SCANNING")
ERROR_SCANNING("ERROR_SCANNING"),
@SerializedName("ERROR_SAVING_SCAN_DATA")
ERROR_SAVING_SCAN_DATA("ERROR_SAVING_SCAN_DATA"),
@SerializedName("ERROR_MATCHING")
ERROR_MATCHING("ERROR_MATCHING"),
@SerializedName("ERROR_BUILDING_BOM")
ERROR_BUILDING_BOM("ERROR_BUILDING_BOM"),
@SerializedName("ERROR")
ERROR("ERROR");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("status")
private StatusEnum status = null;
@SerializedName("statusMessage")
private String statusMessage = null;
@SerializedName("updatedAt")
private DateTime updatedAt = null;
/**
* Get createdAt
* @return createdAt
**/
@ApiModelProperty(example = "null", value = "")
public DateTime getCreatedAt() {
return createdAt;
}
public ScanSummaryView status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(example = "null", required = true, value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public ScanSummaryView statusMessage(String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* Get statusMessage
* @return statusMessage
**/
@ApiModelProperty(example = "null", value = "")
public String getStatusMessage() {
return statusMessage;
}
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
* Get updatedAt
* @return updatedAt
**/
@ApiModelProperty(example = "null", value = "")
public DateTime getUpdatedAt() {
return updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ScanSummaryView scanSummaryView = (ScanSummaryView) o;
return Objects.equals(this.createdAt, scanSummaryView.createdAt) &&
Objects.equals(this.status, scanSummaryView.status) &&
Objects.equals(this.statusMessage, scanSummaryView.statusMessage) &&
Objects.equals(this.updatedAt, scanSummaryView.updatedAt) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, status, statusMessage, updatedAt, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ScanSummaryView {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).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 ");
}
}