Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2013-2014 Dell, Inc ==================================================================== Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with 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. ====================================================================
 
 
 package org.dasein.cloud.azure.network.model;
 
 
 import java.util.List;

Created by Vlad_Munthiu on 6/16/2014.
 
 
 @XmlRootElement(name="Definition", namespace ="http://schemas.microsoft.com/windowsazure")
 public class DefinitionModel {
 
     @XmlElement(name="DnsOptions", namespace ="http://schemas.microsoft.com/windowsazure")
     private DnsOptions dnsOptions;
     @XmlElement(name="Status", namespace ="http://schemas.microsoft.com/windowsazure")
     private String status;
     @XmlElement(name="Version", namespace ="http://schemas.microsoft.com/windowsazure")
     private String version;
     @XmlElementWrapper(name = "Monitors", namespace = "http://schemas.microsoft.com/windowsazure")
     @XmlElement(name="Monitor", namespace ="http://schemas.microsoft.com/windowsazure")
     private List<MonitorModelmonitors;
     @XmlElement(name="Policy", namespace ="http://schemas.microsoft.com/windowsazure")
     private PolicyModel policy;
 
     public DnsOptions getDnsOptions() {
         return ;
     }
 
     public void setDnsOptions(DnsOptions dnsOptions) {
         this. = dnsOptions;
     }
 
     public String getStatus() {
         return ;
     }
 
     public void setStatus(String status) {
         this. = status;
     }
 
     public String getVersion() {
         return ;
     }
 
     public void setVersion(String version) {
         this. = version;
     }
 
     public List<MonitorModelgetMonitors() {
         return ;
     }
 
     public void setMonitors(List<MonitorModelmonitors) {
         this. = monitors;
     }
 
     public PolicyModel getPolicy() {
         return ;
     }
 
     public void setPolicy(PolicyModel policy) {
         this. = policy;
     }
 
     @XmlRootElement(name="DnsOptions", namespace ="http://schemas.microsoft.com/windowsazure")
     public static class DnsOptions {
         @XmlElement(name="TimeToLiveInSeconds", namespace ="http://schemas.microsoft.com/windowsazure")
         private String timeToLiveInSeconds;
 
         public String getTimeToLiveInSeconds() {
             return ;
         }
 
         public void setTimeToLiveInSeconds(String timeToLiveInSeconds) {
             this. = timeToLiveInSeconds;
         }
    }
    @XmlRootElement(name="Endpoint", namespace ="http://schemas.microsoft.com/windowsazure")
    public static class EndPointModel {
        @XmlElement(name="DomainName", namespace ="http://schemas.microsoft.com/windowsazure")
        private String domainName;
        @XmlElement(name="Status", namespace ="http://schemas.microsoft.com/windowsazure")
        private String status;
        @XmlElement(name="MonitorStatus", namespace ="http://schemas.microsoft.com/windowsazure")
        private String monitorStatus;
        @XmlElement(name="Type", namespace ="http://schemas.microsoft.com/windowsazure")
        private String type;
        @XmlElement(name="Location", namespace ="http://schemas.microsoft.com/windowsazure")
        private String location;
        @XmlElement(name="Weight", namespace ="http://schemas.microsoft.com/windowsazure")
        private String weight;
        public String getDomainName() {
            return ;
        }
        public void setDomainName(String domainName) {
            this. = domainName;
        }
        public String getStatus() {
            return ;
        }
        public void setStatus(String status) {
            this. = status;
        }
        public String getMonitorStatus() {
            return ;
        }
        public void setMonitorStatus(String monitorStatus) {
            this. = monitorStatus;
        }
        public String getType() { return ; }
        public void setType(String type) { this. = type; }
        public String getLocation() { return ; }
        public void setLocation(String location) { this. = location; }
        public String getWeight() { return ; }
        public void setWeight(String weight) { this. = weight; }
    }
    @XmlRootElement(name="HttpOptions", namespace ="http://schemas.microsoft.com/windowsazure")
    public static class HttpOptionsModel {
        @XmlElement(name="Verb", namespace ="http://schemas.microsoft.com/windowsazure")
        private String verb;
        @XmlElement(name="RelativePath", namespace ="http://schemas.microsoft.com/windowsazure")
        private String relativePath;
        @XmlElement(name="ExpectedStatusCode", namespace ="http://schemas.microsoft.com/windowsazure")
        private String expectedStatusCode;
        public String getVerb() {
            return ;
        }
        public void setVerb(String verb) {
            this. = verb;
        }
        public String getRelativePath() {
            return ;
        }
        public void setRelativePath(String relativePath) {
            this. = relativePath;
        }
        public String getExpectedStatusCode() {
            return ;
        }
        public void setExpectedStatusCode(String expectedStatusCode) {
            this. = expectedStatusCode;
        }
    }
    @XmlRootElement(name="Monitor", namespace ="http://schemas.microsoft.com/windowsazure")
    public static class MonitorModel {
        @XmlElement(name="IntervalInSeconds", namespace ="http://schemas.microsoft.com/windowsazure")
        private String intervalInSeconds;
        @XmlElement(name="TimeoutInSeconds", namespace ="http://schemas.microsoft.com/windowsazure")
        private String timeoutInSeconds;
        @XmlElement(name="ToleratedNumberOfFailures", namespace ="http://schemas.microsoft.com/windowsazure")
        private String toleratedNumberOfFailures;
        @XmlElement(name="Protocol", namespace ="http://schemas.microsoft.com/windowsazure")
        private String protocol;
        @XmlElement(name="Port", namespace ="http://schemas.microsoft.com/windowsazure")
        private String port;
        @XmlElement(name="HttpOptions", namespace ="http://schemas.microsoft.com/windowsazure")
        private HttpOptionsModel httpOptions;
        public String getIntervalInSeconds() {
            return ;
        }
        public void setIntervalInSeconds(String intervalInSeconds) {
            this. = intervalInSeconds;
        }
        public String getTimeoutInSeconds() {
            return ;
        }
        public void setTimeoutInSeconds(String timeoutInSeconds) {
            this. = timeoutInSeconds;
        }
        public String getToleratedNumberOfFailures() {
            return ;
        }
        public void setToleratedNumberOfFailures(String toleratedNumberOfFailures) {
            this. = toleratedNumberOfFailures;
        }
        public String getProtocol() {
            return ;
        }
        public void setProtocol(String protocol) {
            this. = protocol;
        }
        public String getPort() {
            return ;
        }
        public void setPort(String port) {
            this. = port;
        }
        public HttpOptionsModel getHttpOptions() {
            return ;
        }
        public void setHttpOptions(HttpOptionsModel httpOptions) {
            this. = httpOptions;
        }
    }
    @XmlRootElement(name="Policy", namespace ="http://schemas.microsoft.com/windowsazure")
    public static class PolicyModel {
        @XmlElement(name="LoadBalancingMethod", namespace ="http://schemas.microsoft.com/windowsazure")
        private String loadBalancingMethod;
        @XmlElementWrapper(name = "Endpoints", namespace = "http://schemas.microsoft.com/windowsazure")
        @XmlElement(name="Endpoint", namespace ="http://schemas.microsoft.com/windowsazure")
        private List<EndPointModelendPoints;
        @XmlElement(name="MonitorStatus", namespace ="http://schemas.microsoft.com/windowsazure")
        private String monitorStatus;
        public String getLoadBalancingMethod() {
            return ;
        }
        public void setLoadBalancingMethod(String loadBalancingMethod) {
            this. = loadBalancingMethod;
        }
        public List<EndPointModelgetEndPoints() {
            return ;
        }
        public void setEndPoints(List<EndPointModelendPoints) {
            this. = endPoints;
        }
        public String getMonitorStatus() {
            return ;
        }
        public void setMonitorStatus(String monitorStatus) {
            this. = monitorStatus;
        }
    }
New to GrepCode? Check out our FAQ X