com.openshift.internal.client.response.CartridgeResourceDTO Maven / Gradle / Ivy
/******************************************************************************* 
 * Copyright (c) 2012 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.client.response;
import java.util.Map;
import com.openshift.client.Messages;
import com.openshift.internal.client.CartridgeType;
/**
 * @author Xavier Coulon
 * @author Andre Dietisheim
 * 
 */
public class CartridgeResourceDTO extends BaseResourceDTO {
	private final String name;
	private final CartridgeType type;
	private String displayName;
	private String description;
	CartridgeResourceDTO(final String name, final String displayName, final String description,
			final String type, final Map links, final Messages messages) {
		super(links, messages);
		this.name = name;
		this.displayName = displayName;
		this.description = description;
		this.type = CartridgeType.safeValueOf(type);
	}
	public String getName() {
		return name;
	}
	public String getDisplayName() {
		return displayName;
	}
	
	public String getDescription() {
		return description;
	}
	
	public CartridgeType getType() {
		return type;
	}
	@Override
	public String toString() {
		return "CartridgeResourceDTO ["
				+ "name=" + name
				+ ", type=" + type
				+ "]";
	}
}
     © 2015 - 2025 Weber Informatics LLC | Privacy Policy