add SDC client and reception handle
[multicloud/framework.git] / artifactbroker / model / src / main / java / org / onap / policy / distribution / model / OptimizationPolicy.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 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.distribution.model;
22
23 import java.util.Date;
24
25 /**
26  * An optimization policy.
27  */
28 public class OptimizationPolicy implements Policy {
29
30     private static final String OPTIMIZATION = "Optimization";
31     private String policyName;
32     private String policyDescription;
33     private String onapName;
34     private String configBody;
35     private String configBodyType;
36     private Date timetolive;
37     private String guard;
38     private String riskLevel;
39     private String riskType;
40
41     @Override
42     public String getPolicyName() {
43         return policyName;
44     }
45
46     @Override
47     public String getPolicyType() {
48         return OPTIMIZATION;
49     }
50
51     public void setPolicyName(final String policyName) {
52         this.policyName = policyName;
53     }
54
55     public String getPolicyDescription() {
56         return policyDescription;
57     }
58
59     public void setPolicyDescription(final String policyDescription) {
60         this.policyDescription = policyDescription;
61     }
62
63     public String getPolicyConfigType() {
64         return getPolicyType();
65     }
66
67     public String getOnapName() {
68         return onapName;
69     }
70
71     public void setOnapName(final String onapName) {
72         this.onapName = onapName;
73     }
74
75     public String getConfigBody() {
76         return configBody;
77     }
78
79     public void setConfigBody(final String configBody) {
80         this.configBody = configBody;
81     }
82
83     public String getConfigBodyType() {
84         return configBodyType;
85     }
86
87     public void setConfigBodyType(final String configBodyType) {
88         this.configBodyType = configBodyType;
89     }
90
91     public Date getTimetolive() {
92         return timetolive;
93     }
94
95     public void setTimetolive(final Date timetolive) {
96         this.timetolive = timetolive;
97     }
98
99     public String getGuard() {
100         return guard;
101     }
102
103     public void setGuard(final String guard) {
104         this.guard = guard;
105     }
106
107     public String getRiskLevel() {
108         return riskLevel;
109     }
110
111     public void setRiskLevel(final String riskLevel) {
112         this.riskLevel = riskLevel;
113     }
114
115     public String getRiskType() {
116         return riskType;
117     }
118
119     public void setRiskType(final String riskType) {
120         this.riskType = riskType;
121     }
122 }