All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ovirt.engine.sdk4.internal.containers.OpenStackSubnetContainer Maven / Gradle / Ivy

There is a newer version: 4.5.1
Show newest version
/*
Copyright (c) 2015 Red Hat, 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.ovirt.engine.sdk4.internal.containers;

import java.lang.String;
import java.util.List;
import org.ovirt.engine.sdk4.types.OpenStackNetwork;
import org.ovirt.engine.sdk4.types.OpenStackSubnet;

public class OpenStackSubnetContainer extends IdentifiedContainer implements OpenStackSubnet {
    private String cidr;
    private List dnsServers;
    private String gateway;
    private String ipVersion;
    private OpenStackNetwork openstackNetwork;
    
    public String cidr() {
        return cidr;
    }
    
    public void cidr(String newCidr) {
        cidr = newCidr;
    }
    
    public boolean cidrPresent() {
        return cidr != null;
    }
    
    public List dnsServers() {
        return makeUnmodifiableList(dnsServers);
    }
    
    public void dnsServers(List newDnsServers) {
        dnsServers = makeArrayList(newDnsServers);
    }
    
    public boolean dnsServersPresent() {
        return dnsServers != null && !dnsServers.isEmpty();
    }
    
    public String gateway() {
        return gateway;
    }
    
    public void gateway(String newGateway) {
        gateway = newGateway;
    }
    
    public boolean gatewayPresent() {
        return gateway != null;
    }
    
    public String ipVersion() {
        return ipVersion;
    }
    
    public void ipVersion(String newIpVersion) {
        ipVersion = newIpVersion;
    }
    
    public boolean ipVersionPresent() {
        return ipVersion != null;
    }
    
    public OpenStackNetwork openstackNetwork() {
        return openstackNetwork;
    }
    
    public void openstackNetwork(OpenStackNetwork newOpenstackNetwork) {
        openstackNetwork = newOpenstackNetwork;
    }
    
    public boolean openstackNetworkPresent() {
        return openstackNetwork != null;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy