2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.drools.models.domain.operational;
23 import com.google.gson.annotations.SerializedName;
24 import java.io.Serializable;
25 import lombok.Builder;
34 public class Operation implements Serializable {
35 private static final long serialVersionUID = 6175229119078195110L;
38 * Operation Identifier.
45 private String description;
50 @SerializedName("operation")
51 private ActorOperation actorOperation;
54 * Operation Timeout in seconds.
57 private int timeout = 10;
63 private int retries = 0;
69 private String success = "final_success";
75 private String failure = "final_failure";
78 * Failure Timeout Treatment.
80 @SerializedName("failure_timeout")
82 private String failureTimeout = "final_failure_timeout";
85 * Failure Retry Treatment.
87 @SerializedName("failure_retries")
89 private String failureRetries = "final_failure_retries";
92 * Failure Exception Treatment.
94 @SerializedName("failure_exception")
96 private String failureException = "final_failure_exception";
99 * Failure Guard Treatment.
101 @SerializedName("failure_guard")
103 private String failureGuard = "final_failure_guard";