/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Details about an EC2 volume. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2VolumeDetails implements Serializable, Cloneable, StructuredPojo { /** *

* Indicates when the volume was created. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

*/ private String createTime; /** *

* The device name for the volume that is attached to the instance. *

*/ private String deviceName; /** *

* Specifies whether the volume is encrypted. *

*/ private Boolean encrypted; /** *

* The size of the volume, in GiBs. *

*/ private Integer size; /** *

* The snapshot from which the volume was created. *

*/ private String snapshotId; /** *

* The volume state. Valid values are as follows: *

* */ private String status; /** *

* The ARN of the KMS key that was used to protect the volume encryption key for the volume. *

*/ private String kmsKeyId; /** *

* The volume attachments. *

*/ private java.util.List attachments; /** *

* The ID of the volume. *

*/ private String volumeId; /** *

* The volume type. *

*/ private String volumeType; /** *

* Indicates whether the volume was scanned or skipped. *

*/ private String volumeScanStatus; /** *

* Indicates when the volume was created. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param createTime * Indicates when the volume was created.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public void setCreateTime(String createTime) { this.createTime = createTime; } /** *

* Indicates when the volume was created. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @return Indicates when the volume was created.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public String getCreateTime() { return this.createTime; } /** *

* Indicates when the volume was created. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param createTime * Indicates when the volume was created.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VolumeDetails withCreateTime(String createTime) { setCreateTime(createTime); return this; } /** *

* The device name for the volume that is attached to the instance. *

* * @param deviceName * The device name for the volume that is attached to the instance. */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** *

* The device name for the volume that is attached to the instance. *

* * @return The device name for the volume that is attached to the instance. */ public String getDeviceName() { return this.deviceName; } /** *

* The device name for the volume that is attached to the instance. *

* * @param deviceName * The device name for the volume that is attached to the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VolumeDetails withDeviceName(String deviceName) { setDeviceName(deviceName); return this; } /** *

* Specifies whether the volume is encrypted. *

* * @param encrypted * Specifies whether the volume is encrypted. */ public void setEncrypted(Boolean encrypted) { this.encrypted = encrypted; } /** *

* Specifies whether the volume is encrypted. *

* * @return Specifies whether the volume is encrypted. */ public Boolean getEncrypted() { return this.encrypted; } /** *

* Specifies whether the volume is encrypted. *

* * @param encrypted * Specifies whether the volume is encrypted. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VolumeDetails withEncrypted(Boolean encrypted) { setEncrypted(encrypted); return this; } /** *

* Specifies whether the volume is encrypted. *

* * @return Specifies whether the volume is encrypted. */ public Boolean isEncrypted() { return this.encrypted; } /** *

* The size of the volume, in GiBs. *

* * @param size * The size of the volume, in GiBs. */ public void setSize(Integer size) { this.size = size; } /** *

* The size of the volume, in GiBs. *

* * @return The size of the volume, in GiBs. */ public Integer getSize() { return this.size; } /** *

* The size of the volume, in GiBs. *

* * @param size * The size of the volume, in GiBs. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VolumeDetails withSize(Integer size) { setSize(size); return this; } /** *

* The snapshot from which the volume was created. *

* * @param snapshotId * The snapshot from which the volume was created. */ public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } /** *

* The snapshot from which the volume was created. *

* * @return The snapshot from which the volume was created. */ public String getSnapshotId() { return this.snapshotId; } /** *

* The snapshot from which the volume was created. *

* * @param snapshotId * The snapshot from which the volume was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2VolumeDetails withSnapshotId(String snapshotId) { setSnapshotId(snapshotId); return this; } /** *

* The volume state. Valid values are as follows: *

* * * @param status * The volume state. Valid values are as follows:

*