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

com.amazonaws.services.guardduty.model.VolumeDetail Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon GuardDuty module holds the client classes that are used for communicating with Amazon GuardDuty Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.guardduty.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains EBS volume details. *

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

* EBS volume Arn information. *

*/ private String volumeArn; /** *

* The EBS volume type. *

*/ private String volumeType; /** *

* The device name for the EBS volume. *

*/ private String deviceName; /** *

* EBS volume size in GB. *

*/ private Integer volumeSizeInGB; /** *

* EBS volume encryption type. *

*/ private String encryptionType; /** *

* Snapshot Arn of the EBS volume. *

*/ private String snapshotArn; /** *

* KMS key Arn used to encrypt the EBS volume. *

*/ private String kmsKeyArn; /** *

* EBS volume Arn information. *

* * @param volumeArn * EBS volume Arn information. */ public void setVolumeArn(String volumeArn) { this.volumeArn = volumeArn; } /** *

* EBS volume Arn information. *

* * @return EBS volume Arn information. */ public String getVolumeArn() { return this.volumeArn; } /** *

* EBS volume Arn information. *

* * @param volumeArn * EBS volume Arn information. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withVolumeArn(String volumeArn) { setVolumeArn(volumeArn); return this; } /** *

* The EBS volume type. *

* * @param volumeType * The EBS volume type. */ public void setVolumeType(String volumeType) { this.volumeType = volumeType; } /** *

* The EBS volume type. *

* * @return The EBS volume type. */ public String getVolumeType() { return this.volumeType; } /** *

* The EBS volume type. *

* * @param volumeType * The EBS volume type. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withVolumeType(String volumeType) { setVolumeType(volumeType); return this; } /** *

* The device name for the EBS volume. *

* * @param deviceName * The device name for the EBS volume. */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** *

* The device name for the EBS volume. *

* * @return The device name for the EBS volume. */ public String getDeviceName() { return this.deviceName; } /** *

* The device name for the EBS volume. *

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

* EBS volume size in GB. *

* * @param volumeSizeInGB * EBS volume size in GB. */ public void setVolumeSizeInGB(Integer volumeSizeInGB) { this.volumeSizeInGB = volumeSizeInGB; } /** *

* EBS volume size in GB. *

* * @return EBS volume size in GB. */ public Integer getVolumeSizeInGB() { return this.volumeSizeInGB; } /** *

* EBS volume size in GB. *

* * @param volumeSizeInGB * EBS volume size in GB. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withVolumeSizeInGB(Integer volumeSizeInGB) { setVolumeSizeInGB(volumeSizeInGB); return this; } /** *

* EBS volume encryption type. *

* * @param encryptionType * EBS volume encryption type. */ public void setEncryptionType(String encryptionType) { this.encryptionType = encryptionType; } /** *

* EBS volume encryption type. *

* * @return EBS volume encryption type. */ public String getEncryptionType() { return this.encryptionType; } /** *

* EBS volume encryption type. *

* * @param encryptionType * EBS volume encryption type. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withEncryptionType(String encryptionType) { setEncryptionType(encryptionType); return this; } /** *

* Snapshot Arn of the EBS volume. *

* * @param snapshotArn * Snapshot Arn of the EBS volume. */ public void setSnapshotArn(String snapshotArn) { this.snapshotArn = snapshotArn; } /** *

* Snapshot Arn of the EBS volume. *

* * @return Snapshot Arn of the EBS volume. */ public String getSnapshotArn() { return this.snapshotArn; } /** *

* Snapshot Arn of the EBS volume. *

* * @param snapshotArn * Snapshot Arn of the EBS volume. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withSnapshotArn(String snapshotArn) { setSnapshotArn(snapshotArn); return this; } /** *

* KMS key Arn used to encrypt the EBS volume. *

* * @param kmsKeyArn * KMS key Arn used to encrypt the EBS volume. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

* KMS key Arn used to encrypt the EBS volume. *

* * @return KMS key Arn used to encrypt the EBS volume. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

* KMS key Arn used to encrypt the EBS volume. *

* * @param kmsKeyArn * KMS key Arn used to encrypt the EBS volume. * @return Returns a reference to this object so that method calls can be chained together. */ public VolumeDetail withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getVolumeArn() != null) sb.append("VolumeArn: ").append(getVolumeArn()).append(","); if (getVolumeType() != null) sb.append("VolumeType: ").append(getVolumeType()).append(","); if (getDeviceName() != null) sb.append("DeviceName: ").append(getDeviceName()).append(","); if (getVolumeSizeInGB() != null) sb.append("VolumeSizeInGB: ").append(getVolumeSizeInGB()).append(","); if (getEncryptionType() != null) sb.append("EncryptionType: ").append(getEncryptionType()).append(","); if (getSnapshotArn() != null) sb.append("SnapshotArn: ").append(getSnapshotArn()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VolumeDetail == false) return false; VolumeDetail other = (VolumeDetail) obj; if (other.getVolumeArn() == null ^ this.getVolumeArn() == null) return false; if (other.getVolumeArn() != null && other.getVolumeArn().equals(this.getVolumeArn()) == false) return false; if (other.getVolumeType() == null ^ this.getVolumeType() == null) return false; if (other.getVolumeType() != null && other.getVolumeType().equals(this.getVolumeType()) == false) return false; if (other.getDeviceName() == null ^ this.getDeviceName() == null) return false; if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == false) return false; if (other.getVolumeSizeInGB() == null ^ this.getVolumeSizeInGB() == null) return false; if (other.getVolumeSizeInGB() != null && other.getVolumeSizeInGB().equals(this.getVolumeSizeInGB()) == false) return false; if (other.getEncryptionType() == null ^ this.getEncryptionType() == null) return false; if (other.getEncryptionType() != null && other.getEncryptionType().equals(this.getEncryptionType()) == false) return false; if (other.getSnapshotArn() == null ^ this.getSnapshotArn() == null) return false; if (other.getSnapshotArn() != null && other.getSnapshotArn().equals(this.getSnapshotArn()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVolumeArn() == null) ? 0 : getVolumeArn().hashCode()); hashCode = prime * hashCode + ((getVolumeType() == null) ? 0 : getVolumeType().hashCode()); hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode()); hashCode = prime * hashCode + ((getVolumeSizeInGB() == null) ? 0 : getVolumeSizeInGB().hashCode()); hashCode = prime * hashCode + ((getEncryptionType() == null) ? 0 : getEncryptionType().hashCode()); hashCode = prime * hashCode + ((getSnapshotArn() == null) ? 0 : getSnapshotArn().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); return hashCode; } @Override public VolumeDetail clone() { try { return (VolumeDetail) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.guardduty.model.transform.VolumeDetailMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy