You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/07/13 21:51:36 UTC

[GitHub] [cloudstack] fermosan commented on a diff in pull request #6550: Emc networker b&r

fermosan commented on code in PR #6550:
URL: https://github.com/apache/cloudstack/pull/6550#discussion_r920543580


##########
plugins/backup/networker/src/main/java/org/apache/cloudstack/backup/networker/api/Action.java:
##########
@@ -0,0 +1,444 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+
+package org.apache.cloudstack.backup.networker.api;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+import javax.annotation.Generated;
+import java.io.Serializable;
+import java.util.List;
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({
+        "actionReferSchedule",
+        "actionSpecificData",
+        "comment",
+        "completionNotification",
+        "concurrent",
+        "drivenBy",
+        "enabled",
+        "failureImpact",
+        "hardLimit",
+        "inactivityTimeoutInMin",
+        "name",
+        "parallelism",
+        "retries",
+        "retryDelayInSec",
+        "softLimit",
+        "scheduleActivities",
+        "scheduleOverrides",
+        "schedulePeriod"
+})
+@Generated("jsonschema2pojo")
+public class Action implements Serializable {
+
+    private final static long serialVersionUID = 1750989315434884936L;
+    @JsonProperty("actionReferSchedule")
+    private String actionReferSchedule;
+    @JsonProperty("actionSpecificData")
+    private ActionSpecificData actionSpecificData;
+    @JsonProperty("comment")
+    private String comment;
+    @JsonProperty("completionNotification")
+    private CompletionNotification completionNotification;
+    @JsonProperty("concurrent")
+    private Boolean concurrent;
+    @JsonProperty("drivenBy")
+    private String drivenBy;
+    @JsonProperty("enabled")
+    private Boolean enabled;
+    @JsonProperty("failureImpact")
+    private String failureImpact;
+    @JsonProperty("hardLimit")
+    private String hardLimit;
+    @JsonProperty("inactivityTimeoutInMin")
+    private Integer inactivityTimeoutInMin;
+    @JsonProperty("name")
+    private String name;
+    @JsonProperty("parallelism")
+    private Integer parallelism;
+    @JsonProperty("retries")
+    private Integer retries;
+    @JsonProperty("retryDelayInSec")
+    private Integer retryDelayInSec;
+    @JsonProperty("softLimit")
+    private String softLimit;
+    @JsonProperty("scheduleActivities")
+    private List<String> scheduleActivities = null;
+    @JsonProperty("scheduleOverrides")
+    private List<Object> scheduleOverrides = null;
+    @JsonProperty("schedulePeriod")
+    private String schedulePeriod;
+
+    /**
+     * No args constructor for use in serialization
+     */
+    public Action() {
+    }
+
+    /**
+     * @param failureImpact
+     * @param actionSpecificData
+     * @param completionNotification
+     * @param parallelism
+     * @param concurrent
+     * @param retryDelayInSec
+     * @param drivenBy
+     * @param enabled
+     * @param scheduleActivities
+     * @param retries
+     * @param actionReferSchedule
+     * @param name
+     * @param inactivityTimeoutInMin
+     * @param comment
+     * @param hardLimit
+     * @param scheduleOverrides
+     * @param schedulePeriod
+     * @param softLimit
+     */
+    public Action(String actionReferSchedule, ActionSpecificData actionSpecificData, String comment, CompletionNotification completionNotification, Boolean concurrent, String drivenBy, Boolean enabled, String failureImpact, String hardLimit, Integer inactivityTimeoutInMin, String name, Integer parallelism, Integer retries, Integer retryDelayInSec, String softLimit, List<String> scheduleActivities, List<Object> scheduleOverrides, String schedulePeriod) {
+        super();
+        this.actionReferSchedule = actionReferSchedule;
+        this.actionSpecificData = actionSpecificData;
+        this.comment = comment;
+        this.completionNotification = completionNotification;
+        this.concurrent = concurrent;
+        this.drivenBy = drivenBy;
+        this.enabled = enabled;
+        this.failureImpact = failureImpact;
+        this.hardLimit = hardLimit;
+        this.inactivityTimeoutInMin = inactivityTimeoutInMin;
+        this.name = name;
+        this.parallelism = parallelism;
+        this.retries = retries;
+        this.retryDelayInSec = retryDelayInSec;
+        this.softLimit = softLimit;
+        this.scheduleActivities = scheduleActivities;
+        this.scheduleOverrides = scheduleOverrides;
+        this.schedulePeriod = schedulePeriod;
+    }
+
+    @JsonProperty("actionReferSchedule")
+    public String getActionReferSchedule() {
+        return actionReferSchedule;
+    }
+
+    @JsonProperty("actionReferSchedule")
+    public void setActionReferSchedule(String actionReferSchedule) {
+        this.actionReferSchedule = actionReferSchedule;
+    }
+
+    @JsonProperty("actionSpecificData")
+    public ActionSpecificData getActionSpecificData() {
+        return actionSpecificData;
+    }
+
+    @JsonProperty("actionSpecificData")
+    public void setActionSpecificData(ActionSpecificData actionSpecificData) {
+        this.actionSpecificData = actionSpecificData;
+    }
+
+    @JsonProperty("comment")
+    public String getComment() {
+        return comment;
+    }
+
+    @JsonProperty("comment")
+    public void setComment(String comment) {
+        this.comment = comment;
+    }
+
+    @JsonProperty("completionNotification")
+    public CompletionNotification getCompletionNotification() {
+        return completionNotification;
+    }
+
+    @JsonProperty("completionNotification")
+    public void setCompletionNotification(CompletionNotification completionNotification) {
+        this.completionNotification = completionNotification;
+    }
+
+    @JsonProperty("concurrent")
+    public Boolean getConcurrent() {
+        return concurrent;
+    }
+
+    @JsonProperty("concurrent")
+    public void setConcurrent(Boolean concurrent) {
+        this.concurrent = concurrent;
+    }
+
+    @JsonProperty("drivenBy")
+    public String getDrivenBy() {
+        return drivenBy;
+    }
+
+    @JsonProperty("drivenBy")
+    public void setDrivenBy(String drivenBy) {
+        this.drivenBy = drivenBy;
+    }
+
+    @JsonProperty("enabled")
+    public Boolean getEnabled() {
+        return enabled;
+    }
+
+    @JsonProperty("enabled")
+    public void setEnabled(Boolean enabled) {
+        this.enabled = enabled;
+    }
+
+    @JsonProperty("failureImpact")
+    public String getFailureImpact() {
+        return failureImpact;
+    }
+
+    @JsonProperty("failureImpact")
+    public void setFailureImpact(String failureImpact) {
+        this.failureImpact = failureImpact;
+    }
+
+    @JsonProperty("hardLimit")
+    public String getHardLimit() {
+        return hardLimit;
+    }
+
+    @JsonProperty("hardLimit")
+    public void setHardLimit(String hardLimit) {
+        this.hardLimit = hardLimit;
+    }
+
+    @JsonProperty("inactivityTimeoutInMin")
+    public Integer getInactivityTimeoutInMin() {
+        return inactivityTimeoutInMin;
+    }
+
+    @JsonProperty("inactivityTimeoutInMin")
+    public void setInactivityTimeoutInMin(Integer inactivityTimeoutInMin) {
+        this.inactivityTimeoutInMin = inactivityTimeoutInMin;
+    }
+
+    @JsonProperty("name")
+    public String getName() {
+        return name;
+    }
+
+    @JsonProperty("name")
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    @JsonProperty("parallelism")
+    public Integer getParallelism() {
+        return parallelism;
+    }
+
+    @JsonProperty("parallelism")
+    public void setParallelism(Integer parallelism) {
+        this.parallelism = parallelism;
+    }
+
+    @JsonProperty("retries")
+    public Integer getRetries() {
+        return retries;
+    }
+
+    @JsonProperty("retries")
+    public void setRetries(Integer retries) {
+        this.retries = retries;
+    }
+
+    @JsonProperty("retryDelayInSec")
+    public Integer getRetryDelayInSec() {
+        return retryDelayInSec;
+    }
+
+    @JsonProperty("retryDelayInSec")
+    public void setRetryDelayInSec(Integer retryDelayInSec) {
+        this.retryDelayInSec = retryDelayInSec;
+    }
+
+    @JsonProperty("softLimit")
+    public String getSoftLimit() {
+        return softLimit;
+    }
+
+    @JsonProperty("softLimit")
+    public void setSoftLimit(String softLimit) {
+        this.softLimit = softLimit;
+    }
+
+    @JsonProperty("scheduleActivities")
+    public List<String> getScheduleActivities() {
+        return scheduleActivities;
+    }
+
+    @JsonProperty("scheduleActivities")
+    public void setScheduleActivities(List<String> scheduleActivities) {
+        this.scheduleActivities = scheduleActivities;
+    }
+
+    @JsonProperty("scheduleOverrides")
+    public List<Object> getScheduleOverrides() {
+        return scheduleOverrides;
+    }
+
+    @JsonProperty("scheduleOverrides")
+    public void setScheduleOverrides(List<Object> scheduleOverrides) {
+        this.scheduleOverrides = scheduleOverrides;
+    }
+
+    @JsonProperty("schedulePeriod")
+    public String getSchedulePeriod() {
+        return schedulePeriod;
+    }
+
+    @JsonProperty("schedulePeriod")
+    public void setSchedulePeriod(String schedulePeriod) {
+        this.schedulePeriod = schedulePeriod;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(Action.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
+        sb.append("actionReferSchedule");
+        sb.append('=');
+        sb.append(((this.actionReferSchedule == null) ? "<null>" : this.actionReferSchedule));
+        sb.append(',');
+        sb.append("actionSpecificData");
+        sb.append('=');
+        sb.append(((this.actionSpecificData == null) ? "<null>" : this.actionSpecificData));
+        sb.append(',');
+        sb.append("comment");
+        sb.append('=');
+        sb.append(((this.comment == null) ? "<null>" : this.comment));
+        sb.append(',');
+        sb.append("completionNotification");
+        sb.append('=');
+        sb.append(((this.completionNotification == null) ? "<null>" : this.completionNotification));
+        sb.append(',');
+        sb.append("concurrent");
+        sb.append('=');
+        sb.append(((this.concurrent == null) ? "<null>" : this.concurrent));
+        sb.append(',');
+        sb.append("drivenBy");
+        sb.append('=');
+        sb.append(((this.drivenBy == null) ? "<null>" : this.drivenBy));
+        sb.append(',');
+        sb.append("enabled");
+        sb.append('=');
+        sb.append(((this.enabled == null) ? "<null>" : this.enabled));
+        sb.append(',');
+        sb.append("failureImpact");
+        sb.append('=');
+        sb.append(((this.failureImpact == null) ? "<null>" : this.failureImpact));
+        sb.append(',');
+        sb.append("hardLimit");
+        sb.append('=');
+        sb.append(((this.hardLimit == null) ? "<null>" : this.hardLimit));
+        sb.append(',');
+        sb.append("inactivityTimeoutInMin");
+        sb.append('=');
+        sb.append(((this.inactivityTimeoutInMin == null) ? "<null>" : this.inactivityTimeoutInMin));
+        sb.append(',');
+        sb.append("name");
+        sb.append('=');
+        sb.append(((this.name == null) ? "<null>" : this.name));
+        sb.append(',');
+        sb.append("parallelism");
+        sb.append('=');
+        sb.append(((this.parallelism == null) ? "<null>" : this.parallelism));
+        sb.append(',');
+        sb.append("retries");
+        sb.append('=');
+        sb.append(((this.retries == null) ? "<null>" : this.retries));
+        sb.append(',');
+        sb.append("retryDelayInSec");
+        sb.append('=');
+        sb.append(((this.retryDelayInSec == null) ? "<null>" : this.retryDelayInSec));
+        sb.append(',');
+        sb.append("softLimit");
+        sb.append('=');
+        sb.append(((this.softLimit == null) ? "<null>" : this.softLimit));
+        sb.append(',');
+        sb.append("scheduleActivities");
+        sb.append('=');
+        sb.append(((this.scheduleActivities == null) ? "<null>" : this.scheduleActivities));
+        sb.append(',');
+        sb.append("scheduleOverrides");
+        sb.append('=');
+        sb.append(((this.scheduleOverrides == null) ? "<null>" : this.scheduleOverrides));
+        sb.append(',');
+        sb.append("schedulePeriod");
+        sb.append('=');
+        sb.append(((this.schedulePeriod == null) ? "<null>" : this.schedulePeriod));
+        sb.append(',');
+        if (sb.charAt((sb.length() - 1)) == ',') {
+            sb.setCharAt((sb.length() - 1), ']');
+        } else {
+            sb.append(']');
+        }
+        return sb.toString();
+    }
+
+    @Override
+    public int hashCode() {
+        int result = 1;
+        result = ((result * 31) + ((this.failureImpact == null) ? 0 : this.failureImpact.hashCode()));
+        result = ((result * 31) + ((this.actionSpecificData == null) ? 0 : this.actionSpecificData.hashCode()));
+        result = ((result * 31) + ((this.completionNotification == null) ? 0 : this.completionNotification.hashCode()));
+        result = ((result * 31) + ((this.parallelism == null) ? 0 : this.parallelism.hashCode()));
+        result = ((result * 31) + ((this.concurrent == null) ? 0 : this.concurrent.hashCode()));
+        result = ((result * 31) + ((this.retryDelayInSec == null) ? 0 : this.retryDelayInSec.hashCode()));
+        result = ((result * 31) + ((this.drivenBy == null) ? 0 : this.drivenBy.hashCode()));
+        result = ((result * 31) + ((this.enabled == null) ? 0 : this.enabled.hashCode()));
+        result = ((result * 31) + ((this.scheduleActivities == null) ? 0 : this.scheduleActivities.hashCode()));
+        result = ((result * 31) + ((this.retries == null) ? 0 : this.retries.hashCode()));
+        result = ((result * 31) + ((this.actionReferSchedule == null) ? 0 : this.actionReferSchedule.hashCode()));
+        result = ((result * 31) + ((this.name == null) ? 0 : this.name.hashCode()));
+        result = ((result * 31) + ((this.inactivityTimeoutInMin == null) ? 0 : this.inactivityTimeoutInMin.hashCode()));
+        result = ((result * 31) + ((this.comment == null) ? 0 : this.comment.hashCode()));
+        result = ((result * 31) + ((this.hardLimit == null) ? 0 : this.hardLimit.hashCode()));
+        result = ((result * 31) + ((this.scheduleOverrides == null) ? 0 : this.scheduleOverrides.hashCode()));
+        result = ((result * 31) + ((this.schedulePeriod == null) ? 0 : this.schedulePeriod.hashCode()));
+        result = ((result * 31) + ((this.softLimit == null) ? 0 : this.softLimit.hashCode()));
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object other) {
+        if (other == this) {
+            return true;
+        }
+        if ((other instanceof Action) == false) {
+            return false;
+        }
+        Action rhs = ((Action) other);
+        return (((((((((((((((((((this.failureImpact == rhs.failureImpact) || ((this.failureImpact != null) && this.failureImpact.equals(rhs.failureImpact))) && ((this.actionSpecificData == rhs.actionSpecificData) || ((this.actionSpecificData != null) && this.actionSpecificData.equals(rhs.actionSpecificData)))) && ((this.completionNotification == rhs.completionNotification) || ((this.completionNotification != null) &&
+                this.completionNotification.equals(rhs.completionNotification)))) && ((this.parallelism == rhs.parallelism) || ((this.parallelism != null) && this.parallelism.equals(rhs.parallelism)))) && ((this.concurrent == rhs.concurrent) || ((this.concurrent != null) && this.concurrent.equals(rhs.concurrent)))) && ((this.retryDelayInSec == rhs.retryDelayInSec) || ((this.retryDelayInSec != null) && this.retryDelayInSec.equals(rhs.retryDelayInSec)))) && ((this.drivenBy == rhs.drivenBy) || ((this.drivenBy != null) &&
+                this.drivenBy.equals(rhs.drivenBy)))) && ((this.enabled == rhs.enabled) || ((this.enabled != null) && this.enabled.equals(rhs.enabled)))) && ((this.scheduleActivities == rhs.scheduleActivities) || ((this.scheduleActivities != null) && this.scheduleActivities.equals(rhs.scheduleActivities)))) && ((this.retries == rhs.retries) || ((this.retries != null) && this.retries.equals(rhs.retries)))) &&
+                ((this.actionReferSchedule == rhs.actionReferSchedule) || ((this.actionReferSchedule != null) && this.actionReferSchedule.equals(rhs.actionReferSchedule)))) && ((this.name == rhs.name) || ((this.name != null) && this.name.equals(rhs.name)))) && ((this.inactivityTimeoutInMin == rhs.inactivityTimeoutInMin) || ((this.inactivityTimeoutInMin != null) && this.inactivityTimeoutInMin.equals(rhs.inactivityTimeoutInMin)))) && ((this.comment == rhs.comment) || ((this.comment != null) &&
+                this.comment.equals(rhs.comment)))) && ((this.hardLimit == rhs.hardLimit) || ((this.hardLimit != null) && this.hardLimit.equals(rhs.hardLimit)))) && ((this.scheduleOverrides == rhs.scheduleOverrides) || ((this.scheduleOverrides != null) && this.scheduleOverrides.equals(rhs.scheduleOverrides)))) && ((this.schedulePeriod == rhs.schedulePeriod) || ((this.schedulePeriod != null) && this.schedulePeriod.equals(rhs.schedulePeriod)))) &&
+                ((this.softLimit == rhs.softLimit) || ((this.softLimit != null) && this.softLimit.equals(rhs.softLimit))));
+    }

Review Comment:
   Will be removed since it is not used anywhere.



##########
plugins/backup/networker/src/main/java/org/apache/cloudstack/backup/networker/api/Backup.java:
##########
@@ -0,0 +1,423 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.cloudstack.backup.networker.api;
+
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+import javax.annotation.Generated;
+import java.io.Serializable;
+import java.util.List;
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({
+        "attributes",
+        "browseTime",
+        "clientHostname",
+        "clientId",
+        "completionTime",
+        "creationTime",
+        "fileCount",
+        "id",
+        "instances",
+        "level",
+        "links",
+        "name",
+        "retentionTime",
+        "saveTime",
+        "shortId",
+        "size",
+        "type"
+})
+@Generated("jsonschema2pojo")
+public class Backup implements Serializable {
+
+    private final static long serialVersionUID = -4474500098917286405L;
+    @JsonProperty("attributes")
+    private List<Attribute> attributes = null;
+    @JsonProperty("browseTime")
+    private String browseTime;
+    @JsonProperty("clientHostname")
+    private String clientHostname;
+    @JsonProperty("clientId")
+    private String clientId;
+    @JsonProperty("completionTime")
+    private String completionTime;
+    @JsonProperty("creationTime")
+    private String creationTime;
+    @JsonProperty("fileCount")
+    private Integer fileCount;
+    @JsonProperty("id")
+    private String id;
+    @JsonProperty("instances")
+    private List<Instance> instances = null;
+    @JsonProperty("level")
+    private String level;
+    @JsonProperty("links")
+    private List<Link> links = null;
+    @JsonProperty("name")
+    private String name;
+    @JsonProperty("retentionTime")
+    private String retentionTime;
+    @JsonProperty("saveTime")
+    private String saveTime;
+    @JsonProperty("shortId")
+    private String shortId;
+    @JsonProperty("size")
+    private Size size;
+    @JsonProperty("type")
+    private String type;
+
+    /**
+     * No args constructor for use in serialization
+     */
+    public Backup() {
+    }
+
+    /**
+     * @param shortId
+     * @param clientId
+     * @param browseTime
+     * @param creationTime
+     * @param instances
+     * @param level
+     * @param retentionTime
+     * @param type
+     * @param fileCount
+     * @param clientHostname
+     * @param completionTime
+     * @param size
+     * @param name
+     * @param attributes
+     * @param links
+     * @param id
+     * @param saveTime
+     */
+    public Backup(List<Attribute> attributes, String browseTime, String clientHostname, String clientId, String completionTime, String creationTime, Integer fileCount, String id, List<Instance> instances, String level, List<Link> links, String name, String retentionTime, String saveTime, String shortId, Size size, String type) {
+        super();
+        this.attributes = attributes;
+        this.browseTime = browseTime;
+        this.clientHostname = clientHostname;
+        this.clientId = clientId;
+        this.completionTime = completionTime;
+        this.creationTime = creationTime;
+        this.fileCount = fileCount;
+        this.id = id;
+        this.instances = instances;
+        this.level = level;
+        this.links = links;
+        this.name = name;
+        this.retentionTime = retentionTime;
+        this.saveTime = saveTime;
+        this.shortId = shortId;
+        this.size = size;
+        this.type = type;
+    }
+
+    @JsonProperty("attributes")
+    public List<Attribute> getAttributes() {
+        return attributes;
+    }
+
+    @JsonProperty("attributes")
+    public void setAttributes(List<Attribute> attributes) {
+        this.attributes = attributes;
+    }
+
+    @JsonProperty("browseTime")
+    public String getBrowseTime() {
+        return browseTime;
+    }
+
+    @JsonProperty("browseTime")
+    public void setBrowseTime(String browseTime) {
+        this.browseTime = browseTime;
+    }
+
+    @JsonProperty("clientHostname")
+    public String getClientHostname() {
+        return clientHostname;
+    }
+
+    @JsonProperty("clientHostname")
+    public void setClientHostname(String clientHostname) {
+        this.clientHostname = clientHostname;
+    }
+
+    @JsonProperty("clientId")
+    public String getClientId() {
+        return clientId;
+    }
+
+    @JsonProperty("clientId")
+    public void setClientId(String clientId) {
+        this.clientId = clientId;
+    }
+
+    @JsonProperty("completionTime")
+    public String getCompletionTime() {
+        return completionTime;
+    }
+
+    @JsonProperty("completionTime")
+    public void setCompletionTime(String completionTime) {
+        this.completionTime = completionTime;
+    }
+
+    @JsonProperty("creationTime")
+    public String getCreationTime() {
+        return creationTime;
+    }
+
+    @JsonProperty("creationTime")
+    public void setCreationTime(String creationTime) {
+        this.creationTime = creationTime;
+    }
+
+    @JsonProperty("fileCount")
+    public Integer getFileCount() {
+        return fileCount;
+    }
+
+    @JsonProperty("fileCount")
+    public void setFileCount(Integer fileCount) {
+        this.fileCount = fileCount;
+    }
+
+    @JsonProperty("id")
+    public String getId() {
+        return id;
+    }
+
+    @JsonProperty("id")
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    @JsonProperty("instances")
+    public List<Instance> getInstances() {
+        return instances;
+    }
+
+    @JsonProperty("instances")
+    public void setInstances(List<Instance> instances) {
+        this.instances = instances;
+    }
+
+    @JsonProperty("level")
+    public String getLevel() {
+        return level;
+    }
+
+    @JsonProperty("level")
+    public void setLevel(String level) {
+        this.level = level;
+    }
+
+    @JsonProperty("links")
+    public List<Link> getLinks() {
+        return links;
+    }
+
+    @JsonProperty("links")
+    public void setLinks(List<Link> links) {
+        this.links = links;
+    }
+
+    @JsonProperty("name")
+    public String getName() {
+        return name;
+    }
+
+    @JsonProperty("name")
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    @JsonProperty("retentionTime")
+    public String getRetentionTime() {
+        return retentionTime;
+    }
+
+    @JsonProperty("retentionTime")
+    public void setRetentionTime(String retentionTime) {
+        this.retentionTime = retentionTime;
+    }
+
+    @JsonProperty("saveTime")
+    public String getSaveTime() {
+        return saveTime;
+    }
+
+    @JsonProperty("saveTime")
+    public void setSaveTime(String saveTime) {
+        this.saveTime = saveTime;
+    }
+
+    @JsonProperty("shortId")
+    public String getShortId() {
+        return shortId;
+    }
+
+    @JsonProperty("shortId")
+    public void setShortId(String shortId) {
+        this.shortId = shortId;
+    }
+
+    @JsonProperty("size")
+    public Size getSize() {
+        return size;
+    }
+
+    @JsonProperty("size")
+    public void setSize(Size size) {
+        this.size = size;
+    }
+
+    @JsonProperty("type")
+    public String getType() {
+        return type;
+    }
+
+    @JsonProperty("type")
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(Backup.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
+        sb.append("attributes");
+        sb.append('=');
+        sb.append(((this.attributes == null) ? "<null>" : this.attributes));
+        sb.append(',');
+        sb.append("browseTime");
+        sb.append('=');
+        sb.append(((this.browseTime == null) ? "<null>" : this.browseTime));
+        sb.append(',');
+        sb.append("clientHostname");
+        sb.append('=');
+        sb.append(((this.clientHostname == null) ? "<null>" : this.clientHostname));
+        sb.append(',');
+        sb.append("clientId");
+        sb.append('=');
+        sb.append(((this.clientId == null) ? "<null>" : this.clientId));
+        sb.append(',');
+        sb.append("completionTime");
+        sb.append('=');
+        sb.append(((this.completionTime == null) ? "<null>" : this.completionTime));
+        sb.append(',');
+        sb.append("creationTime");
+        sb.append('=');
+        sb.append(((this.creationTime == null) ? "<null>" : this.creationTime));
+        sb.append(',');
+        sb.append("fileCount");
+        sb.append('=');
+        sb.append(((this.fileCount == null) ? "<null>" : this.fileCount));
+        sb.append(',');
+        sb.append("id");
+        sb.append('=');
+        sb.append(((this.id == null) ? "<null>" : this.id));
+        sb.append(',');
+        sb.append("instances");
+        sb.append('=');
+        sb.append(((this.instances == null) ? "<null>" : this.instances));
+        sb.append(',');
+        sb.append("level");
+        sb.append('=');
+        sb.append(((this.level == null) ? "<null>" : this.level));
+        sb.append(',');
+        sb.append("links");
+        sb.append('=');
+        sb.append(((this.links == null) ? "<null>" : this.links));
+        sb.append(',');
+        sb.append("name");
+        sb.append('=');
+        sb.append(((this.name == null) ? "<null>" : this.name));
+        sb.append(',');
+        sb.append("retentionTime");
+        sb.append('=');
+        sb.append(((this.retentionTime == null) ? "<null>" : this.retentionTime));
+        sb.append(',');
+        sb.append("saveTime");
+        sb.append('=');
+        sb.append(((this.saveTime == null) ? "<null>" : this.saveTime));
+        sb.append(',');
+        sb.append("shortId");
+        sb.append('=');
+        sb.append(((this.shortId == null) ? "<null>" : this.shortId));
+        sb.append(',');
+        sb.append("size");
+        sb.append('=');
+        sb.append(((this.size == null) ? "<null>" : this.size));
+        sb.append(',');
+        sb.append("type");
+        sb.append('=');
+        sb.append(((this.type == null) ? "<null>" : this.type));
+        sb.append(',');
+        if (sb.charAt((sb.length() - 1)) == ',') {
+            sb.setCharAt((sb.length() - 1), ']');
+        } else {
+            sb.append(']');
+        }
+        return sb.toString();
+    }
+
+    @Override
+    public int hashCode() {
+        int result = 1;
+        result = ((result * 31) + ((this.shortId == null) ? 0 : this.shortId.hashCode()));
+        result = ((result * 31) + ((this.clientId == null) ? 0 : this.clientId.hashCode()));
+        result = ((result * 31) + ((this.browseTime == null) ? 0 : this.browseTime.hashCode()));
+        result = ((result * 31) + ((this.creationTime == null) ? 0 : this.creationTime.hashCode()));
+        result = ((result * 31) + ((this.instances == null) ? 0 : this.instances.hashCode()));
+        result = ((result * 31) + ((this.level == null) ? 0 : this.level.hashCode()));
+        result = ((result * 31) + ((this.retentionTime == null) ? 0 : this.retentionTime.hashCode()));
+        result = ((result * 31) + ((this.type == null) ? 0 : this.type.hashCode()));
+        result = ((result * 31) + ((this.fileCount == null) ? 0 : this.fileCount.hashCode()));
+        result = ((result * 31) + ((this.clientHostname == null) ? 0 : this.clientHostname.hashCode()));
+        result = ((result * 31) + ((this.completionTime == null) ? 0 : this.completionTime.hashCode()));
+        result = ((result * 31) + ((this.size == null) ? 0 : this.size.hashCode()));
+        result = ((result * 31) + ((this.name == null) ? 0 : this.name.hashCode()));
+        result = ((result * 31) + ((this.attributes == null) ? 0 : this.attributes.hashCode()));
+        result = ((result * 31) + ((this.links == null) ? 0 : this.links.hashCode()));
+        result = ((result * 31) + ((this.id == null) ? 0 : this.id.hashCode()));
+        result = ((result * 31) + ((this.saveTime == null) ? 0 : this.saveTime.hashCode()));
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object other) {
+        if (other == this) {
+            return true;
+        }
+        if ((other instanceof Backup) == false) {
+            return false;
+        }
+        Backup rhs = ((Backup) other);
+        return ((((((((((((((((((this.shortId == rhs.shortId) || ((this.shortId != null) && this.shortId.equals(rhs.shortId))) && ((this.clientId == rhs.clientId) || ((this.clientId != null) && this.clientId.equals(rhs.clientId)))) && ((this.browseTime == rhs.browseTime) || ((this.browseTime != null) &&
+                this.browseTime.equals(rhs.browseTime)))) && ((this.creationTime == rhs.creationTime) || ((this.creationTime != null) && this.creationTime.equals(rhs.creationTime)))) && ((this.instances == rhs.instances) || ((this.instances != null) && this.instances.equals(rhs.instances)))) && ((this.level == rhs.level) || ((this.level != null) &&
+                this.level.equals(rhs.level)))) && ((this.retentionTime == rhs.retentionTime) || ((this.retentionTime != null) && this.retentionTime.equals(rhs.retentionTime)))) && ((this.type == rhs.type) || ((this.type != null) && this.type.equals(rhs.type)))) && ((this.fileCount == rhs.fileCount) || ((this.fileCount != null) && this.fileCount.equals(rhs.fileCount)))) &&
+                ((this.clientHostname == rhs.clientHostname) || ((this.clientHostname != null) && this.clientHostname.equals(rhs.clientHostname)))) && ((this.completionTime == rhs.completionTime) || ((this.completionTime != null) && this.completionTime.equals(rhs.completionTime)))) && ((this.size == rhs.size) || ((this.size != null) && this.size.equals(rhs.size)))) &&
+                ((this.name == rhs.name) || ((this.name != null) && this.name.equals(rhs.name)))) && ((this.attributes == rhs.attributes) || ((this.attributes != null) && this.attributes.equals(rhs.attributes)))) && ((this.links == rhs.links) || ((this.links != null) && this.links.equals(rhs.links)))) && ((this.id == rhs.id) || ((this.id != null) && this.id.equals(rhs.id)))) &&
+                ((this.saveTime == rhs.saveTime) || ((this.saveTime != null) && this.saveTime.equals(rhs.saveTime))));

Review Comment:
   Will be removed since it is not used anywhere.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org