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

com.amazonaws.services.storagegateway.model.DeviceiSCSIAttributes Maven / Gradle / Ivy

/*
 * Copyright 2011-2016 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.storagegateway.model;

import java.io.Serializable;

/**
 * 

* Lists iSCSI information about a VTL device. *

*/ public class DeviceiSCSIAttributes implements Serializable, Cloneable { /** *

* Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target. *

*/ private String targetARN; /** *

* The network interface identifier of the VTL device. *

*/ private String networkInterfaceId; /** *

* The port used to communicate with iSCSI VTL device targets. *

*/ private Integer networkInterfacePort; /** *

* Indicates whether mutual CHAP is enabled for the iSCSI target. *

*/ private Boolean chapEnabled; /** *

* Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target. *

* * @param targetARN * Specifies the unique Amazon Resource Name(ARN) that encodes the * iSCSI qualified name(iqn) of a tape drive or media changer target. */ public void setTargetARN(String targetARN) { this.targetARN = targetARN; } /** *

* Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target. *

* * @return Specifies the unique Amazon Resource Name(ARN) that encodes the * iSCSI qualified name(iqn) of a tape drive or media changer * target. */ public String getTargetARN() { return this.targetARN; } /** *

* Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI * qualified name(iqn) of a tape drive or media changer target. *

* * @param targetARN * Specifies the unique Amazon Resource Name(ARN) that encodes the * iSCSI qualified name(iqn) of a tape drive or media changer target. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeviceiSCSIAttributes withTargetARN(String targetARN) { setTargetARN(targetARN); return this; } /** *

* The network interface identifier of the VTL device. *

* * @param networkInterfaceId * The network interface identifier of the VTL device. */ public void setNetworkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; } /** *

* The network interface identifier of the VTL device. *

* * @return The network interface identifier of the VTL device. */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** *

* The network interface identifier of the VTL device. *

* * @param networkInterfaceId * The network interface identifier of the VTL device. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeviceiSCSIAttributes withNetworkInterfaceId( String networkInterfaceId) { setNetworkInterfaceId(networkInterfaceId); return this; } /** *

* The port used to communicate with iSCSI VTL device targets. *

* * @param networkInterfacePort * The port used to communicate with iSCSI VTL device targets. */ public void setNetworkInterfacePort(Integer networkInterfacePort) { this.networkInterfacePort = networkInterfacePort; } /** *

* The port used to communicate with iSCSI VTL device targets. *

* * @return The port used to communicate with iSCSI VTL device targets. */ public Integer getNetworkInterfacePort() { return this.networkInterfacePort; } /** *

* The port used to communicate with iSCSI VTL device targets. *

* * @param networkInterfacePort * The port used to communicate with iSCSI VTL device targets. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeviceiSCSIAttributes withNetworkInterfacePort( Integer networkInterfacePort) { setNetworkInterfacePort(networkInterfacePort); return this; } /** *

* Indicates whether mutual CHAP is enabled for the iSCSI target. *

* * @param chapEnabled * Indicates whether mutual CHAP is enabled for the iSCSI target. */ public void setChapEnabled(Boolean chapEnabled) { this.chapEnabled = chapEnabled; } /** *

* Indicates whether mutual CHAP is enabled for the iSCSI target. *

* * @return Indicates whether mutual CHAP is enabled for the iSCSI target. */ public Boolean getChapEnabled() { return this.chapEnabled; } /** *

* Indicates whether mutual CHAP is enabled for the iSCSI target. *

* * @param chapEnabled * Indicates whether mutual CHAP is enabled for the iSCSI target. * @return Returns a reference to this object so that method calls can be * chained together. */ public DeviceiSCSIAttributes withChapEnabled(Boolean chapEnabled) { setChapEnabled(chapEnabled); return this; } /** *

* Indicates whether mutual CHAP is enabled for the iSCSI target. *

* * @return Indicates whether mutual CHAP is enabled for the iSCSI target. */ public Boolean isChapEnabled() { return this.chapEnabled; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTargetARN() != null) sb.append("TargetARN: " + getTargetARN() + ","); if (getNetworkInterfaceId() != null) sb.append("NetworkInterfaceId: " + getNetworkInterfaceId() + ","); if (getNetworkInterfacePort() != null) sb.append("NetworkInterfacePort: " + getNetworkInterfacePort() + ","); if (getChapEnabled() != null) sb.append("ChapEnabled: " + getChapEnabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeviceiSCSIAttributes == false) return false; DeviceiSCSIAttributes other = (DeviceiSCSIAttributes) obj; if (other.getTargetARN() == null ^ this.getTargetARN() == null) return false; if (other.getTargetARN() != null && other.getTargetARN().equals(this.getTargetARN()) == false) return false; if (other.getNetworkInterfaceId() == null ^ this.getNetworkInterfaceId() == null) return false; if (other.getNetworkInterfaceId() != null && other.getNetworkInterfaceId().equals( this.getNetworkInterfaceId()) == false) return false; if (other.getNetworkInterfacePort() == null ^ this.getNetworkInterfacePort() == null) return false; if (other.getNetworkInterfacePort() != null && other.getNetworkInterfacePort().equals( this.getNetworkInterfacePort()) == false) return false; if (other.getChapEnabled() == null ^ this.getChapEnabled() == null) return false; if (other.getChapEnabled() != null && other.getChapEnabled().equals(this.getChapEnabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTargetARN() == null) ? 0 : getTargetARN().hashCode()); hashCode = prime * hashCode + ((getNetworkInterfaceId() == null) ? 0 : getNetworkInterfaceId().hashCode()); hashCode = prime * hashCode + ((getNetworkInterfacePort() == null) ? 0 : getNetworkInterfacePort().hashCode()); hashCode = prime * hashCode + ((getChapEnabled() == null) ? 0 : getChapEnabled().hashCode()); return hashCode; } @Override public DeviceiSCSIAttributes clone() { try { return (DeviceiSCSIAttributes) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy