| 1 | /** |
| 2 | * Licensed to jclouds, Inc. (jclouds) under one or more |
| 3 | * contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. jclouds licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | package org.jclouds.rimuhosting.miro.domain; |
| 20 | |
| 21 | import com.google.gson.annotations.SerializedName; |
| 22 | import org.jclouds.rimuhosting.miro.domain.internal.ServerType; |
| 23 | |
| 24 | /** |
| 25 | * @author Ivan Meredith |
| 26 | */ |
| 27 | public class PricingPlan implements Comparable<PricingPlan>{ |
| 28 | @SerializedName("minimum_data_transfer_allowance_gb") |
| 29 | private Long dataTransfer; |
| 30 | @SerializedName("minimum_disk_gb") |
| 31 | private Integer diskSize; |
| 32 | @SerializedName("minimum_memory_mb") |
| 33 | private Integer ram; |
| 34 | @SerializedName("monthly_recurring_fee_usd") |
| 35 | private Double monthlyCharge; |
| 36 | @SerializedName("offered_at_data_center") |
| 37 | private DataCenter dataCenter; |
| 38 | @SerializedName("pricing_plan_code") |
| 39 | private String id; |
| 40 | @SerializedName("pricing_plan_description") |
| 41 | private String description; |
| 42 | @SerializedName("see_also_url") |
| 43 | private String see_also_url; |
| 44 | @SerializedName("server_type") |
| 45 | private ServerType serverType; |
| 46 | |
| 47 | public Long getDataTransfer() { |
| 48 | return dataTransfer; |
| 49 | } |
| 50 | |
| 51 | public void setDataTransfer(Long dataTransfer) { |
| 52 | this.dataTransfer = dataTransfer; |
| 53 | } |
| 54 | |
| 55 | public Integer getDiskSize() { |
| 56 | return diskSize; |
| 57 | } |
| 58 | |
| 59 | public void setDiskSize(Integer diskSize) { |
| 60 | this.diskSize = diskSize; |
| 61 | } |
| 62 | |
| 63 | public Integer getRam() { |
| 64 | return ram; |
| 65 | } |
| 66 | |
| 67 | public void setRam(Integer ram) { |
| 68 | this.ram = ram; |
| 69 | } |
| 70 | |
| 71 | public Double getMonthlyCharge() { |
| 72 | return monthlyCharge; |
| 73 | } |
| 74 | |
| 75 | public void setMonthlyCharge(Double monthlyCharge) { |
| 76 | this.monthlyCharge = monthlyCharge; |
| 77 | } |
| 78 | |
| 79 | public DataCenter getDataCenter() { |
| 80 | return dataCenter; |
| 81 | } |
| 82 | |
| 83 | public void setDataCenter(DataCenter dataCenter) { |
| 84 | this.dataCenter = dataCenter; |
| 85 | } |
| 86 | |
| 87 | public String getId() { |
| 88 | return id; |
| 89 | } |
| 90 | |
| 91 | public void setId(String id) { |
| 92 | this.id = id; |
| 93 | } |
| 94 | |
| 95 | public String getDescription() { |
| 96 | return description; |
| 97 | } |
| 98 | |
| 99 | public void setDescription(String description) { |
| 100 | this.description = description; |
| 101 | } |
| 102 | |
| 103 | public String getSee_also_url() { |
| 104 | return see_also_url; |
| 105 | } |
| 106 | |
| 107 | public void setSee_also_url(String see_also_url) { |
| 108 | this.see_also_url = see_also_url; |
| 109 | } |
| 110 | |
| 111 | public ServerType getServerType() { |
| 112 | return serverType; |
| 113 | } |
| 114 | |
| 115 | public void setServerType(ServerType serverType) { |
| 116 | this.serverType = serverType; |
| 117 | } |
| 118 | |
| 119 | @Override |
| 120 | public int compareTo(PricingPlan pricingPlan) { |
| 121 | return id.compareTo(pricingPlan.getId()); |
| 122 | } |
| 123 | } |