com.amazonaws.services.gamelift.model.Instance Maven / Gradle / Ivy
Show all versions of aws-java-sdk-gamelift Show documentation
/*
* Copyright 2017-2022 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.gamelift.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Represents an EC2 instance of virtual computing resources that hosts one or more game servers. In GameLift, a fleet
* can contain zero or more instances.
*
*
* Related actions
*
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Instance implements Serializable, Cloneable, StructuredPojo {
/**
*
* A unique identifier for the fleet that the instance is in.
*
*/
private String fleetId;
/**
*
* The Amazon Resource Name (ARN)
* that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions.
* Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*
*/
private String fleetArn;
/**
*
* A unique identifier for the instance.
*
*/
private String instanceId;
/**
*
* IP address that is assigned to the instance.
*
*/
private String ipAddress;
/**
*
* The DNS identifier assigned to the instance that is running the game session. Values have the following format:
*
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP
* address.
*
*/
private String dnsName;
/**
*
* Operating system that is running on this instance.
*
*/
private String operatingSystem;
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*/
private String type;
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*/
private String status;
/**
*
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*
*/
private java.util.Date creationTime;
/**
*
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*
*/
private String location;
/**
*
* A unique identifier for the fleet that the instance is in.
*
*
* @param fleetId
* A unique identifier for the fleet that the instance is in.
*/
public void setFleetId(String fleetId) {
this.fleetId = fleetId;
}
/**
*
* A unique identifier for the fleet that the instance is in.
*
*
* @return A unique identifier for the fleet that the instance is in.
*/
public String getFleetId() {
return this.fleetId;
}
/**
*
* A unique identifier for the fleet that the instance is in.
*
*
* @param fleetId
* A unique identifier for the fleet that the instance is in.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withFleetId(String fleetId) {
setFleetId(fleetId);
return this;
}
/**
*
* The Amazon Resource Name (ARN)
* that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions.
* Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*
*
* @param fleetArn
* The Amazon Resource Name (ARN) that is assigned to a
* GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
* arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*/
public void setFleetArn(String fleetArn) {
this.fleetArn = fleetArn;
}
/**
*
* The Amazon Resource Name (ARN)
* that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions.
* Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*
*
* @return The Amazon Resource Name (ARN) that is assigned to a
* GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
* arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*/
public String getFleetArn() {
return this.fleetArn;
}
/**
*
* The Amazon Resource Name (ARN)
* that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions.
* Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
*
*
* @param fleetArn
* The Amazon Resource Name (ARN) that is assigned to a
* GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
* arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withFleetArn(String fleetArn) {
setFleetArn(fleetArn);
return this;
}
/**
*
* A unique identifier for the instance.
*
*
* @param instanceId
* A unique identifier for the instance.
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
/**
*
* A unique identifier for the instance.
*
*
* @return A unique identifier for the instance.
*/
public String getInstanceId() {
return this.instanceId;
}
/**
*
* A unique identifier for the instance.
*
*
* @param instanceId
* A unique identifier for the instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withInstanceId(String instanceId) {
setInstanceId(instanceId);
return this;
}
/**
*
* IP address that is assigned to the instance.
*
*
* @param ipAddress
* IP address that is assigned to the instance.
*/
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
/**
*
* IP address that is assigned to the instance.
*
*
* @return IP address that is assigned to the instance.
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
*
* IP address that is assigned to the instance.
*
*
* @param ipAddress
* IP address that is assigned to the instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withIpAddress(String ipAddress) {
setIpAddress(ipAddress);
return this;
}
/**
*
* The DNS identifier assigned to the instance that is running the game session. Values have the following format:
*
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP
* address.
*
*
* @param dnsName
* The DNS identifier assigned to the instance that is running the game session. Values have the following
* format:
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not
* the IP address.
*/
public void setDnsName(String dnsName) {
this.dnsName = dnsName;
}
/**
*
* The DNS identifier assigned to the instance that is running the game session. Values have the following format:
*
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP
* address.
*
*
* @return The DNS identifier assigned to the instance that is running the game session. Values have the following
* format:
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not
* the IP address.
*/
public String getDnsName() {
return this.dnsName;
}
/**
*
* The DNS identifier assigned to the instance that is running the game session. Values have the following format:
*
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP
* address.
*
*
* @param dnsName
* The DNS identifier assigned to the instance that is running the game session. Values have the following
* format:
*
* -
*
* TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com
.
*
*
* -
*
* Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com
. (See Amazon EC2 Instance IP Addressing.)
*
*
*
*
* When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not
* the IP address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withDnsName(String dnsName) {
setDnsName(dnsName);
return this;
}
/**
*
* Operating system that is running on this instance.
*
*
* @param operatingSystem
* Operating system that is running on this instance.
* @see OperatingSystem
*/
public void setOperatingSystem(String operatingSystem) {
this.operatingSystem = operatingSystem;
}
/**
*
* Operating system that is running on this instance.
*
*
* @return Operating system that is running on this instance.
* @see OperatingSystem
*/
public String getOperatingSystem() {
return this.operatingSystem;
}
/**
*
* Operating system that is running on this instance.
*
*
* @param operatingSystem
* Operating system that is running on this instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperatingSystem
*/
public Instance withOperatingSystem(String operatingSystem) {
setOperatingSystem(operatingSystem);
return this;
}
/**
*
* Operating system that is running on this instance.
*
*
* @param operatingSystem
* Operating system that is running on this instance.
* @see OperatingSystem
*/
public void setOperatingSystem(OperatingSystem operatingSystem) {
withOperatingSystem(operatingSystem);
}
/**
*
* Operating system that is running on this instance.
*
*
* @param operatingSystem
* Operating system that is running on this instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OperatingSystem
*/
public Instance withOperatingSystem(OperatingSystem operatingSystem) {
this.operatingSystem = operatingSystem.toString();
return this;
}
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*
* @param type
* Amazon EC2 instance type that defines the computing resources of this instance.
* @see EC2InstanceType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*
* @return Amazon EC2 instance type that defines the computing resources of this instance.
* @see EC2InstanceType
*/
public String getType() {
return this.type;
}
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*
* @param type
* Amazon EC2 instance type that defines the computing resources of this instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EC2InstanceType
*/
public Instance withType(String type) {
setType(type);
return this;
}
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*
* @param type
* Amazon EC2 instance type that defines the computing resources of this instance.
* @see EC2InstanceType
*/
public void setType(EC2InstanceType type) {
withType(type);
}
/**
*
* Amazon EC2 instance type that defines the computing resources of this instance.
*
*
* @param type
* Amazon EC2 instance type that defines the computing resources of this instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EC2InstanceType
*/
public Instance withType(EC2InstanceType type) {
this.type = type.toString();
return this;
}
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*
* @param status
* Current status of the instance. Possible statuses include the following:
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as
* defined in the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has
* successfully launched and reported back to GameLift that it is ready to host a game session. The instance
* is now considered ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity
* during a scaling down event or to recycle resources in the event of a problem.
*
*
* @see InstanceStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*
* @return Current status of the instance. Possible statuses include the following:
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as
* defined in the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has
* successfully launched and reported back to GameLift that it is ready to host a game session. The instance
* is now considered ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity
* during a scaling down event or to recycle resources in the event of a problem.
*
*
* @see InstanceStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*
* @param status
* Current status of the instance. Possible statuses include the following:
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as
* defined in the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has
* successfully launched and reported back to GameLift that it is ready to host a game session. The instance
* is now considered ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity
* during a scaling down event or to recycle resources in the event of a problem.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceStatus
*/
public Instance withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*
* @param status
* Current status of the instance. Possible statuses include the following:
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as
* defined in the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has
* successfully launched and reported back to GameLift that it is ready to host a game session. The instance
* is now considered ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity
* during a scaling down event or to recycle resources in the event of a problem.
*
*
* @see InstanceStatus
*/
public void setStatus(InstanceStatus status) {
withStatus(status);
}
/**
*
* Current status of the instance. Possible statuses include the following:
*
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as defined in
* the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has successfully
* launched and reported back to GameLift that it is ready to host a game session. The instance is now considered
* ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during
* a scaling down event or to recycle resources in the event of a problem.
*
*
*
*
* @param status
* Current status of the instance. Possible statuses include the following:
*
* -
*
* PENDING -- The instance is in the process of being created and launching server processes as
* defined in the fleet's run-time configuration.
*
*
* -
*
* ACTIVE -- The instance has been successfully created and at least one server process has
* successfully launched and reported back to GameLift that it is ready to host a game session. The instance
* is now considered ready to host game sessions.
*
*
* -
*
* TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity
* during a scaling down event or to recycle resources in the event of a problem.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see InstanceStatus
*/
public Instance withStatus(InstanceStatus status) {
this.status = status.toString();
return this;
}
/**
*
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*
*
* @param creationTime
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*
*
* @return A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
*
*
* @param creationTime
* A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
* milliseconds (for example "1469498468.057"
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*
*
* @param location
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*/
public void setLocation(String location) {
this.location = location;
}
/**
*
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*
*
* @return The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*/
public String getLocation() {
return this.location;
}
/**
*
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
*
*
* @param location
* The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
* us-west-2
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withLocation(String location) {
setLocation(location);
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 (getFleetId() != null)
sb.append("FleetId: ").append(getFleetId()).append(",");
if (getFleetArn() != null)
sb.append("FleetArn: ").append(getFleetArn()).append(",");
if (getInstanceId() != null)
sb.append("InstanceId: ").append(getInstanceId()).append(",");
if (getIpAddress() != null)
sb.append("IpAddress: ").append(getIpAddress()).append(",");
if (getDnsName() != null)
sb.append("DnsName: ").append(getDnsName()).append(",");
if (getOperatingSystem() != null)
sb.append("OperatingSystem: ").append(getOperatingSystem()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLocation() != null)
sb.append("Location: ").append(getLocation());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Instance == false)
return false;
Instance other = (Instance) obj;
if (other.getFleetId() == null ^ this.getFleetId() == null)
return false;
if (other.getFleetId() != null && other.getFleetId().equals(this.getFleetId()) == false)
return false;
if (other.getFleetArn() == null ^ this.getFleetArn() == null)
return false;
if (other.getFleetArn() != null && other.getFleetArn().equals(this.getFleetArn()) == false)
return false;
if (other.getInstanceId() == null ^ this.getInstanceId() == null)
return false;
if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false)
return false;
if (other.getIpAddress() == null ^ this.getIpAddress() == null)
return false;
if (other.getIpAddress() != null && other.getIpAddress().equals(this.getIpAddress()) == false)
return false;
if (other.getDnsName() == null ^ this.getDnsName() == null)
return false;
if (other.getDnsName() != null && other.getDnsName().equals(this.getDnsName()) == false)
return false;
if (other.getOperatingSystem() == null ^ this.getOperatingSystem() == null)
return false;
if (other.getOperatingSystem() != null && other.getOperatingSystem().equals(this.getOperatingSystem()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLocation() == null ^ this.getLocation() == null)
return false;
if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFleetId() == null) ? 0 : getFleetId().hashCode());
hashCode = prime * hashCode + ((getFleetArn() == null) ? 0 : getFleetArn().hashCode());
hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
hashCode = prime * hashCode + ((getIpAddress() == null) ? 0 : getIpAddress().hashCode());
hashCode = prime * hashCode + ((getDnsName() == null) ? 0 : getDnsName().hashCode());
hashCode = prime * hashCode + ((getOperatingSystem() == null) ? 0 : getOperatingSystem().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode());
return hashCode;
}
@Override
public Instance clone() {
try {
return (Instance) 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.gamelift.model.transform.InstanceMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}