/* * Copyright 2018-2023 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; import javax.annotation.Generated; /** *
* Describes the volume status. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VolumeStatusItem implements Serializable, Cloneable { /** ** The details of the operation. *
*/ private com.amazonaws.internal.SdkInternalList* The Availability Zone of the volume. *
*/ private String availabilityZone; /** ** The Amazon Resource Name (ARN) of the Outpost. *
*/ private String outpostArn; /** ** A list of events associated with the volume. *
*/ private com.amazonaws.internal.SdkInternalList* The volume ID. *
*/ private String volumeId; /** ** The volume status. *
*/ private VolumeStatusInfo volumeStatus; /** ** Information about the instances to which the volume is attached. *
*/ private com.amazonaws.internal.SdkInternalList* The details of the operation. *
* * @return The details of the operation. */ public java.util.List* The details of the operation. *
* * @param actions * The details of the operation. */ public void setActions(java.util.Collection* The details of the operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * The details of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withActions(VolumeStatusAction... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList* The details of the operation. *
* * @param actions * The details of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withActions(java.util.Collection* 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. *
* * @return The Availability Zone of the volume. */ public String getAvailabilityZone() { return this.availabilityZone; } /** ** The Availability Zone of the volume. *
* * @param availabilityZone * The Availability Zone of the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** ** The Amazon Resource Name (ARN) of the Outpost. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost. */ public void setOutpostArn(String outpostArn) { this.outpostArn = outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost. *
* * @return The Amazon Resource Name (ARN) of the Outpost. */ public String getOutpostArn() { return this.outpostArn; } /** ** The Amazon Resource Name (ARN) of the Outpost. *
* * @param outpostArn * The Amazon Resource Name (ARN) of the Outpost. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** ** A list of events associated with the volume. *
* * @return A list of events associated with the volume. */ public java.util.List* A list of events associated with the volume. *
* * @param events * A list of events associated with the volume. */ public void setEvents(java.util.Collection* A list of events associated with the volume. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the * existing values. *
* * @param events * A list of events associated with the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withEvents(VolumeStatusEvent... events) { if (this.events == null) { setEvents(new com.amazonaws.internal.SdkInternalList* A list of events associated with the volume. *
* * @param events * A list of events associated with the volume. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withEvents(java.util.Collection* The volume ID. *
* * @param volumeId * The volume ID. */ public void setVolumeId(String volumeId) { this.volumeId = volumeId; } /** ** The volume ID. *
* * @return The volume ID. */ public String getVolumeId() { return this.volumeId; } /** ** The volume ID. *
* * @param volumeId * The volume ID. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withVolumeId(String volumeId) { setVolumeId(volumeId); return this; } /** ** The volume status. *
* * @param volumeStatus * The volume status. */ public void setVolumeStatus(VolumeStatusInfo volumeStatus) { this.volumeStatus = volumeStatus; } /** ** The volume status. *
* * @return The volume status. */ public VolumeStatusInfo getVolumeStatus() { return this.volumeStatus; } /** ** The volume status. *
* * @param volumeStatus * The volume status. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withVolumeStatus(VolumeStatusInfo volumeStatus) { setVolumeStatus(volumeStatus); return this; } /** ** Information about the instances to which the volume is attached. *
* * @return Information about the instances to which the volume is attached. */ public java.util.List* Information about the instances to which the volume is attached. *
* * @param attachmentStatuses * Information about the instances to which the volume is attached. */ public void setAttachmentStatuses(java.util.Collection* Information about the instances to which the volume is attached. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttachmentStatuses(java.util.Collection)} or {@link #withAttachmentStatuses(java.util.Collection)} if * you want to override the existing values. *
* * @param attachmentStatuses * Information about the instances to which the volume is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withAttachmentStatuses(VolumeStatusAttachmentStatus... attachmentStatuses) { if (this.attachmentStatuses == null) { setAttachmentStatuses(new com.amazonaws.internal.SdkInternalList* Information about the instances to which the volume is attached. *
* * @param attachmentStatuses * Information about the instances to which the volume is attached. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeStatusItem withAttachmentStatuses(java.util.Collection