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

org.ovirt.engine.sdk4.internal.containers.CpuContainer 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.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;
import org.ovirt.engine.sdk4.types.Architecture;
import org.ovirt.engine.sdk4.types.Core;
import org.ovirt.engine.sdk4.types.Cpu;
import org.ovirt.engine.sdk4.types.CpuMode;
import org.ovirt.engine.sdk4.types.CpuTopology;
import org.ovirt.engine.sdk4.types.CpuTune;

public class CpuContainer extends Container implements Cpu {
    private Architecture architecture;
    private List cores;
    private CpuTune cpuTune;
    private BigInteger level;
    private CpuMode mode;
    private String name;
    private BigDecimal speed;
    private CpuTopology topology;
    private String type;
    
    public Architecture architecture() {
        return architecture;
    }
    
    public void architecture(Architecture newArchitecture) {
        architecture = newArchitecture;
    }
    
    public boolean architecturePresent() {
        return architecture != null;
    }
    
    public List cores() {
        return makeUnmodifiableList(cores);
    }
    
    public void cores(List newCores) {
        cores = makeArrayList(newCores);
    }
    
    public boolean coresPresent() {
        return cores != null && !cores.isEmpty();
    }
    
    public CpuTune cpuTune() {
        return cpuTune;
    }
    
    public void cpuTune(CpuTune newCpuTune) {
        cpuTune = newCpuTune;
    }
    
    public boolean cpuTunePresent() {
        return cpuTune != null;
    }
    
    public BigInteger level() {
        return level;
    }
    
    public void level(BigInteger newLevel) {
        level = newLevel;
    }
    
    public boolean levelPresent() {
        return level != null;
    }
    
    public CpuMode mode() {
        return mode;
    }
    
    public void mode(CpuMode newMode) {
        mode = newMode;
    }
    
    public boolean modePresent() {
        return mode != null;
    }
    
    public String name() {
        return name;
    }
    
    public void name(String newName) {
        name = newName;
    }
    
    public boolean namePresent() {
        return name != null;
    }
    
    public BigDecimal speed() {
        return speed;
    }
    
    public void speed(BigDecimal newSpeed) {
        speed = newSpeed;
    }
    
    public boolean speedPresent() {
        return speed != null;
    }
    
    public CpuTopology topology() {
        return topology;
    }
    
    public void topology(CpuTopology newTopology) {
        topology = newTopology;
    }
    
    public boolean topologyPresent() {
        return topology != null;
    }
    
    public String type() {
        return type;
    }
    
    public void type(String newType) {
        type = newType;
    }
    
    public boolean typePresent() {
        return type != null;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy