1 package org.onap.sdnc.apps.ms.gra.swagger.model;
3 import java.util.Objects;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonRootName;
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import java.util.ArrayList;
10 import java.util.List;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiPreloadmodelinformationPreloadList;
12 import org.springframework.validation.annotation.Validated;
13 import javax.validation.Valid;
14 import javax.validation.constraints.*;
17 * GenericResourceApiPreloadModelInformation
20 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
21 @JsonRootName("preload-information")
22 public class GenericResourceApiPreloadModelInformation {
23 @JsonProperty("preload-list")
25 private List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList = null;
27 public GenericResourceApiPreloadModelInformation preloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) {
28 this.preloadList = preloadList;
32 public GenericResourceApiPreloadModelInformation addPreloadListItem(GenericResourceApiPreloadmodelinformationPreloadList preloadListItem) {
33 if (this.preloadList == null) {
34 this.preloadList = new ArrayList<>();
36 this.preloadList.add(preloadListItem);
44 @ApiModelProperty(value = "")
48 public List<GenericResourceApiPreloadmodelinformationPreloadList> getPreloadList() {
52 public void setPreloadList(List<GenericResourceApiPreloadmodelinformationPreloadList> preloadList) {
53 this.preloadList = preloadList;
58 public boolean equals(java.lang.Object o) {
62 if (o == null || getClass() != o.getClass()) {
65 GenericResourceApiPreloadModelInformation genericResourceApiPreloadModelInformation = (GenericResourceApiPreloadModelInformation) o;
66 return Objects.equals(this.preloadList, genericResourceApiPreloadModelInformation.preloadList);
70 public int hashCode() {
71 return Objects.hash(preloadList);
75 public String toString() {
76 StringBuilder sb = new StringBuilder();
77 sb.append("class GenericResourceApiPreloadModelInformation {\n");
79 sb.append(" preloadList: ").append(toIndentedString(preloadList)).append("\n");
85 * Convert the given object to string with each line indented by 4 spaces
86 * (except the first line).
88 private String toIndentedString(java.lang.Object o) {
92 return o.toString().replace("\n", "\n ");