|
| 1 | +// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +// or more contributor license agreements. See the NOTICE file |
| 3 | +// distributed with this work for additional information |
| 4 | +// regarding copyright ownership. The ASF licenses this file |
| 5 | +// to you under the Apache License, Version 2.0 (the |
| 6 | +// "License"); you may not use this file except in compliance |
| 7 | +// with the License. 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, |
| 12 | +// software distributed under the License is distributed on an |
| 13 | +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +// KIND, either express or implied. See the License for the |
| 15 | +// specific language governing permissions and limitations |
| 16 | +// under the License. |
| 17 | +package com.cloud.agent.api.to; |
| 18 | + |
| 19 | +import java.io.Serializable; |
| 20 | + |
| 21 | +public class VmwareCbtDiskTO implements Serializable { |
| 22 | + |
| 23 | + private String diskId; |
| 24 | + private Integer diskDeviceKey; |
| 25 | + private String sourceDiskPath; |
| 26 | + private String datastoreName; |
| 27 | + private String targetPath; |
| 28 | + private String targetFormat; |
| 29 | + private String changeId; |
| 30 | + private String snapshotMor; |
| 31 | + private long capacityBytes; |
| 32 | + |
| 33 | + public VmwareCbtDiskTO() { |
| 34 | + } |
| 35 | + |
| 36 | + public VmwareCbtDiskTO(String diskId, Integer diskDeviceKey, String sourceDiskPath, String datastoreName, |
| 37 | + String targetPath, String targetFormat, String changeId, String snapshotMor, |
| 38 | + long capacityBytes) { |
| 39 | + this.diskId = diskId; |
| 40 | + this.diskDeviceKey = diskDeviceKey; |
| 41 | + this.sourceDiskPath = sourceDiskPath; |
| 42 | + this.datastoreName = datastoreName; |
| 43 | + this.targetPath = targetPath; |
| 44 | + this.targetFormat = targetFormat; |
| 45 | + this.changeId = changeId; |
| 46 | + this.snapshotMor = snapshotMor; |
| 47 | + this.capacityBytes = capacityBytes; |
| 48 | + } |
| 49 | + |
| 50 | + public String getDiskId() { |
| 51 | + return diskId; |
| 52 | + } |
| 53 | + |
| 54 | + public Integer getDiskDeviceKey() { |
| 55 | + return diskDeviceKey; |
| 56 | + } |
| 57 | + |
| 58 | + public String getSourceDiskPath() { |
| 59 | + return sourceDiskPath; |
| 60 | + } |
| 61 | + |
| 62 | + public String getDatastoreName() { |
| 63 | + return datastoreName; |
| 64 | + } |
| 65 | + |
| 66 | + public String getTargetPath() { |
| 67 | + return targetPath; |
| 68 | + } |
| 69 | + |
| 70 | + public String getTargetFormat() { |
| 71 | + return targetFormat; |
| 72 | + } |
| 73 | + |
| 74 | + public String getChangeId() { |
| 75 | + return changeId; |
| 76 | + } |
| 77 | + |
| 78 | + public String getSnapshotMor() { |
| 79 | + return snapshotMor; |
| 80 | + } |
| 81 | + |
| 82 | + public long getCapacityBytes() { |
| 83 | + return capacityBytes; |
| 84 | + } |
| 85 | +} |
0 commit comments