com.openshift.internal.restclient.model.project.OpenshiftProjectRequest Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2015 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.project;
import java.util.Map;
import org.jboss.dmr.ModelNode;
import com.openshift.internal.restclient.model.KubernetesResource;
import com.openshift.restclient.IClient;
import com.openshift.restclient.model.project.IProjectRequest;
public class OpenshiftProjectRequest extends KubernetesResource implements IProjectRequest {
private static final String DISPLAYNAME = "displayName";
private static final String DESCRIPTION = "description";
public OpenshiftProjectRequest(ModelNode node, IClient client, Map propertyKeys) {
super(node, client, propertyKeys);
}
@Override
public void setDisplayName(String name) {
set(DISPLAYNAME, name);
}
@Override
public String getDisplayName() {
return asString(DISPLAYNAME);
}
@Override
public void setDescription(String description) {
set(DESCRIPTION, description);
}
@Override
public String getDescription() {
return asString(DESCRIPTION);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy