org.ovirt.engine.sdk4.internal.containers.GlusterBrickAdvancedDetailsContainer 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.String;
import java.math.BigInteger;
import java.util.List;
import org.ovirt.engine.sdk4.types.GlusterBrickAdvancedDetails;
import org.ovirt.engine.sdk4.types.GlusterClient;
import org.ovirt.engine.sdk4.types.GlusterMemoryPool;
public class GlusterBrickAdvancedDetailsContainer extends DeviceContainer implements GlusterBrickAdvancedDetails {
private String device;
private String fsName;
private List glusterClients;
private List memoryPools;
private String mntOptions;
private BigInteger pid;
private BigInteger port;
public String device() {
return device;
}
public void device(String newDevice) {
device = newDevice;
}
public boolean devicePresent() {
return device != null;
}
public String fsName() {
return fsName;
}
public void fsName(String newFsName) {
fsName = newFsName;
}
public boolean fsNamePresent() {
return fsName != null;
}
public List glusterClients() {
return makeUnmodifiableList(glusterClients);
}
public void glusterClients(List newGlusterClients) {
glusterClients = makeArrayList(newGlusterClients);
}
public boolean glusterClientsPresent() {
return glusterClients != null && !glusterClients.isEmpty();
}
public List memoryPools() {
return makeUnmodifiableList(memoryPools);
}
public void memoryPools(List newMemoryPools) {
memoryPools = makeArrayList(newMemoryPools);
}
public boolean memoryPoolsPresent() {
return memoryPools != null && !memoryPools.isEmpty();
}
public String mntOptions() {
return mntOptions;
}
public void mntOptions(String newMntOptions) {
mntOptions = newMntOptions;
}
public boolean mntOptionsPresent() {
return mntOptions != null;
}
public BigInteger pid() {
return pid;
}
public void pid(BigInteger newPid) {
pid = newPid;
}
public boolean pidPresent() {
return pid != null;
}
public BigInteger port() {
return port;
}
public void port(BigInteger newPort) {
port = newPort;
}
public boolean portPresent() {
return port != null;
}
}