| 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 | |
| 23 | import java.util.List; |
| 24 | |
| 25 | /** |
| 26 | * Information about a resource change. |
| 27 | */ |
| 28 | public class ResizeResult { |
| 29 | /** |
| 30 | * Original monthly pricing, in USD. |
| 31 | */ |
| 32 | @SerializedName("original_pricing") |
| 33 | private Double originalPricing; |
| 34 | /** |
| 35 | * New monthly pricing, in USD, after the resource changes. |
| 36 | */ |
| 37 | @SerializedName("new_pricing") |
| 38 | private Double newPricing; |
| 39 | /** |
| 40 | * Information about the change. e.g. may include information |
| 41 | * about how we calculate pro-rated credits or fees. Or what |
| 42 | * paypal subscriptions need to get changed to. Or what |
| 43 | * prepayment date changes were made. |
| 44 | * <p/> |
| 45 | * You will need to check these messages in some cases. e.g. |
| 46 | * if you are decreasing pricing and you are paying via a paypal |
| 47 | * subscription. Since you would be overpaying your identity, |
| 48 | * unless you followed the directions to modify your paypal |
| 49 | * subscription. |
| 50 | */ |
| 51 | @SerializedName("resource_change_messages") |
| 52 | private List<String> messages; |
| 53 | /** |
| 54 | * true if we made the resource changes. False if we did not |
| 55 | * make them, e.g. if we hit a billing issue, or if the host server |
| 56 | * did not have the resources to accomodate the change. |
| 57 | */ |
| 58 | @SerializedName("were_resources_changed") |
| 59 | private Boolean success; |
| 60 | |
| 61 | public double getNewPricing() { |
| 62 | return newPricing; |
| 63 | } |
| 64 | |
| 65 | public void setNewPricing(double newPricing) { |
| 66 | this.newPricing = newPricing; |
| 67 | } |
| 68 | |
| 69 | public List<String> getMessages() { |
| 70 | return messages; |
| 71 | } |
| 72 | |
| 73 | public void setMessages(List<String> messages) { |
| 74 | this.messages = messages; |
| 75 | } |
| 76 | |
| 77 | public boolean isSuccess() { |
| 78 | return success; |
| 79 | } |
| 80 | |
| 81 | public void setSuccess(boolean success) { |
| 82 | this.success = success; |
| 83 | } |
| 84 | |
| 85 | public double getOriginalPricing() { |
| 86 | |
| 87 | return originalPricing; |
| 88 | } |
| 89 | |
| 90 | public void setOriginalPricing(double originalPricing) { |
| 91 | this.originalPricing = originalPricing; |
| 92 | } |
| 93 | } |