/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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.amazonaws.services.ec2.model; import java.io.Serializable; /** *
* Describes the volume status. *
*/ public class VolumeStatusItem implements Serializable { /** * The volume ID. */ private String volumeId; /** * The Availability Zone of the volume. */ private String availabilityZone; /** * The volume status. */ private VolumeStatusInfo volumeStatus; /** * A list of events associated with the volume. */ private com.amazonaws.internal.ListWithAutoConstructFlag* Returns a reference to this object so that method calls can be chained together. * * @param volumeId The volume ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public VolumeStatusItem withVolumeId(String volumeId) { this.volumeId = volumeId; return this; } /** * The Availability Zone of the volume. * * @return The Availability Zone of the volume. */ public String getAvailabilityZone() { return availabilityZone; } /** * The Availability Zone of the volume. * * @param availabilityZone The Availability Zone of the volume. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** * The Availability Zone of the volume. *
* Returns a reference to this object so that method calls can be chained together. * * @param availabilityZone The Availability Zone of the volume. * * @return A reference to this updated object so that method calls can be chained * together. */ public VolumeStatusItem withAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; return this; } /** * The volume status. * * @return The volume status. */ public VolumeStatusInfo getVolumeStatus() { return volumeStatus; } /** * The volume status. * * @param volumeStatus The volume status. */ public void setVolumeStatus(VolumeStatusInfo volumeStatus) { this.volumeStatus = volumeStatus; } /** * The volume status. *
* Returns a reference to this object so that method calls can be chained together.
*
* @param volumeStatus The volume status.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VolumeStatusItem withVolumeStatus(VolumeStatusInfo volumeStatus) {
this.volumeStatus = volumeStatus;
return this;
}
/**
* A list of events associated with the volume.
*
* @return A list of events associated with the volume.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param events A list of events associated with the volume.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VolumeStatusItem withEvents(VolumeStatusEvent... events) {
if (getEvents() == null) setEvents(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param events A list of events associated with the volume.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VolumeStatusItem withEvents(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param actions The details of the operation.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VolumeStatusItem withActions(VolumeStatusAction... actions) {
if (getActions() == null) setActions(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param actions The details of the operation.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VolumeStatusItem withActions(java.util.Collection