/******************************************************************************* * 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<String, String[]> 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); } }