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

org.xlcloud.openstack.model.heat.StackResource Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2012 AMG.lab, a Bull Group Company
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * 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 org.xlcloud.openstack.model.heat;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;

/**
 * Details of a single instance of a running stack.
 * 
 * @author Krzysztof Szafrański, AMG.net
 */
@JsonRootName( "resource" )
@JsonIgnoreProperties( ignoreUnknown = true )
public class StackResource implements Serializable {

    private static final long serialVersionUID = -534040121958838638L;

    @JsonProperty( "logical_resource_id" )
    private String logicalResourceId;

    @JsonProperty( "resource_status" )
    private ResourceStatus resourceStatus;

    @JsonProperty( "physical_resource_id" )
    private String physicalResourceId;

    @JsonProperty( "resource_type" )
    private String resourceType;

    public String getLogicalResourceId() {
        return logicalResourceId;
    }

    public void setLogicalResourceId(String logicalResourceId) {
        this.logicalResourceId = logicalResourceId;
    }

    public ResourceStatus getResourceStatus() {
        return resourceStatus;
    }

    public void setResourceStatus(ResourceStatus resourceStatus) {
        this.resourceStatus = resourceStatus;
    }

    public String getPhysicalResourceId() {
        return physicalResourceId;
    }

    public void setPhysicalResourceId(String physicalResourceId) {
        this.physicalResourceId = physicalResourceId;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("StackResource [logicalResourceId=");
        builder.append(logicalResourceId);
        builder.append(", resourceStatus=");
        builder.append(resourceStatus);
        builder.append(", physicalResourceId=");
        builder.append(physicalResourceId);
        builder.append(", resourceType=");
        builder.append(resourceType);
        builder.append("]");
        return builder.toString();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy