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

com.openshift.internal.restclient.model.volume.HostPathVolumeSource Maven / Gradle / Ivy

The newest version!
/******************************************************************************* 
 * Copyright (c) 2016 Red Hat, Inc. 
 * Distributed under license by Red Hat, Inc. All rights reserved. 
 * This program is made available under the terms of the 
 * Eclipse Public License v1.0 which accompanies this distribution, 
 * and is available at http://www.eclipse.org/legal/epl-v10.html 
 * 
 * Contributors: 
 * Red Hat, Inc. - initial API and implementation 
 ******************************************************************************/

package com.openshift.internal.restclient.model.volume;

import static com.openshift.internal.util.JBossDmrExtentions.asString;
import static com.openshift.internal.util.JBossDmrExtentions.set;

import org.jboss.dmr.ModelNode;

import com.openshift.restclient.model.volume.IHostPathVolumeSource;

/**
 * Implementation of a hostpath volume source
 *
 */
public class HostPathVolumeSource extends VolumeSource implements IHostPathVolumeSource {

    private static final String PATH = "hostPath.path";

    public HostPathVolumeSource(ModelNode node) {
        super(node);
    }

    @Override
    public String getPath() {
        return asString(getNode(), getPropertyKeys(), PATH);
    }

    @Override
    public void setPath(String path) {
        set(getNode(), getPropertyKeys(), PATH, path);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy