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

com.xerox.amazonws.ec2.SpotInstanceCancellationResponse Maven / Gradle / Ivy

package com.xerox.amazonws.ec2;

import com.xerox.amazonws.typica.jaxb.CancelSpotInstanceRequestsResponseSetItemType;

public class SpotInstanceCancellationResponse {
    private String spotInstanceRequestId;
    protected SpotInstanceState state;

    public SpotInstanceCancellationResponse() {
    }

    SpotInstanceCancellationResponse(CancelSpotInstanceRequestsResponseSetItemType item) {
        this.spotInstanceRequestId = item.getSpotInstanceRequestId();
        this.state = SpotInstanceState.getStateFromString(item.getState());
    }

    public String getSpotInstanceRequestId() {
        return spotInstanceRequestId;
    }

    public SpotInstanceState getState() {
        return state;
    }

    @Override
    public String toString() {
        return "SpotInstanceCancellationResponse[" +
                "spotInstanceRequestId='" + spotInstanceRequestId + '\'' +
                ", state=" + state +
                ']';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy