856fa1aaf7ddc69c2ca744f6897af66335f9ea0b
[netconf.git] / restconf / restconf-openapi / src / main / java / org / opendaylight / restconf / openapi / model / Components.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.restconf.openapi.model;
9
10 import com.fasterxml.jackson.annotation.JsonInclude;
11 import com.fasterxml.jackson.annotation.JsonInclude.Include;
12 import com.fasterxml.jackson.databind.node.ObjectNode;
13
14 @JsonInclude(Include.NON_NULL)
15 public class Components {
16     private ObjectNode schemas;
17     private SecuritySchemes securitySchemes;
18
19     public Components(ObjectNode schemas, SecuritySchemes securitySchemes) {
20         this.schemas = schemas;
21         this.securitySchemes = securitySchemes;
22     }
23
24     public ObjectNode getSchemas() {
25         return schemas;
26     }
27
28     public void setSchemas(ObjectNode schemas) {
29         this.schemas = schemas;
30     }
31
32     public SecuritySchemes getSecuritySchemes() {
33         return securitySchemes;
34     }
35
36     public void setSecuritySchemes(SecuritySchemes securitySchemes) {
37         this.securitySchemes = securitySchemes;
38     }
39 }