|
| 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 | + |
| 18 | +package org.apache.cloudstack.storage.datastore.api; |
| 19 | + |
| 20 | +import java.io.Serializable; |
| 21 | +import java.util.Map; |
| 22 | + |
| 23 | +public class StorPoolVolumeDef implements Serializable { |
| 24 | + |
| 25 | + private static final long serialVersionUID = 1L; |
| 26 | + private transient String name; |
| 27 | + private Long size; |
| 28 | + private Map<String, String> tags; |
| 29 | + private String parent; |
| 30 | + private Long iops; |
| 31 | + private String template; |
| 32 | + private String baseOn; |
| 33 | + private String rename; |
| 34 | + private Boolean shrinkOk; |
| 35 | + |
| 36 | + public StorPoolVolumeDef() { |
| 37 | + } |
| 38 | + |
| 39 | + public StorPoolVolumeDef(String name, Long size, Map<String, String> tags, String parent, Long iops, String template, |
| 40 | + String baseOn, String rename, Boolean shrinkOk) { |
| 41 | + super(); |
| 42 | + this.name = name; |
| 43 | + this.size = size; |
| 44 | + this.tags = tags; |
| 45 | + this.parent = parent; |
| 46 | + this.iops = iops; |
| 47 | + this.template = template; |
| 48 | + this.baseOn = baseOn; |
| 49 | + this.rename = rename; |
| 50 | + this.shrinkOk = shrinkOk; |
| 51 | + } |
| 52 | + |
| 53 | + public String getName() { |
| 54 | + return name; |
| 55 | + } |
| 56 | + public void setName(String name) { |
| 57 | + this.name = name; |
| 58 | + } |
| 59 | + public Long getSize() { |
| 60 | + return size; |
| 61 | + } |
| 62 | + public void setSize(Long size) { |
| 63 | + this.size = size; |
| 64 | + } |
| 65 | + public Map<String, String> getTags() { |
| 66 | + return tags; |
| 67 | + } |
| 68 | + public void setTags(Map<String, String> tags) { |
| 69 | + this.tags = tags; |
| 70 | + } |
| 71 | + public String getParent() { |
| 72 | + return parent; |
| 73 | + } |
| 74 | + public void setParent(String parent) { |
| 75 | + this.parent = parent; |
| 76 | + } |
| 77 | + public Long getIops() { |
| 78 | + return iops; |
| 79 | + } |
| 80 | + public void setIops(Long iops) { |
| 81 | + this.iops = iops; |
| 82 | + } |
| 83 | + public String getTemplate() { |
| 84 | + return template; |
| 85 | + } |
| 86 | + public void setTemplate(String template) { |
| 87 | + this.template = template; |
| 88 | + } |
| 89 | + public String getBaseOn() { |
| 90 | + return baseOn; |
| 91 | + } |
| 92 | + public void setBaseOn(String baseOn) { |
| 93 | + this.baseOn = baseOn; |
| 94 | + } |
| 95 | + public String getRename() { |
| 96 | + return rename; |
| 97 | + } |
| 98 | + public void setRename(String rename) { |
| 99 | + this.rename = rename; |
| 100 | + } |
| 101 | + |
| 102 | + public Boolean getShrinkOk() { |
| 103 | + return shrinkOk; |
| 104 | + } |
| 105 | + |
| 106 | + public void setShrinkOk(Boolean shrinkOk) { |
| 107 | + this.shrinkOk = shrinkOk; |
| 108 | + } |
| 109 | +} |
0 commit comments