/* * 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; /** *
* Contains the output of DescribeVolumeAttribute. *
*/ public class DescribeVolumeAttributeResult implements Serializable { /** * The ID of the volume. */ private String volumeId; /** * The state ofautoEnableIO
attribute.
*/
private Boolean autoEnableIO;
/**
* A list of product codes.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Returns a reference to this object so that method calls can be chained together.
*
* @param volumeId The ID of the volume.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeVolumeAttributeResult withVolumeId(String volumeId) {
this.volumeId = volumeId;
return this;
}
/**
* The state of autoEnableIO
attribute.
*
* @return The state of autoEnableIO
attribute.
*/
public Boolean isAutoEnableIO() {
return autoEnableIO;
}
/**
* The state of autoEnableIO
attribute.
*
* @param autoEnableIO The state of autoEnableIO
attribute.
*/
public void setAutoEnableIO(Boolean autoEnableIO) {
this.autoEnableIO = autoEnableIO;
}
/**
* The state of autoEnableIO
attribute.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param autoEnableIO The state of
* Returns a reference to this object so that method calls can be chained together.
*
* @param productCodes A list of product codes.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeVolumeAttributeResult withProductCodes(ProductCode... productCodes) {
if (getProductCodes() == null) setProductCodes(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param productCodes A list of product codes.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeVolumeAttributeResult withProductCodes(java.util.CollectionautoEnableIO
attribute.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeVolumeAttributeResult withAutoEnableIO(Boolean autoEnableIO) {
this.autoEnableIO = autoEnableIO;
return this;
}
/**
* The state of autoEnableIO
attribute.
*
* @return The state of autoEnableIO
attribute.
*/
public Boolean getAutoEnableIO() {
return autoEnableIO;
}
/**
* A list of product codes.
*
* @return A list of product codes.
*/
public java.util.List