Changes for checkstyle 8.32
[policy/apex-pdp.git] / client / client-editor / src / main / java / org / onap / policy / apex / client / editor / rest / handling / bean / BeanPolicy.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
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  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.client.editor.rest.handling.bean;
22
23 import java.util.Map;
24 import javax.xml.bind.annotation.XmlType;
25
26 /**
27  * The Policy Bean.
28  */
29 @XmlType
30 public class BeanPolicy extends BeanBase {
31     private String name = null;
32     private String version = null;
33     private String uuid = null;
34     private String description = null;
35     private String firstState = null;
36     private String template = null;
37     private Map<String, BeanState> states = null;
38
39     /**
40      * Gets the name.
41      *
42      * @return the name
43      */
44     public String getName() {
45         return name;
46     }
47
48     /**
49      * Gets the version.
50      *
51      * @return the version
52      */
53     public String getVersion() {
54         return version;
55     }
56
57     /**
58      * Gets the uuid.
59      *
60      * @return the uuid
61      */
62     public String getUuid() {
63         return uuid;
64     }
65
66     /**
67      * Gets the description.
68      *
69      * @return the description
70      */
71     public String getDescription() {
72         return description;
73     }
74
75     /**
76      * Gets the first state.
77      *
78      * @return the first state
79      */
80     public String getFirstState() {
81         return firstState;
82     }
83
84     /**
85      * Gets the template.
86      *
87      * @return the template
88      */
89     public String getTemplate() {
90         return template;
91     }
92
93     /**
94      * Gets the states.
95      *
96      * @return the states
97      */
98     public Map<String, BeanState> getStates() {
99         return states;
100     }
101
102     /**
103      * {@inheritDoc}.
104      */
105     @Override
106     public String toString() {
107         return "Policy [name=" + name + ", version=" + version + ", uuid=" + uuid + ", description=" + description
108                 + ", firstState=" + firstState + ", template=" + template + ", states=" + states + "]";
109     }
110
111 }