org.ovirt.engine.sdk4.internal.containers.DataCenterContainer 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.util.List;
import org.ovirt.engine.sdk4.types.Cluster;
import org.ovirt.engine.sdk4.types.DataCenter;
import org.ovirt.engine.sdk4.types.DataCenterStatus;
import org.ovirt.engine.sdk4.types.IscsiBond;
import org.ovirt.engine.sdk4.types.MacPool;
import org.ovirt.engine.sdk4.types.Network;
import org.ovirt.engine.sdk4.types.Permission;
import org.ovirt.engine.sdk4.types.Qos;
import org.ovirt.engine.sdk4.types.Quota;
import org.ovirt.engine.sdk4.types.QuotaModeType;
import org.ovirt.engine.sdk4.types.StorageDomain;
import org.ovirt.engine.sdk4.types.StorageFormat;
import org.ovirt.engine.sdk4.types.Version;
public class DataCenterContainer extends IdentifiedContainer implements DataCenter {
private Boolean local;
private QuotaModeType quotaMode;
private DataCenterStatus status;
private StorageFormat storageFormat;
private List supportedVersions;
private Version version;
private List clusters;
private List iscsiBonds;
private MacPool macPool;
private List networks;
private List permissions;
private List qoss;
private List quotas;
private List storageDomains;
public boolean local() {
return local;
}
public void local(boolean newLocal) {
local = Boolean.valueOf(newLocal);
}
public void local(Boolean newLocal) {
local = newLocal;
}
public boolean localPresent() {
return local != null;
}
public QuotaModeType quotaMode() {
return quotaMode;
}
public void quotaMode(QuotaModeType newQuotaMode) {
quotaMode = newQuotaMode;
}
public boolean quotaModePresent() {
return quotaMode != null;
}
public DataCenterStatus status() {
return status;
}
public void status(DataCenterStatus newStatus) {
status = newStatus;
}
public boolean statusPresent() {
return status != null;
}
public StorageFormat storageFormat() {
return storageFormat;
}
public void storageFormat(StorageFormat newStorageFormat) {
storageFormat = newStorageFormat;
}
public boolean storageFormatPresent() {
return storageFormat != null;
}
public List supportedVersions() {
return makeUnmodifiableList(supportedVersions);
}
public void supportedVersions(List newSupportedVersions) {
supportedVersions = makeArrayList(newSupportedVersions);
}
public boolean supportedVersionsPresent() {
return supportedVersions != null && !supportedVersions.isEmpty();
}
public Version version() {
return version;
}
public void version(Version newVersion) {
version = newVersion;
}
public boolean versionPresent() {
return version != null;
}
public List clusters() {
return makeUnmodifiableList(clusters);
}
public void clusters(List newClusters) {
clusters = makeArrayList(newClusters);
}
public boolean clustersPresent() {
return clusters != null && !clusters.isEmpty();
}
public List iscsiBonds() {
return makeUnmodifiableList(iscsiBonds);
}
public void iscsiBonds(List newIscsiBonds) {
iscsiBonds = makeArrayList(newIscsiBonds);
}
public boolean iscsiBondsPresent() {
return iscsiBonds != null && !iscsiBonds.isEmpty();
}
public MacPool macPool() {
return macPool;
}
public void macPool(MacPool newMacPool) {
macPool = newMacPool;
}
public boolean macPoolPresent() {
return macPool != null;
}
public List networks() {
return makeUnmodifiableList(networks);
}
public void networks(List newNetworks) {
networks = makeArrayList(newNetworks);
}
public boolean networksPresent() {
return networks != null && !networks.isEmpty();
}
public List permissions() {
return makeUnmodifiableList(permissions);
}
public void permissions(List newPermissions) {
permissions = makeArrayList(newPermissions);
}
public boolean permissionsPresent() {
return permissions != null && !permissions.isEmpty();
}
public List qoss() {
return makeUnmodifiableList(qoss);
}
public void qoss(List newQoss) {
qoss = makeArrayList(newQoss);
}
public boolean qossPresent() {
return qoss != null && !qoss.isEmpty();
}
public List quotas() {
return makeUnmodifiableList(quotas);
}
public void quotas(List newQuotas) {
quotas = makeArrayList(newQuotas);
}
public boolean quotasPresent() {
return quotas != null && !quotas.isEmpty();
}
public List storageDomains() {
return makeUnmodifiableList(storageDomains);
}
public void storageDomains(List newStorageDomains) {
storageDomains = makeArrayList(newStorageDomains);
}
public boolean storageDomainsPresent() {
return storageDomains != null && !storageDomains.isEmpty();
}
}