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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * 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;

/**
 * 

* Describes a gateway object. *

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

* The unique identifier assigned to your gateway during activation. This ID * becomes part of the gateway Amazon Resource Name (ARN), which you use as * input for other operations. *

*/ private String gatewayId; /** *

* The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

*/ private String gatewayARN; /** *

* The type of the gateway. *

*/ private String gatewayType; /** *

* The state of the gateway. *

*

* Valid Values: DISABLED or ACTIVE *

*/ private String gatewayOperationalState; /** *

* The name of the gateway. *

*/ private String gatewayName; /** *

* The unique identifier assigned to your gateway during activation. This ID * becomes part of the gateway Amazon Resource Name (ARN), which you use as * input for other operations. *

* * @param gatewayId * The unique identifier assigned to your gateway during activation. * This ID becomes part of the gateway Amazon Resource Name (ARN), * which you use as input for other operations. */ public void setGatewayId(String gatewayId) { this.gatewayId = gatewayId; } /** *

* The unique identifier assigned to your gateway during activation. This ID * becomes part of the gateway Amazon Resource Name (ARN), which you use as * input for other operations. *

* * @return The unique identifier assigned to your gateway during activation. * This ID becomes part of the gateway Amazon Resource Name (ARN), * which you use as input for other operations. */ public String getGatewayId() { return this.gatewayId; } /** *

* The unique identifier assigned to your gateway during activation. This ID * becomes part of the gateway Amazon Resource Name (ARN), which you use as * input for other operations. *

* * @param gatewayId * The unique identifier assigned to your gateway during activation. * This ID becomes part of the gateway Amazon Resource Name (ARN), * which you use as input for other operations. * @return Returns a reference to this object so that method calls can be * chained together. */ public GatewayInfo withGatewayId(String gatewayId) { setGatewayId(gatewayId); return this; } /** *

* The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* * @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. *

* * @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 this.gatewayARN; } /** *

* The Amazon Resource Name (ARN) of the gateway. Use the * ListGateways operation to return a list of gateways for your * account and region. *

* * @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 Returns a reference to this object so that method calls can be * chained together. */ public GatewayInfo withGatewayARN(String gatewayARN) { setGatewayARN(gatewayARN); return this; } /** *

* The type of the gateway. *

* * @param gatewayType * The type of the gateway. */ public void setGatewayType(String gatewayType) { this.gatewayType = gatewayType; } /** *

* The type of the gateway. *

* * @return The type of the gateway. */ public String getGatewayType() { return this.gatewayType; } /** *

* The type of the gateway. *

* * @param gatewayType * The type of the gateway. * @return Returns a reference to this object so that method calls can be * chained together. */ public GatewayInfo withGatewayType(String gatewayType) { setGatewayType(gatewayType); return this; } /** *

* The state of the gateway. *

*

* Valid Values: DISABLED or ACTIVE *

* * @param gatewayOperationalState * The state of the gateway.

*

* Valid Values: DISABLED or ACTIVE */ public void setGatewayOperationalState(String gatewayOperationalState) { this.gatewayOperationalState = gatewayOperationalState; } /** *

* The state of the gateway. *

*

* Valid Values: DISABLED or ACTIVE *

* * @return The state of the gateway.

*

* Valid Values: DISABLED or ACTIVE */ public String getGatewayOperationalState() { return this.gatewayOperationalState; } /** *

* The state of the gateway. *

*

* Valid Values: DISABLED or ACTIVE *

* * @param gatewayOperationalState * The state of the gateway.

*

* Valid Values: DISABLED or ACTIVE * @return Returns a reference to this object so that method calls can be * chained together. */ public GatewayInfo withGatewayOperationalState( String gatewayOperationalState) { setGatewayOperationalState(gatewayOperationalState); return this; } /** *

* The name of the gateway. *

* * @param gatewayName * The name of the gateway. */ public void setGatewayName(String gatewayName) { this.gatewayName = gatewayName; } /** *

* The name of the gateway. *

* * @return The name of the gateway. */ public String getGatewayName() { return this.gatewayName; } /** *

* The name of the gateway. *

* * @param gatewayName * The name of the gateway. * @return Returns a reference to this object so that method calls can be * chained together. */ public GatewayInfo withGatewayName(String gatewayName) { setGatewayName(gatewayName); 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 (getGatewayId() != null) sb.append("GatewayId: " + getGatewayId() + ","); if (getGatewayARN() != null) sb.append("GatewayARN: " + getGatewayARN() + ","); if (getGatewayType() != null) sb.append("GatewayType: " + getGatewayType() + ","); if (getGatewayOperationalState() != null) sb.append("GatewayOperationalState: " + getGatewayOperationalState() + ","); if (getGatewayName() != null) sb.append("GatewayName: " + getGatewayName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GatewayInfo == false) return false; GatewayInfo other = (GatewayInfo) obj; if (other.getGatewayId() == null ^ this.getGatewayId() == null) return false; if (other.getGatewayId() != null && other.getGatewayId().equals(this.getGatewayId()) == false) return false; if (other.getGatewayARN() == null ^ this.getGatewayARN() == null) return false; if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == 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.getGatewayOperationalState() == null ^ this.getGatewayOperationalState() == null) return false; if (other.getGatewayOperationalState() != null && other.getGatewayOperationalState().equals( this.getGatewayOperationalState()) == false) return false; if (other.getGatewayName() == null ^ this.getGatewayName() == null) return false; if (other.getGatewayName() != null && other.getGatewayName().equals(this.getGatewayName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode()); hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode()); hashCode = prime * hashCode + ((getGatewayType() == null) ? 0 : getGatewayType().hashCode()); hashCode = prime * hashCode + ((getGatewayOperationalState() == null) ? 0 : getGatewayOperationalState().hashCode()); hashCode = prime * hashCode + ((getGatewayName() == null) ? 0 : getGatewayName().hashCode()); return hashCode; } @Override public GatewayInfo clone() { try { return (GatewayInfo) 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