Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / scheduler / rest / RequestDetails.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.vid.scheduler.rest;
22
23 import java.util.HashMap;
24 import java.util.Map;
25 import java.util.List;
26 //import javax.annotation.Generated;
27
28 import org.openecomp.vid.domain.mso.CloudConfiguration;
29 import org.openecomp.vid.domain.mso.ModelInfo;
30 import org.openecomp.vid.domain.mso.RequestInfo;
31 import org.openecomp.vid.domain.mso.RequestParameters;
32 import org.openecomp.vid.domain.mso.SubscriberInfo;
33 import com.fasterxml.jackson.annotation.JsonAnyGetter;
34 import com.fasterxml.jackson.annotation.JsonAnySetter;
35 import com.fasterxml.jackson.annotation.JsonIgnore;
36 import com.fasterxml.jackson.annotation.JsonInclude;
37 import com.fasterxml.jackson.annotation.JsonProperty;
38 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
39 import org.apache.commons.lang.builder.EqualsBuilder;
40 import org.apache.commons.lang.builder.HashCodeBuilder;
41 import org.apache.commons.lang.builder.ToStringBuilder;
42
43 /*
44  * "domain" : "ChangeManagement",
45         "scheduleId" : "3569b875-d40e-4adb-a288-a74f4b59ec1c",
46         "scheduleName" : "VnfUpgrade/DWF",
47         "userId" : "jf9860@att.com",
48         "domainData" : {
49                 "WorkflowName" : "HEAT Stack Software Update for vNFs"
50         },
51         "status" : "PendingOptimization",
52         "schedulingInfo" : {
53                 "scheduleId" : "ChangeManagement.3569b875-d40e-4adb-a288-a74f4b59ec1c",
54                 "normalDurationInSecs" : 60,
55                 "AdditionalDurationInSecs" : 0,
56                 "concurrencyLimit" : 10,
57                 "policyId" : ["SNIRO.TimeLimitAndVerticalTopology"],
58                 "groups" : [{
59                                 "groupId" : " group1",
60                                 "node" : ["satmo415vbc", "satmo455vbc"],
61                                 "changeWindows" : [{
62                                                 "startTime" : "2017-02-15T01:00:00Z",
63                                                 "finishTime" : "2017-02-15T02:00:00Z"
64                                         }
65                                 ]
66                         }, {
67                                 "groupId" : " group2",
68                                 "node" : ["satmo555vbc"],
69                                 "changeWindows" : [{
70                                                 "startTime" : "2017-02-15T01:00:00Z",
71                                                 "finishTime" : "2017-02-15T02:00:00Z"
72                                         }, {
73                                                 "startTime" : "2017-02-15T05:00:00Z",
74                                                 "finishTime" : "2017-02-15T05:30:00Z"
75                                         }
76                                 ]
77                         }
78                 ]
79 */
80 @JsonInclude(JsonInclude.Include.NON_NULL)
81 @JsonPropertyOrder({
82     "domain",
83     "scheduleId",
84     "scheduleName",
85     "userId",
86     "domainData",
87     "status",
88     "schcedulingInfo"
89 })
90 public class RequestDetails {
91         
92         @JsonProperty("domain")
93     private String domain;
94          
95          
96     
97         @JsonProperty("domain")
98     public String getDomain() {
99         return domain;
100     }
101
102     @JsonProperty("domain")
103     public void setDomain(String domain) {
104         this.domain = domain;
105     }
106 }