com.netapp.santricity.models.symbol.IscsiInitiatorStatistics Maven / Gradle / Ivy
/**************************************************************************************************************************************************************
* The Clear BSD License
*
* Copyright (c) – 2016, NetApp, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* * Neither the name of NetApp, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*************************************************************************************************************************************************************/
package com.netapp.santricity.models.symbol;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.netapp.santricity.models.v2.*;
import com.netapp.santricity.models.symbol.*;
import com.netapp.santricity.models.utils.*;
import com.netapp.santricity.Pair;
import com.netapp.santricity.StringUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.File;
import java.util.Date;
import java.util.Objects;
/**
* IscsiInitiatorStatistics
*/
@javax.annotation.Generated(value = "class com.ni.aa.client.codegen.lang.JavaNetappClientCodegen", date = "2016-08-12T15:32:46.001-05:00")
public class IscsiInitiatorStatistics {
private Long successfulLogins;
private Long loginFailures;
private Long successfulLoginAuthentications;
private Long authenticationLoginFailures;
private Long errorFreePdus;
private Long protocolErrorPdus;
private Long headerDigestErrors;
private Long dataDigestErrors;
private Long sessionFailures;
private Long connectionFailures;
/**
* This element contains the count of successful iSCSI logins to the target.
**/
public IscsiInitiatorStatistics successfulLogins(Long successfulLogins) {
this.successfulLogins = successfulLogins;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the count of successful iSCSI logins to the target.")
@JsonProperty("successfulLogins")
public Long getSuccessfulLogins() {
return successfulLogins;
}
public void setSuccessfulLogins(Long successfulLogins) {
this.successfulLogins = successfulLogins;
}
/**
* This element contains the number of times an iSCSI login attempt to or from the target failed.
**/
public IscsiInitiatorStatistics loginFailures(Long loginFailures) {
this.loginFailures = loginFailures;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of times an iSCSI login attempt to or from the target failed.")
@JsonProperty("loginFailures")
public Long getLoginFailures() {
return loginFailures;
}
public void setLoginFailures(Long loginFailures) {
this.loginFailures = loginFailures;
}
/**
* This element contains the number of times an initiator login authentication attempt was accepted by the target.
**/
public IscsiInitiatorStatistics successfulLoginAuthentications(Long successfulLoginAuthentications) {
this.successfulLoginAuthentications = successfulLoginAuthentications;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of times an initiator login authentication attempt was accepted by the target.")
@JsonProperty("successfulLoginAuthentications")
public Long getSuccessfulLoginAuthentications() {
return successfulLoginAuthentications;
}
public void setSuccessfulLoginAuthentications(Long successfulLoginAuthentications) {
this.successfulLoginAuthentications = successfulLoginAuthentications;
}
/**
* This element contains the number of times an initiator login authentication attempt was rejected by the target.
**/
public IscsiInitiatorStatistics authenticationLoginFailures(Long authenticationLoginFailures) {
this.authenticationLoginFailures = authenticationLoginFailures;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of times an initiator login authentication attempt was rejected by the target.")
@JsonProperty("authenticationLoginFailures")
public Long getAuthenticationLoginFailures() {
return authenticationLoginFailures;
}
public void setAuthenticationLoginFailures(Long authenticationLoginFailures) {
this.authenticationLoginFailures = authenticationLoginFailures;
}
/**
* This element contains the number of iSCSI PDUs processed by the initiator that experienced no errors of any sort.
**/
public IscsiInitiatorStatistics errorFreePdus(Long errorFreePdus) {
this.errorFreePdus = errorFreePdus;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI PDUs processed by the initiator that experienced no errors of any sort.")
@JsonProperty("errorFreePdus")
public Long getErrorFreePdus() {
return errorFreePdus;
}
public void setErrorFreePdus(Long errorFreePdus) {
this.errorFreePdus = errorFreePdus;
}
/**
* This element contains the number of iSCSI PDUs processed by the initiator that experienced protocol errors.
**/
public IscsiInitiatorStatistics protocolErrorPdus(Long protocolErrorPdus) {
this.protocolErrorPdus = protocolErrorPdus;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI PDUs processed by the initiator that experienced protocol errors.")
@JsonProperty("protocolErrorPdus")
public Long getProtocolErrorPdus() {
return protocolErrorPdus;
}
public void setProtocolErrorPdus(Long protocolErrorPdus) {
this.protocolErrorPdus = protocolErrorPdus;
}
/**
* This element contains the number of iSCSI PDUs received by the initiator having header digest errors.
**/
public IscsiInitiatorStatistics headerDigestErrors(Long headerDigestErrors) {
this.headerDigestErrors = headerDigestErrors;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI PDUs received by the initiator having header digest errors.")
@JsonProperty("headerDigestErrors")
public Long getHeaderDigestErrors() {
return headerDigestErrors;
}
public void setHeaderDigestErrors(Long headerDigestErrors) {
this.headerDigestErrors = headerDigestErrors;
}
/**
* This element contains the number of iSCSI PDUs received by the initiator having data digest errors.
**/
public IscsiInitiatorStatistics dataDigestErrors(Long dataDigestErrors) {
this.dataDigestErrors = dataDigestErrors;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI PDUs received by the initiator having data digest errors.")
@JsonProperty("dataDigestErrors")
public Long getDataDigestErrors() {
return dataDigestErrors;
}
public void setDataDigestErrors(Long dataDigestErrors) {
this.dataDigestErrors = dataDigestErrors;
}
/**
* This element contains the number of iSCSI sessions for the initiator that terminated abnormally, either by administrative action or due to firmware-detected error.
**/
public IscsiInitiatorStatistics sessionFailures(Long sessionFailures) {
this.sessionFailures = sessionFailures;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI sessions for the initiator that terminated abnormally, either by administrative action or due to firmware-detected error.")
@JsonProperty("sessionFailures")
public Long getSessionFailures() {
return sessionFailures;
}
public void setSessionFailures(Long sessionFailures) {
this.sessionFailures = sessionFailures;
}
/**
* This element contains the number of iSCSI connections for the initiator that terminated abnormally, either by administrative action or due to firmware-detected error.
**/
public IscsiInitiatorStatistics connectionFailures(Long connectionFailures) {
this.connectionFailures = connectionFailures;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "This element contains the number of iSCSI connections for the initiator that terminated abnormally, either by administrative action or due to firmware-detected error.")
@JsonProperty("connectionFailures")
public Long getConnectionFailures() {
return connectionFailures;
}
public void setConnectionFailures(Long connectionFailures) {
this.connectionFailures = connectionFailures;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IscsiInitiatorStatistics iscsiInitiatorStatistics = (IscsiInitiatorStatistics) o;
return Objects.equals(this.successfulLogins, iscsiInitiatorStatistics.successfulLogins) &&
Objects.equals(this.loginFailures, iscsiInitiatorStatistics.loginFailures) &&
Objects.equals(this.successfulLoginAuthentications, iscsiInitiatorStatistics.successfulLoginAuthentications) &&
Objects.equals(this.authenticationLoginFailures, iscsiInitiatorStatistics.authenticationLoginFailures) &&
Objects.equals(this.errorFreePdus, iscsiInitiatorStatistics.errorFreePdus) &&
Objects.equals(this.protocolErrorPdus, iscsiInitiatorStatistics.protocolErrorPdus) &&
Objects.equals(this.headerDigestErrors, iscsiInitiatorStatistics.headerDigestErrors) &&
Objects.equals(this.dataDigestErrors, iscsiInitiatorStatistics.dataDigestErrors) &&
Objects.equals(this.sessionFailures, iscsiInitiatorStatistics.sessionFailures) &&
Objects.equals(this.connectionFailures, iscsiInitiatorStatistics.connectionFailures);
}
@Override
public int hashCode() {
return Objects.hash(successfulLogins, loginFailures, successfulLoginAuthentications, authenticationLoginFailures, errorFreePdus, protocolErrorPdus, headerDigestErrors, dataDigestErrors, sessionFailures, connectionFailures);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IscsiInitiatorStatistics {\n");
sb.append(" successfulLogins: ").append(toIndentedString(successfulLogins)).append("\n");
sb.append(" loginFailures: ").append(toIndentedString(loginFailures)).append("\n");
sb.append(" successfulLoginAuthentications: ").append(toIndentedString(successfulLoginAuthentications)).append("\n");
sb.append(" authenticationLoginFailures: ").append(toIndentedString(authenticationLoginFailures)).append("\n");
sb.append(" errorFreePdus: ").append(toIndentedString(errorFreePdus)).append("\n");
sb.append(" protocolErrorPdus: ").append(toIndentedString(protocolErrorPdus)).append("\n");
sb.append(" headerDigestErrors: ").append(toIndentedString(headerDigestErrors)).append("\n");
sb.append(" dataDigestErrors: ").append(toIndentedString(dataDigestErrors)).append("\n");
sb.append(" sessionFailures: ").append(toIndentedString(sessionFailures)).append("\n");
sb.append(" connectionFailures: ").append(toIndentedString(connectionFailures)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy