2 * ========================LICENSE_START=================================
\r
5 * Copyright (C) 2024 OpenInfra Foundation Europe.
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ========================LICENSE_END===================================
\r
21 package org.oransc.nonrtric.sample.rest.response;
\r
23 import com.fasterxml.jackson.annotation.JsonProperty;
\r
24 import java.util.List;
\r
26 public class ApiResponse {
\r
28 @JsonProperty("serviceAPIDescriptions")
\r
29 private List<ServiceAPIDescription> serviceAPIDescriptions;
\r
31 public List<ServiceAPIDescription> getServiceAPIDescriptions() {
\r
32 return serviceAPIDescriptions;
\r
35 public void setServiceAPIDescriptions(List<ServiceAPIDescription> serviceAPIDescriptions) {
\r
36 this.serviceAPIDescriptions = serviceAPIDescriptions;
\r
39 public static class ServiceAPIDescription {
\r
40 @JsonProperty("apiName")
\r
41 private String apiName;
\r
43 @JsonProperty("apiId")
\r
44 private String apiId;
\r
46 @JsonProperty("description")
\r
47 private String description;
\r
49 @JsonProperty("aefProfiles")
\r
50 private List<AefProfile> aefProfiles;
\r
52 public String getApiName() {
\r
56 public void setApiName(String apiName) {
\r
57 this.apiName = apiName;
\r
60 public String getApiId() {
\r
64 public void setApiId(String apiId) {
\r
68 public String getDescription() {
\r
72 public void setDescription(String description) {
\r
73 this.description = description;
\r
76 public List<AefProfile> getAefProfiles() {
\r
80 public void setAefProfiles(List<AefProfile> aefProfiles) {
\r
81 this.aefProfiles = aefProfiles;
\r
85 public static class AefProfile {
\r
86 private String aefId;
\r
87 private String domainName;
\r
88 private List<ApiVersion> versions;
\r
89 private String protocol;
\r
90 private List<InterfaceDescription> interfaceDescriptions;
\r
92 public String getAefId() {
\r
96 public String getDomainName() {
\r
100 public void setDomainName(String domainName) {
\r
101 this.domainName = domainName;
\r
104 public void setAefId(String aefId) {
\r
105 this.aefId = aefId;
\r
108 public List<ApiVersion> getVersions() {
\r
112 public void setVersions(List<ApiVersion> versions) {
\r
113 this.versions = versions;
\r
116 public String getProtocol() {
\r
120 public void setProtocol(String protocol) {
\r
121 this.protocol = protocol;
\r
124 public List<InterfaceDescription> getInterfaceDescriptions() {
\r
125 return interfaceDescriptions;
\r
128 public void setInterfaceDescriptions(
\r
129 List<InterfaceDescription> interfaceDescriptions) {
\r
130 this.interfaceDescriptions = interfaceDescriptions;
\r
134 public static class ApiVersion {
\r
135 private String apiVersion;
\r
136 private List<Resource> resources;
\r
138 public String getApiVersion() {
\r
142 public void setApiVersion(String apiVersion) {
\r
143 this.apiVersion = apiVersion;
\r
146 public List<Resource> getResources() {
\r
150 public void setResources(List<Resource> resources) {
\r
151 this.resources = resources;
\r
155 public static class Resource {
\r
156 private String resourceName;
\r
157 private String commType;
\r
158 private String uri;
\r
159 private List<String> operations;
\r
161 public String getResourceName() {
\r
162 return resourceName;
\r
165 public void setResourceName(String resourceName) {
\r
166 this.resourceName = resourceName;
\r
169 public String getCommType() {
\r
173 public void setCommType(String commType) {
\r
174 this.commType = commType;
\r
177 public String getUri() {
\r
181 public void setUri(String uri) {
\r
185 public List<String> getOperations() {
\r
189 public void setOperations(List<String> operations) {
\r
190 this.operations = operations;
\r
194 public static class InterfaceDescription {
\r
195 private String ipv4Addr;
\r
198 public String getIpv4Addr() {
\r
202 public void setIpv4Addr(String ipv4Addr) {
\r
203 this.ipv4Addr = ipv4Addr;
\r
206 public int getPort() {
\r
210 public void setPort(int port) {
\r