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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.distribution.model;
23 import java.util.Date;
26 * An optimization policy.
28 public class OptimizationPolicy implements Policy {
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;
38 private String riskLevel;
39 private String riskType;
42 public String getPolicyName() {
47 public String getPolicyType() {
51 public void setPolicyName(final String policyName) {
52 this.policyName = policyName;
55 public String getPolicyDescription() {
56 return policyDescription;
59 public void setPolicyDescription(final String policyDescription) {
60 this.policyDescription = policyDescription;
63 public String getPolicyConfigType() {
64 return getPolicyType();
67 public String getOnapName() {
71 public void setOnapName(final String onapName) {
72 this.onapName = onapName;
75 public String getConfigBody() {
79 public void setConfigBody(final String configBody) {
80 this.configBody = configBody;
83 public String getConfigBodyType() {
84 return configBodyType;
87 public void setConfigBodyType(final String configBodyType) {
88 this.configBodyType = configBodyType;
91 public Date getTimetolive() {
95 public void setTimetolive(final Date timetolive) {
96 this.timetolive = timetolive;
99 public String getGuard() {
103 public void setGuard(final String guard) {
107 public String getRiskLevel() {
111 public void setRiskLevel(final String riskLevel) {
112 this.riskLevel = riskLevel;
115 public String getRiskType() {
119 public void setRiskType(final String riskType) {
120 this.riskType = riskType;