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.ActivityDataView;
import com.blackducksoftware.integration.hub.model.RiskProfileView;
import com.blackducksoftware.integration.hub.model.VersionBomLicenseView;
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;
/**
* VersionBomComponentView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class VersionBomComponentView {
@SerializedName("activityData")
private ActivityDataView activityData = null;
@SerializedName("activityRiskProfile")
private RiskProfileView activityRiskProfile = null;
@SerializedName("component")
private String component = null;
@SerializedName("componentName")
private String componentName = null;
@SerializedName("componentVersion")
private String componentVersion = null;
@SerializedName("componentVersionName")
private String componentVersionName = null;
@SerializedName("licenseRiskProfile")
private RiskProfileView licenseRiskProfile = null;
@SerializedName("licenses")
private List licenses = new ArrayList();
@SerializedName("operationalRiskProfile")
private RiskProfileView operationalRiskProfile = null;
@SerializedName("releasedOn")
private DateTime releasedOn = null;
@SerializedName("securityRiskProfile")
private RiskProfileView securityRiskProfile = null;
@SerializedName("versionRiskProfile")
private RiskProfileView versionRiskProfile = null;
public VersionBomComponentView activityData(ActivityDataView activityData) {
this.activityData = activityData;
return this;
}
/**
* Description of development activity on the component
* @return activityData
**/
@ApiModelProperty(example = "null", value = "Description of development activity on the component")
public ActivityDataView getActivityData() {
return activityData;
}
public void setActivityData(ActivityDataView activityData) {
this.activityData = activityData;
}
public VersionBomComponentView activityRiskProfile(RiskProfileView activityRiskProfile) {
this.activityRiskProfile = activityRiskProfile;
return this;
}
/**
* Risk levels associated with activity aspects of the component
* @return activityRiskProfile
**/
@ApiModelProperty(example = "null", value = "Risk levels associated with activity aspects of the component")
public RiskProfileView getActivityRiskProfile() {
return activityRiskProfile;
}
public void setActivityRiskProfile(RiskProfileView activityRiskProfile) {
this.activityRiskProfile = activityRiskProfile;
}
public VersionBomComponentView component(String component) {
this.component = component;
return this;
}
/**
* Reference to the representation of the component
* @return component
**/
@ApiModelProperty(example = "null", value = "Reference to the representation of the component")
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public VersionBomComponentView componentName(String componentName) {
this.componentName = componentName;
return this;
}
/**
* Label distinguishing the component from other components
* @return componentName
**/
@ApiModelProperty(example = "null", value = "Label distinguishing the component from other components")
public String getComponentName() {
return componentName;
}
public void setComponentName(String componentName) {
this.componentName = componentName;
}
public VersionBomComponentView componentVersion(String componentVersion) {
this.componentVersion = componentVersion;
return this;
}
/**
* Reference to the representation of the component version
* @return componentVersion
**/
@ApiModelProperty(example = "null", value = "Reference to the representation of the component version")
public String getComponentVersion() {
return componentVersion;
}
public void setComponentVersion(String componentVersion) {
this.componentVersion = componentVersion;
}
public VersionBomComponentView componentVersionName(String componentVersionName) {
this.componentVersionName = componentVersionName;
return this;
}
/**
* Label distinguishing the version from other versions of the component
* @return componentVersionName
**/
@ApiModelProperty(example = "null", value = "Label distinguishing the version from other versions of the component")
public String getComponentVersionName() {
return componentVersionName;
}
public void setComponentVersionName(String componentVersionName) {
this.componentVersionName = componentVersionName;
}
public VersionBomComponentView licenseRiskProfile(RiskProfileView licenseRiskProfile) {
this.licenseRiskProfile = licenseRiskProfile;
return this;
}
/**
* Risk levels associated with licensing aspects of the component
* @return licenseRiskProfile
**/
@ApiModelProperty(example = "null", value = "Risk levels associated with licensing aspects of the component")
public RiskProfileView getLicenseRiskProfile() {
return licenseRiskProfile;
}
public void setLicenseRiskProfile(RiskProfileView licenseRiskProfile) {
this.licenseRiskProfile = licenseRiskProfile;
}
public VersionBomComponentView licenses(List licenses) {
this.licenses = licenses;
return this;
}
public VersionBomComponentView addLicensesItem(VersionBomLicenseView licensesItem) {
this.licenses.add(licensesItem);
return this;
}
/**
* Any license(s) associated with the component's use in the project
* @return licenses
**/
@ApiModelProperty(example = "null", value = "Any license(s) associated with the component's use in the project")
public List getLicenses() {
return licenses;
}
public void setLicenses(List licenses) {
this.licenses = licenses;
}
public VersionBomComponentView operationalRiskProfile(RiskProfileView operationalRiskProfile) {
this.operationalRiskProfile = operationalRiskProfile;
return this;
}
/**
* Risk levels associated with operational aspects of the component
* @return operationalRiskProfile
**/
@ApiModelProperty(example = "null", value = "Risk levels associated with operational aspects of the component")
public RiskProfileView getOperationalRiskProfile() {
return operationalRiskProfile;
}
public void setOperationalRiskProfile(RiskProfileView operationalRiskProfile) {
this.operationalRiskProfile = operationalRiskProfile;
}
public VersionBomComponentView releasedOn(DateTime releasedOn) {
this.releasedOn = releasedOn;
return this;
}
/**
* The date the component was made available for use
* @return releasedOn
**/
@ApiModelProperty(example = "null", value = "The date the component was made available for use")
public DateTime getReleasedOn() {
return releasedOn;
}
public void setReleasedOn(DateTime releasedOn) {
this.releasedOn = releasedOn;
}
public VersionBomComponentView securityRiskProfile(RiskProfileView securityRiskProfile) {
this.securityRiskProfile = securityRiskProfile;
return this;
}
/**
* Risk levels associated with security aspects of the component
* @return securityRiskProfile
**/
@ApiModelProperty(example = "null", value = "Risk levels associated with security aspects of the component")
public RiskProfileView getSecurityRiskProfile() {
return securityRiskProfile;
}
public void setSecurityRiskProfile(RiskProfileView securityRiskProfile) {
this.securityRiskProfile = securityRiskProfile;
}
public VersionBomComponentView versionRiskProfile(RiskProfileView versionRiskProfile) {
this.versionRiskProfile = versionRiskProfile;
return this;
}
/**
* Risk levels associated with versioning aspects of the component
* @return versionRiskProfile
**/
@ApiModelProperty(example = "null", value = "Risk levels associated with versioning aspects of the component")
public RiskProfileView getVersionRiskProfile() {
return versionRiskProfile;
}
public void setVersionRiskProfile(RiskProfileView versionRiskProfile) {
this.versionRiskProfile = versionRiskProfile;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VersionBomComponentView versionBomComponentView = (VersionBomComponentView) o;
return Objects.equals(this.activityData, versionBomComponentView.activityData) &&
Objects.equals(this.activityRiskProfile, versionBomComponentView.activityRiskProfile) &&
Objects.equals(this.component, versionBomComponentView.component) &&
Objects.equals(this.componentName, versionBomComponentView.componentName) &&
Objects.equals(this.componentVersion, versionBomComponentView.componentVersion) &&
Objects.equals(this.componentVersionName, versionBomComponentView.componentVersionName) &&
Objects.equals(this.licenseRiskProfile, versionBomComponentView.licenseRiskProfile) &&
Objects.equals(this.licenses, versionBomComponentView.licenses) &&
Objects.equals(this.operationalRiskProfile, versionBomComponentView.operationalRiskProfile) &&
Objects.equals(this.releasedOn, versionBomComponentView.releasedOn) &&
Objects.equals(this.securityRiskProfile, versionBomComponentView.securityRiskProfile) &&
Objects.equals(this.versionRiskProfile, versionBomComponentView.versionRiskProfile);
}
@Override
public int hashCode() {
return Objects.hash(activityData, activityRiskProfile, component, componentName, componentVersion, componentVersionName, licenseRiskProfile, licenses, operationalRiskProfile, releasedOn, securityRiskProfile, versionRiskProfile);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VersionBomComponentView {\n");
sb.append(" activityData: ").append(toIndentedString(activityData)).append("\n");
sb.append(" activityRiskProfile: ").append(toIndentedString(activityRiskProfile)).append("\n");
sb.append(" component: ").append(toIndentedString(component)).append("\n");
sb.append(" componentName: ").append(toIndentedString(componentName)).append("\n");
sb.append(" componentVersion: ").append(toIndentedString(componentVersion)).append("\n");
sb.append(" componentVersionName: ").append(toIndentedString(componentVersionName)).append("\n");
sb.append(" licenseRiskProfile: ").append(toIndentedString(licenseRiskProfile)).append("\n");
sb.append(" licenses: ").append(toIndentedString(licenses)).append("\n");
sb.append(" operationalRiskProfile: ").append(toIndentedString(operationalRiskProfile)).append("\n");
sb.append(" releasedOn: ").append(toIndentedString(releasedOn)).append("\n");
sb.append(" securityRiskProfile: ").append(toIndentedString(securityRiskProfile)).append("\n");
sb.append(" versionRiskProfile: ").append(toIndentedString(versionRiskProfile)).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 ");
}
}