com.blackducksoftware.integration.hub.model.ComponentSearchResultView 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.HubView;
import com.blackducksoftware.integration.hub.model.MetadataView;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* ComponentSearchResultView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class ComponentSearchResultView extends HubView {
@SerializedName("component")
private String component = null;
@SerializedName("componentName")
private String componentName = null;
@SerializedName("originId")
private String originId = null;
@SerializedName("version")
private String version = null;
@SerializedName("versionName")
private String versionName = null;
public ComponentSearchResultView component(String component) {
this.component = component;
return this;
}
/**
* URL to the full representation of the component
* @return component
**/
@ApiModelProperty(example = "null", value = "URL to the full representation of the component")
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public ComponentSearchResultView componentName(String componentName) {
this.componentName = componentName;
return this;
}
/**
* Label summarizing the identity of the component found
* @return componentName
**/
@ApiModelProperty(example = "null", value = "Label summarizing the identity of the component found")
public String getComponentName() {
return componentName;
}
public void setComponentName(String componentName) {
this.componentName = componentName;
}
public ComponentSearchResultView originId(String originId) {
this.originId = originId;
return this;
}
/**
* ID indicating where the component came from
* @return originId
**/
@ApiModelProperty(example = "null", value = "ID indicating where the component came from")
public String getOriginId() {
return originId;
}
public void setOriginId(String originId) {
this.originId = originId;
}
public ComponentSearchResultView version(String version) {
this.version = version;
return this;
}
/**
* URL to the full representation of the version
* @return version
**/
@ApiModelProperty(example = "null", value = "URL to the full representation of the version")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public ComponentSearchResultView versionName(String versionName) {
this.versionName = versionName;
return this;
}
/**
* Label specifying the specific version of the component found
* @return versionName
**/
@ApiModelProperty(example = "null", value = "Label specifying the specific version of the component found")
public String getVersionName() {
return versionName;
}
public void setVersionName(String versionName) {
this.versionName = versionName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ComponentSearchResultView componentSearchResultView = (ComponentSearchResultView) o;
return Objects.equals(this.component, componentSearchResultView.component) &&
Objects.equals(this.componentName, componentSearchResultView.componentName) &&
Objects.equals(this.originId, componentSearchResultView.originId) &&
Objects.equals(this.version, componentSearchResultView.version) &&
Objects.equals(this.versionName, componentSearchResultView.versionName) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(component, componentName, originId, version, versionName, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ComponentSearchResultView {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" component: ").append(toIndentedString(component)).append("\n");
sb.append(" componentName: ").append(toIndentedString(componentName)).append("\n");
sb.append(" originId: ").append(toIndentedString(originId)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" versionName: ").append(toIndentedString(versionName)).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 ");
}
}