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

com.morpheusdata.model.Request Maven / Gradle / Ivy

/*
 *  Copyright 2024 Morpheus Data, LLC.
 *
 * Licensed under the PLUGIN CORE SOURCE LICENSE (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://raw.githubusercontent.com/gomorpheus/morpheus-plugin-core/v1.0.x/LICENSE
 *
 * 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 com.morpheusdata.model;

import java.util.List;
import java.math.BigDecimal;

public class Request extends MorpheusModel {

	protected ApprovalRequestType requestType;
	protected String externalId;
	protected String externalName;
	protected List refs;
	protected BigDecimal pricePerMonth;
	protected String currency;

	public com.morpheusdata.model.Request.ApprovalRequestType getRequestType() {
		return requestType;
	}

	public String getExternalId() {
		return externalId;
	}

	public String getExternalName() {
		return externalName;
	}

	public BigDecimal getPricePerMonth() {
		return pricePerMonth;
	}

	public String getCurrency() {
		return currency;
	}

	public List getRefs() {
		return refs;
	}

	public enum ApprovalRequestType {
		EXTENSION_APPROVAL_TYPE,
		INSTANCE_APPROVAL_TYPE,
		APP_APPROVAL_TYPE,
		SHUTDOWN_EXTENSION_APPROVAL_TYPE,
		INSTANCE_DELETE_APPROVAL_TYPE,
		APP_DELETE_APPROVAL_TYPE,
		INSTANCE_RECONFIGURE_APPROVAL_TYPE,
		SERVER_RECONFIGURE_APPROVAL_TYPE,
	}

	public void setRequestType(com.morpheusdata.model.Request.ApprovalRequestType requestType) {
		this.requestType = requestType;
		markDirty("requestType", requestType);
	}

	public void setExternalId(String externalId) {
		this.externalId = externalId;
		markDirty("externalId", externalId);
	}

	public void setExternalName(String externalName) {
		this.externalName = externalName;
		markDirty("externalName", externalName);
	}

	public void setRefs(List refs) {
		this.refs = refs;
		markDirty("refs", refs);
	}

	public void setPricePerMonth(BigDecimal pricePerMonth) {
		this.pricePerMonth = pricePerMonth;
		markDirty("pricePerMonth", pricePerMonth);
	}

	public void setCurrency(String currency) {
		this.currency = currency;
		markDirty("currency", currency);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy