// Copyright 2012 Citrix Systems, Inc. Licensed under the // Apache License, Version 2.0 (the "License"); you may not use this // file except in compliance with the License. Citrix Systems, Inc. // reserves all rights not expressly granted by the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Automatically generated by addcopyright.py at 04/03/2012 package com.cloud.api.response; import java.util.List; import com.cloud.api.ApiConstants; import com.cloud.utils.IdentityProxy; import com.cloud.serializer.Param; import com.google.gson.annotations.SerializedName; @SuppressWarnings("unused") public class ZoneResponse extends BaseResponse { @SerializedName(ApiConstants.ID) @Param(description="Zone id") private IdentityProxy id = new IdentityProxy("data_center"); @SerializedName(ApiConstants.NAME) @Param(description="Zone name") private String name; @SerializedName(ApiConstants.DESCRIPTION) @Param(description="Zone description") private String description; @SerializedName(ApiConstants.DNS1) @Param(description="the first DNS for the Zone") private String dns1; @SerializedName(ApiConstants.DNS2) @Param(description="the second DNS for the Zone") private String dns2; @SerializedName(ApiConstants.INTERNAL_DNS1) @Param(description="the first internal DNS for the Zone") private String internalDns1; @SerializedName(ApiConstants.INTERNAL_DNS2) @Param(description="the second internal DNS for the Zone") private String internalDns2; @SerializedName(ApiConstants.VLAN) @Param(description="the vlan range of the zone") private String vlan; @SerializedName(ApiConstants.GUEST_CIDR_ADDRESS) @Param(description="the guest CIDR address for the Zone") private String guestCidrAddress; //TODO - generate description @SerializedName("status") private String status; @SerializedName(ApiConstants.DISPLAY_TEXT) @Param(description="the display text of the zone") private String displayText; @SerializedName(ApiConstants.DOMAIN) @Param(description="Network domain name for the networks in the zone") private String domain; @SerializedName(ApiConstants.DOMAIN_ID) @Param(description="the ID of the containing domain, null for public zones") private Long domainId; @SerializedName("domainname") @Param(description="the name of the containing domain, null for public zones") private String domainName; @SerializedName(ApiConstants.NETWORK_TYPE) @Param(description="the network type of the zone; can be Basic or Advanced") private String networkType; @SerializedName("securitygroupsenabled") @Param(description="true if security groups support is enabled, false otherwise") private boolean securityGroupsEnabled; @SerializedName("allocationstate") @Param(description="the allocation state of the cluster") private String allocationState; @SerializedName(ApiConstants.ZONE_TOKEN) @Param(description="Zone Token") private String zoneToken; @SerializedName(ApiConstants.DHCP_PROVIDER) @Param(description="the dhcp Provider for the Zone") private String dhcpProvider; @SerializedName("capacity") @Param(description="the capacity of the Zone", responseObject = CapacityResponse.class) private List<CapacityResponse> capacitites; public void setId(Long id) { this.id.setValue(id); } public void setName(String name) { this.name = name; } public void setDescription(String description) { this.description = description; } public void setDns1(String dns1) { this.dns1 = dns1; } public void setDns2(String dns2) { this.dns2 = dns2; } public void setInternalDns1(String internalDns1) { this.internalDns1 = internalDns1; } public void setInternalDns2(String internalDns2) { this.internalDns2 = internalDns2; } public void setVlan(String vlan) { this.vlan = vlan; } public void setGuestCidrAddress(String guestCidrAddress) { this.guestCidrAddress = guestCidrAddress; } public void setStatus(String status) { this.status = status; } public void setDisplayText(String displayText) { this.displayText = displayText; } public void setDomain(String domain) { this.domain = domain; } public void setDomainId(Long domainId) { this.domainId = domainId; } public void setType(String networkType) { this.networkType = networkType; } public void setSecurityGroupsEnabled(boolean securityGroupsEnabled) { this.securityGroupsEnabled = securityGroupsEnabled; } public void setAllocationState(String allocationState) { this.allocationState = allocationState; } public void setZoneToken(String zoneToken) { this.zoneToken = zoneToken; } public void setDhcpProvider(String dhcpProvider) { this.dhcpProvider = dhcpProvider; } public void setCapacitites(List<CapacityResponse> capacitites) { this.capacitites = capacitites; } public void setDomainName(String domainName) { this.domainName = domainName; } }