mirror of https://github.com/apache/cloudstack.git
158 lines
4.0 KiB
Java
158 lines
4.0 KiB
Java
/**
|
|
* Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
|
|
*
|
|
* This software is licensed under the GNU General Public License v3 or later.
|
|
*
|
|
* It is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or any later version.
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
package com.cloud.api.response;
|
|
|
|
import com.cloud.serializer.Param;
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
public class ZoneResponse extends BaseResponse {
|
|
@SerializedName("id") @Param(description="Zone id")
|
|
private Long id;
|
|
|
|
@SerializedName("name") @Param(description="Zone name")
|
|
private String name;
|
|
|
|
@SerializedName("description") @Param(description="Zone description")
|
|
private String description;
|
|
|
|
@SerializedName("dns1") @Param(description="the first DNS for the Zone")
|
|
private String dns1;
|
|
|
|
@SerializedName("dns2") @Param(description="the second DNS for the Zone")
|
|
private String dns2;
|
|
|
|
@SerializedName("internaldns1") @Param(description="the first internal DNS for the Zone")
|
|
private String internalDns1;
|
|
|
|
@SerializedName("internaldns2") @Param(description="the second internal DNS for the Zone")
|
|
private String internalDns2;
|
|
|
|
//FIXME - add description. This parameter is called "vnet" in updateZone, and vlan in createZone - figure out which one is right.
|
|
@SerializedName("vlan")
|
|
private String vlan;
|
|
|
|
@SerializedName("guestcidraddress") @Param(description="the guest CIDR address for the Zone")
|
|
private String guestCidrAddress;
|
|
|
|
//FIXME - do we need 2 parameters below at all?
|
|
@SerializedName("status")
|
|
private String status;
|
|
|
|
@SerializedName("displaytext")
|
|
private String displayText;
|
|
|
|
@SerializedName("domain") @Param(description="Domain name for the Vms in the zone")
|
|
private String domain;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public String getDns1() {
|
|
return dns1;
|
|
}
|
|
|
|
public void setDns1(String dns1) {
|
|
this.dns1 = dns1;
|
|
}
|
|
|
|
public String getDns2() {
|
|
return dns2;
|
|
}
|
|
|
|
public void setDns2(String dns2) {
|
|
this.dns2 = dns2;
|
|
}
|
|
|
|
public String getInternalDns1() {
|
|
return internalDns1;
|
|
}
|
|
|
|
public void setInternalDns1(String internalDns1) {
|
|
this.internalDns1 = internalDns1;
|
|
}
|
|
|
|
public String getInternalDns2() {
|
|
return internalDns2;
|
|
}
|
|
|
|
public void setInternalDns2(String internalDns2) {
|
|
this.internalDns2 = internalDns2;
|
|
}
|
|
|
|
public String getVlan() {
|
|
return vlan;
|
|
}
|
|
|
|
public void setVlan(String vlan) {
|
|
this.vlan = vlan;
|
|
}
|
|
|
|
public String getGuestCidrAddress() {
|
|
return guestCidrAddress;
|
|
}
|
|
|
|
public void setGuestCidrAddress(String guestCidrAddress) {
|
|
this.guestCidrAddress = guestCidrAddress;
|
|
}
|
|
|
|
public String getStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(String status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public String getDisplayText() {
|
|
return displayText;
|
|
}
|
|
|
|
public void setDisplayText(String displayText) {
|
|
this.displayText = displayText;
|
|
}
|
|
|
|
public String getDomain() {
|
|
return domain;
|
|
}
|
|
|
|
public void setDomain(String domain) {
|
|
this.domain = domain;
|
|
}
|
|
}
|