com.blackducksoftware.integration.hub.model.VersionBomPolicyStatusView Maven / Gradle / Ivy
/**
* 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.NameValuePairView;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.joda.time.DateTime;
/**
* VersionBomPolicyStatusView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class VersionBomPolicyStatusView {
@SerializedName("componentVersionStatusCounts")
private List componentVersionStatusCounts = new ArrayList();
/**
* Gets or Sets overallStatus
*/
public enum OverallStatusEnum {
@SerializedName("NOT_IN_VIOLATION")
NOT_IN_VIOLATION("NOT_IN_VIOLATION"),
@SerializedName("IN_VIOLATION_OVERRIDDEN")
IN_VIOLATION_OVERRIDDEN("IN_VIOLATION_OVERRIDDEN"),
@SerializedName("IN_VIOLATION")
IN_VIOLATION("IN_VIOLATION");
private String value;
OverallStatusEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("overallStatus")
private OverallStatusEnum overallStatus = null;
@SerializedName("updatedAt")
private DateTime updatedAt = null;
public VersionBomPolicyStatusView componentVersionStatusCounts(List componentVersionStatusCounts) {
this.componentVersionStatusCounts = componentVersionStatusCounts;
return this;
}
public VersionBomPolicyStatusView addComponentVersionStatusCountsItem(NameValuePairView componentVersionStatusCountsItem) {
this.componentVersionStatusCounts.add(componentVersionStatusCountsItem);
return this;
}
/**
* Get componentVersionStatusCounts
* @return componentVersionStatusCounts
**/
@ApiModelProperty(example = "null", value = "")
public List getComponentVersionStatusCounts() {
return componentVersionStatusCounts;
}
public void setComponentVersionStatusCounts(List componentVersionStatusCounts) {
this.componentVersionStatusCounts = componentVersionStatusCounts;
}
public VersionBomPolicyStatusView overallStatus(OverallStatusEnum overallStatus) {
this.overallStatus = overallStatus;
return this;
}
/**
* Get overallStatus
* @return overallStatus
**/
@ApiModelProperty(example = "null", value = "")
public OverallStatusEnum getOverallStatus() {
return overallStatus;
}
public void setOverallStatus(OverallStatusEnum overallStatus) {
this.overallStatus = overallStatus;
}
public VersionBomPolicyStatusView updatedAt(DateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@ApiModelProperty(example = "null", value = "")
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;
}
VersionBomPolicyStatusView versionBomPolicyStatusView = (VersionBomPolicyStatusView) o;
return Objects.equals(this.componentVersionStatusCounts, versionBomPolicyStatusView.componentVersionStatusCounts) &&
Objects.equals(this.overallStatus, versionBomPolicyStatusView.overallStatus) &&
Objects.equals(this.updatedAt, versionBomPolicyStatusView.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(componentVersionStatusCounts, overallStatus, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VersionBomPolicyStatusView {\n");
sb.append(" componentVersionStatusCounts: ").append(toIndentedString(componentVersionStatusCounts)).append("\n");
sb.append(" overallStatus: ").append(toIndentedString(overallStatus)).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 ");
}
}