2f3250eb6096a01e3336eb4c99e2b4beb50712e1
[sdnc/apps.git] /
1 package org.onap.sdnc.apps.ms.gra.swagger.model;
2
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.GenericResourceApiServicemodelinfrastructureService;
12 import org.springframework.validation.annotation.Validated;
13 import javax.validation.Valid;
14 import javax.validation.constraints.*;
15
16 /**
17  * GenericResourceApiServiceModelInfrastructure
18  */
19 @Validated
20 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-12T18:08:46.019-04:00")
21 @JsonRootName("services")
22 public class GenericResourceApiServiceModelInfrastructure   {
23   @JsonProperty("service")
24   @Valid
25   private List<GenericResourceApiServicemodelinfrastructureService> service = null;
26
27   public GenericResourceApiServiceModelInfrastructure service(List<GenericResourceApiServicemodelinfrastructureService> service) {
28     this.service = service;
29     return this;
30   }
31
32   public GenericResourceApiServiceModelInfrastructure addServiceItem(GenericResourceApiServicemodelinfrastructureService serviceItem) {
33     if (this.service == null) {
34       this.service = new ArrayList<>();
35     }
36     this.service.add(serviceItem);
37     return this;
38   }
39
40   /**
41    * Get service
42    * @return service
43   **/
44   @ApiModelProperty(value = "")
45
46   @Valid
47
48   public List<GenericResourceApiServicemodelinfrastructureService> getService() {
49     return service;
50   }
51
52   public void setService(List<GenericResourceApiServicemodelinfrastructureService> service) {
53     this.service = service;
54   }
55
56
57   @Override
58   public boolean equals(java.lang.Object o) {
59     if (this == o) {
60       return true;
61     }
62     if (o == null || getClass() != o.getClass()) {
63       return false;
64     }
65     GenericResourceApiServiceModelInfrastructure genericResourceApiServiceModelInfrastructure = (GenericResourceApiServiceModelInfrastructure) o;
66     return Objects.equals(this.service, genericResourceApiServiceModelInfrastructure.service);
67   }
68
69   @Override
70   public int hashCode() {
71     return Objects.hash(service);
72   }
73
74   @Override
75   public String toString() {
76     StringBuilder sb = new StringBuilder();
77     sb.append("class GenericResourceApiServiceModelInfrastructure {\n");
78     
79     sb.append("    service: ").append(toIndentedString(service)).append("\n");
80     sb.append("}");
81     return sb.toString();
82   }
83
84   /**
85    * Convert the given object to string with each line indented by 4 spaces
86    * (except the first line).
87    */
88   private String toIndentedString(java.lang.Object o) {
89     if (o == null) {
90       return "null";
91     }
92     return o.toString().replace("\n", "\n    ");
93   }
94 }
95