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.ConfigOptionView;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* ExternalExtensionConfigValueView
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class ExternalExtensionConfigValueView {
@SerializedName("description")
private String description = null;
@SerializedName("name")
private String name = null;
/**
* The type of option being presented
*/
public enum OptionTypeEnum {
@SerializedName("BOOLEAN")
BOOLEAN("BOOLEAN"),
@SerializedName("STRING")
STRING("STRING"),
@SerializedName("INTEGER")
INTEGER("INTEGER"),
@SerializedName("ARRAY")
ARRAY("ARRAY");
private String value;
OptionTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("optionType")
private OptionTypeEnum optionType = null;
@SerializedName("options")
private List options = new ArrayList();
@SerializedName("required")
private Boolean required = null;
@SerializedName("singleValue")
private Boolean singleValue = null;
@SerializedName("title")
private String title = null;
@SerializedName("value")
private List value = new ArrayList();
public ExternalExtensionConfigValueView description(String description) {
this.description = description;
return this;
}
/**
* A user-consumable summary of what the option represents
* @return description
**/
@ApiModelProperty(example = "null", value = "A user-consumable summary of what the option represents")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ExternalExtensionConfigValueView name(String name) {
this.name = name;
return this;
}
/**
* A machine-consumable identifier identifying the option despite any changes in title/description
* @return name
**/
@ApiModelProperty(example = "null", required = true, value = "A machine-consumable identifier identifying the option despite any changes in title/description")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ExternalExtensionConfigValueView optionType(OptionTypeEnum optionType) {
this.optionType = optionType;
return this;
}
/**
* The type of option being presented
* @return optionType
**/
@ApiModelProperty(example = "null", required = true, value = "The type of option being presented")
public OptionTypeEnum getOptionType() {
return optionType;
}
public void setOptionType(OptionTypeEnum optionType) {
this.optionType = optionType;
}
public ExternalExtensionConfigValueView options(List options) {
this.options = options;
return this;
}
public ExternalExtensionConfigValueView addOptionsItem(ConfigOptionView optionsItem) {
this.options.add(optionsItem);
return this;
}
/**
* The set of possible options a user may choose from for the setting
* @return options
**/
@ApiModelProperty(example = "null", required = true, value = "The set of possible options a user may choose from for the setting")
public List getOptions() {
return options;
}
public void setOptions(List options) {
this.options = options;
}
public ExternalExtensionConfigValueView required(Boolean required) {
this.required = required;
return this;
}
/**
* true if the option must be set when saving modification, false otherwise
* @return required
**/
@ApiModelProperty(example = "null", required = true, value = "true if the option must be set when saving modification, false otherwise")
public Boolean getRequired() {
return required;
}
public void setRequired(Boolean required) {
this.required = required;
}
public ExternalExtensionConfigValueView singleValue(Boolean singleValue) {
this.singleValue = singleValue;
return this;
}
/**
* True if the user must provide or select only a single value from all possible choices, false if multiple values may be selected
* @return singleValue
**/
@ApiModelProperty(example = "null", required = true, value = "True if the user must provide or select only a single value from all possible choices, false if multiple values may be selected")
public Boolean getSingleValue() {
return singleValue;
}
public void setSingleValue(Boolean singleValue) {
this.singleValue = singleValue;
}
public ExternalExtensionConfigValueView title(String title) {
this.title = title;
return this;
}
/**
* A user-consumable label distinguishing the option among all options presented
* @return title
**/
@ApiModelProperty(example = "null", required = true, value = "A user-consumable label distinguishing the option among all options presented")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public ExternalExtensionConfigValueView value(List value) {
this.value = value;
return this;
}
public ExternalExtensionConfigValueView addValueItem(String valueItem) {
this.value.add(valueItem);
return this;
}
/**
* The current value(s) selected for the option
* @return value
**/
@ApiModelProperty(example = "null", required = true, value = "The current value(s) selected for the option")
public List getValue() {
return value;
}
public void setValue(List value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExternalExtensionConfigValueView externalExtensionConfigValueView = (ExternalExtensionConfigValueView) o;
return Objects.equals(this.description, externalExtensionConfigValueView.description) &&
Objects.equals(this.name, externalExtensionConfigValueView.name) &&
Objects.equals(this.optionType, externalExtensionConfigValueView.optionType) &&
Objects.equals(this.options, externalExtensionConfigValueView.options) &&
Objects.equals(this.required, externalExtensionConfigValueView.required) &&
Objects.equals(this.singleValue, externalExtensionConfigValueView.singleValue) &&
Objects.equals(this.title, externalExtensionConfigValueView.title) &&
Objects.equals(this.value, externalExtensionConfigValueView.value);
}
@Override
public int hashCode() {
return Objects.hash(description, name, optionType, options, required, singleValue, title, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExternalExtensionConfigValueView {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" optionType: ").append(toIndentedString(optionType)).append("\n");
sb.append(" options: ").append(toIndentedString(options)).append("\n");
sb.append(" required: ").append(toIndentedString(required)).append("\n");
sb.append(" singleValue: ").append(toIndentedString(singleValue)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}