Implement Attributes/Outputs BE (part 2)
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaAttribute.java
1 /*
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2021 Nordix Foundation
4  *  ================================================================================
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at
8  *
9  *        http://www.apache.org/licenses/LICENSE-2.0
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  *
16  *  SPDX-License-Identifier: Apache-2.0
17  *  ============LICENSE_END=========================================================
18  */
19
20 package org.openecomp.sdc.be.tosca.model;
21
22 import lombok.Getter;
23 import lombok.NoArgsConstructor;
24 import lombok.Setter;
25
26 /**
27  * Represents a TOSCA Attribute Definition (see TOSCA 1.3, Section 3.6.12 Attribute definition)
28  */
29 @NoArgsConstructor
30 public class ToscaAttribute {
31
32     //should be default, but it is a reserved word in Java
33     private Object defaultValue;
34     @Getter
35     @Setter
36     private Object value;
37     @Getter
38     @Setter
39     private String type;
40     @Getter
41     @Setter
42     private String description;
43     @Getter
44     @Setter
45     private String status;
46
47     public Object getDefault() {
48         return defaultValue;
49     }
50
51     public void setDefault(final Object defaultValue) {
52         this.defaultValue = defaultValue;
53     }
54
55 }