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

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

/*
 * Copyright 2010-2015 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;

/**
 * 

* A JSON object containing the following fields: *

*/ public class DescribeGatewayInformationResult implements Serializable, Cloneable { /** * The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* Constraints:
* Length: 50 - 500
*/ private String gatewayARN; /** * The gateway ID. *

* Constraints:
* Length: 12 - 30
*/ private String gatewayId; /** * The gateway name. */ private String gatewayName; /** * One of the values that indicates the time zone configured for the * gateway. *

* Constraints:
* Length: 3 - 10
*/ private String gatewayTimezone; /** * One of the values that indicates the operating state of the gateway. *

* Constraints:
* Length: 2 - 25
*/ private String gatewayState; /** * A NetworkInterface array that contains descriptions of the * gateway network interfaces. */ private com.amazonaws.internal.ListWithAutoConstructFlag gatewayNetworkInterfaces; /** * The type of the gateway. *

* Constraints:
* Length: 2 - 20
*/ private String gatewayType; /** * The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. *

* Constraints:
* Length: 1 - 25
*/ private String nextUpdateAvailabilityDate; /** * The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. *

* Constraints:
* Length: 1 - 25
*/ private String lastSoftwareUpdate; /** * The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* Constraints:
* Length: 50 - 500
* * @return The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. */ public String getGatewayARN() { return gatewayARN; } /** * The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* Constraints:
* Length: 50 - 500
* * @param gatewayARN The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. */ public void setGatewayARN(String gatewayARN) { this.gatewayARN = gatewayARN; } /** * The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 50 - 500
* * @param gatewayARN The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayARN(String gatewayARN) { this.gatewayARN = gatewayARN; return this; } /** * The gateway ID. *

* Constraints:
* Length: 12 - 30
* * @return The gateway ID. */ public String getGatewayId() { return gatewayId; } /** * The gateway ID. *

* Constraints:
* Length: 12 - 30
* * @param gatewayId The gateway ID. */ public void setGatewayId(String gatewayId) { this.gatewayId = gatewayId; } /** * The gateway ID. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 12 - 30
* * @param gatewayId The gateway ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } /** * The gateway name. * * @return The gateway name. */ public String getGatewayName() { return gatewayName; } /** * The gateway name. * * @param gatewayName The gateway name. */ public void setGatewayName(String gatewayName) { this.gatewayName = gatewayName; } /** * The gateway name. *

* Returns a reference to this object so that method calls can be chained together. * * @param gatewayName The gateway name. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayName(String gatewayName) { this.gatewayName = gatewayName; return this; } /** * One of the values that indicates the time zone configured for the * gateway. *

* Constraints:
* Length: 3 - 10
* * @return One of the values that indicates the time zone configured for the * gateway. */ public String getGatewayTimezone() { return gatewayTimezone; } /** * One of the values that indicates the time zone configured for the * gateway. *

* Constraints:
* Length: 3 - 10
* * @param gatewayTimezone One of the values that indicates the time zone configured for the * gateway. */ public void setGatewayTimezone(String gatewayTimezone) { this.gatewayTimezone = gatewayTimezone; } /** * One of the values that indicates the time zone configured for the * gateway. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 3 - 10
* * @param gatewayTimezone One of the values that indicates the time zone configured for the * gateway. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayTimezone(String gatewayTimezone) { this.gatewayTimezone = gatewayTimezone; return this; } /** * One of the values that indicates the operating state of the gateway. *

* Constraints:
* Length: 2 - 25
* * @return One of the values that indicates the operating state of the gateway. */ public String getGatewayState() { return gatewayState; } /** * One of the values that indicates the operating state of the gateway. *

* Constraints:
* Length: 2 - 25
* * @param gatewayState One of the values that indicates the operating state of the gateway. */ public void setGatewayState(String gatewayState) { this.gatewayState = gatewayState; } /** * One of the values that indicates the operating state of the gateway. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 2 - 25
* * @param gatewayState One of the values that indicates the operating state of the gateway. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayState(String gatewayState) { this.gatewayState = gatewayState; return this; } /** * A NetworkInterface array that contains descriptions of the * gateway network interfaces. * * @return A NetworkInterface array that contains descriptions of the * gateway network interfaces. */ public java.util.List getGatewayNetworkInterfaces() { if (gatewayNetworkInterfaces == null) { gatewayNetworkInterfaces = new com.amazonaws.internal.ListWithAutoConstructFlag(); gatewayNetworkInterfaces.setAutoConstruct(true); } return gatewayNetworkInterfaces; } /** * A NetworkInterface array that contains descriptions of the * gateway network interfaces. * * @param gatewayNetworkInterfaces A NetworkInterface array that contains descriptions of the * gateway network interfaces. */ public void setGatewayNetworkInterfaces(java.util.Collection gatewayNetworkInterfaces) { if (gatewayNetworkInterfaces == null) { this.gatewayNetworkInterfaces = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag gatewayNetworkInterfacesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(gatewayNetworkInterfaces.size()); gatewayNetworkInterfacesCopy.addAll(gatewayNetworkInterfaces); this.gatewayNetworkInterfaces = gatewayNetworkInterfacesCopy; } /** * A NetworkInterface array that contains descriptions of the * gateway network interfaces. *

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setGatewayNetworkInterfaces(java.util.Collection)} * or {@link #withGatewayNetworkInterfaces(java.util.Collection)} if you * want to override the existing values. *

* Returns a reference to this object so that method calls can be chained together. * * @param gatewayNetworkInterfaces A NetworkInterface array that contains descriptions of the * gateway network interfaces. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayNetworkInterfaces(NetworkInterface... gatewayNetworkInterfaces) { if (getGatewayNetworkInterfaces() == null) setGatewayNetworkInterfaces(new java.util.ArrayList(gatewayNetworkInterfaces.length)); for (NetworkInterface value : gatewayNetworkInterfaces) { getGatewayNetworkInterfaces().add(value); } return this; } /** * A NetworkInterface array that contains descriptions of the * gateway network interfaces. *

* Returns a reference to this object so that method calls can be chained together. * * @param gatewayNetworkInterfaces A NetworkInterface array that contains descriptions of the * gateway network interfaces. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayNetworkInterfaces(java.util.Collection gatewayNetworkInterfaces) { if (gatewayNetworkInterfaces == null) { this.gatewayNetworkInterfaces = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag gatewayNetworkInterfacesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(gatewayNetworkInterfaces.size()); gatewayNetworkInterfacesCopy.addAll(gatewayNetworkInterfaces); this.gatewayNetworkInterfaces = gatewayNetworkInterfacesCopy; } return this; } /** * The type of the gateway. *

* Constraints:
* Length: 2 - 20
* * @return The type of the gateway. */ public String getGatewayType() { return gatewayType; } /** * The type of the gateway. *

* Constraints:
* Length: 2 - 20
* * @param gatewayType The type of the gateway. */ public void setGatewayType(String gatewayType) { this.gatewayType = gatewayType; } /** * The type of the gateway. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 2 - 20
* * @param gatewayType The type of the gateway. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withGatewayType(String gatewayType) { this.gatewayType = gatewayType; return this; } /** * The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. *

* Constraints:
* Length: 1 - 25
* * @return The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. */ public String getNextUpdateAvailabilityDate() { return nextUpdateAvailabilityDate; } /** * The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. *

* Constraints:
* Length: 1 - 25
* * @param nextUpdateAvailabilityDate The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. */ public void setNextUpdateAvailabilityDate(String nextUpdateAvailabilityDate) { this.nextUpdateAvailabilityDate = nextUpdateAvailabilityDate; } /** * The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 25
* * @param nextUpdateAvailabilityDate The date on which an update to the gateway is available. This date is * in the time zone of the gateway. If the gateway is not available for * an update this field is not returned in the response. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withNextUpdateAvailabilityDate(String nextUpdateAvailabilityDate) { this.nextUpdateAvailabilityDate = nextUpdateAvailabilityDate; return this; } /** * The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. *

* Constraints:
* Length: 1 - 25
* * @return The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. */ public String getLastSoftwareUpdate() { return lastSoftwareUpdate; } /** * The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. *

* Constraints:
* Length: 1 - 25
* * @param lastSoftwareUpdate The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. */ public void setLastSoftwareUpdate(String lastSoftwareUpdate) { this.lastSoftwareUpdate = lastSoftwareUpdate; } /** * The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 25
* * @param lastSoftwareUpdate The date on which the last software update was applied to the gateway. * If the gateway has never been updated, this field does not return a * value in the response. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeGatewayInformationResult withLastSoftwareUpdate(String lastSoftwareUpdate) { this.lastSoftwareUpdate = lastSoftwareUpdate; return this; } /** * 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 (getGatewayARN() != null) sb.append("GatewayARN: " + getGatewayARN() + ","); if (getGatewayId() != null) sb.append("GatewayId: " + getGatewayId() + ","); if (getGatewayName() != null) sb.append("GatewayName: " + getGatewayName() + ","); if (getGatewayTimezone() != null) sb.append("GatewayTimezone: " + getGatewayTimezone() + ","); if (getGatewayState() != null) sb.append("GatewayState: " + getGatewayState() + ","); if (getGatewayNetworkInterfaces() != null) sb.append("GatewayNetworkInterfaces: " + getGatewayNetworkInterfaces() + ","); if (getGatewayType() != null) sb.append("GatewayType: " + getGatewayType() + ","); if (getNextUpdateAvailabilityDate() != null) sb.append("NextUpdateAvailabilityDate: " + getNextUpdateAvailabilityDate() + ","); if (getLastSoftwareUpdate() != null) sb.append("LastSoftwareUpdate: " + getLastSoftwareUpdate() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode()); hashCode = prime * hashCode + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode()); hashCode = prime * hashCode + ((getGatewayName() == null) ? 0 : getGatewayName().hashCode()); hashCode = prime * hashCode + ((getGatewayTimezone() == null) ? 0 : getGatewayTimezone().hashCode()); hashCode = prime * hashCode + ((getGatewayState() == null) ? 0 : getGatewayState().hashCode()); hashCode = prime * hashCode + ((getGatewayNetworkInterfaces() == null) ? 0 : getGatewayNetworkInterfaces().hashCode()); hashCode = prime * hashCode + ((getGatewayType() == null) ? 0 : getGatewayType().hashCode()); hashCode = prime * hashCode + ((getNextUpdateAvailabilityDate() == null) ? 0 : getNextUpdateAvailabilityDate().hashCode()); hashCode = prime * hashCode + ((getLastSoftwareUpdate() == null) ? 0 : getLastSoftwareUpdate().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeGatewayInformationResult == false) return false; DescribeGatewayInformationResult other = (DescribeGatewayInformationResult)obj; if (other.getGatewayARN() == null ^ this.getGatewayARN() == null) return false; if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false) return false; if (other.getGatewayId() == null ^ this.getGatewayId() == null) return false; if (other.getGatewayId() != null && other.getGatewayId().equals(this.getGatewayId()) == false) return false; if (other.getGatewayName() == null ^ this.getGatewayName() == null) return false; if (other.getGatewayName() != null && other.getGatewayName().equals(this.getGatewayName()) == false) return false; if (other.getGatewayTimezone() == null ^ this.getGatewayTimezone() == null) return false; if (other.getGatewayTimezone() != null && other.getGatewayTimezone().equals(this.getGatewayTimezone()) == false) return false; if (other.getGatewayState() == null ^ this.getGatewayState() == null) return false; if (other.getGatewayState() != null && other.getGatewayState().equals(this.getGatewayState()) == false) return false; if (other.getGatewayNetworkInterfaces() == null ^ this.getGatewayNetworkInterfaces() == null) return false; if (other.getGatewayNetworkInterfaces() != null && other.getGatewayNetworkInterfaces().equals(this.getGatewayNetworkInterfaces()) == false) return false; if (other.getGatewayType() == null ^ this.getGatewayType() == null) return false; if (other.getGatewayType() != null && other.getGatewayType().equals(this.getGatewayType()) == false) return false; if (other.getNextUpdateAvailabilityDate() == null ^ this.getNextUpdateAvailabilityDate() == null) return false; if (other.getNextUpdateAvailabilityDate() != null && other.getNextUpdateAvailabilityDate().equals(this.getNextUpdateAvailabilityDate()) == false) return false; if (other.getLastSoftwareUpdate() == null ^ this.getLastSoftwareUpdate() == null) return false; if (other.getLastSoftwareUpdate() != null && other.getLastSoftwareUpdate().equals(this.getLastSoftwareUpdate()) == false) return false; return true; } @Override public DescribeGatewayInformationResult clone() { try { return (DescribeGatewayInformationResult) 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