org.ovirt.engine.sdk4.internal.containers.SchedulingPolicyContainer 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.Balance;
import org.ovirt.engine.sdk4.types.Filter;
import org.ovirt.engine.sdk4.types.Property;
import org.ovirt.engine.sdk4.types.SchedulingPolicy;
import org.ovirt.engine.sdk4.types.Weight;
public class SchedulingPolicyContainer extends IdentifiedContainer implements SchedulingPolicy {
private Boolean defaultPolicy;
private Boolean locked;
private List properties;
private List balances;
private List filters;
private List weight;
public boolean defaultPolicy() {
return defaultPolicy;
}
public void defaultPolicy(boolean newDefaultPolicy) {
defaultPolicy = Boolean.valueOf(newDefaultPolicy);
}
public void defaultPolicy(Boolean newDefaultPolicy) {
defaultPolicy = newDefaultPolicy;
}
public boolean defaultPolicyPresent() {
return defaultPolicy != null;
}
public boolean locked() {
return locked;
}
public void locked(boolean newLocked) {
locked = Boolean.valueOf(newLocked);
}
public void locked(Boolean newLocked) {
locked = newLocked;
}
public boolean lockedPresent() {
return locked != null;
}
public List properties() {
return makeUnmodifiableList(properties);
}
public void properties(List newProperties) {
properties = makeArrayList(newProperties);
}
public boolean propertiesPresent() {
return properties != null && !properties.isEmpty();
}
public List balances() {
return makeUnmodifiableList(balances);
}
public void balances(List newBalances) {
balances = makeArrayList(newBalances);
}
public boolean balancesPresent() {
return balances != null && !balances.isEmpty();
}
public List filters() {
return makeUnmodifiableList(filters);
}
public void filters(List newFilters) {
filters = makeArrayList(newFilters);
}
public boolean filtersPresent() {
return filters != null && !filters.isEmpty();
}
public List weight() {
return makeUnmodifiableList(weight);
}
public void weight(List newWeight) {
weight = makeArrayList(newWeight);
}
public boolean weightPresent() {
return weight != null && !weight.isEmpty();
}
}