org.ovirt.engine.sdk4.internal.containers.NicConfigurationContainer Maven / Gradle / Ivy
/*
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.Boolean;
import java.lang.String;
import org.ovirt.engine.sdk4.types.BootProtocol;
import org.ovirt.engine.sdk4.types.Ip;
import org.ovirt.engine.sdk4.types.NicConfiguration;
public class NicConfigurationContainer extends Container implements NicConfiguration {
private BootProtocol bootProtocol;
private Ip ip;
private String name;
private Boolean onBoot;
public BootProtocol bootProtocol() {
return bootProtocol;
}
public void bootProtocol(BootProtocol newBootProtocol) {
bootProtocol = newBootProtocol;
}
public boolean bootProtocolPresent() {
return bootProtocol != null;
}
public Ip ip() {
return ip;
}
public void ip(Ip newIp) {
ip = newIp;
}
public boolean ipPresent() {
return ip != null;
}
public String name() {
return name;
}
public void name(String newName) {
name = newName;
}
public boolean namePresent() {
return name != null;
}
public boolean onBoot() {
return onBoot;
}
public void onBoot(boolean newOnBoot) {
onBoot = Boolean.valueOf(newOnBoot);
}
public void onBoot(Boolean newOnBoot) {
onBoot = newOnBoot;
}
public boolean onBootPresent() {
return onBoot != null;
}
}