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

com.amazonaws.services.deadline.model.HostPropertiesResponse Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWSDeadlineCloud module holds the client classes that are used for communicating with AWSDeadlineCloud Service

The newest version!
/*
 * Copyright 2019-2024 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.deadline.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The host property details. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HostPropertiesResponse implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN of the host EC2 instance. *

*/ private String ec2InstanceArn; /** *

* The instance type of the host EC2 instance. *

*/ private String ec2InstanceType; /** *

* The host name. *

*/ private String hostName; /** *

* The IP address of the host. *

*/ private IpAddresses ipAddresses; /** *

* The ARN of the host EC2 instance. *

* * @param ec2InstanceArn * The ARN of the host EC2 instance. */ public void setEc2InstanceArn(String ec2InstanceArn) { this.ec2InstanceArn = ec2InstanceArn; } /** *

* The ARN of the host EC2 instance. *

* * @return The ARN of the host EC2 instance. */ public String getEc2InstanceArn() { return this.ec2InstanceArn; } /** *

* The ARN of the host EC2 instance. *

* * @param ec2InstanceArn * The ARN of the host EC2 instance. * @return Returns a reference to this object so that method calls can be chained together. */ public HostPropertiesResponse withEc2InstanceArn(String ec2InstanceArn) { setEc2InstanceArn(ec2InstanceArn); return this; } /** *

* The instance type of the host EC2 instance. *

* * @param ec2InstanceType * The instance type of the host EC2 instance. */ public void setEc2InstanceType(String ec2InstanceType) { this.ec2InstanceType = ec2InstanceType; } /** *

* The instance type of the host EC2 instance. *

* * @return The instance type of the host EC2 instance. */ public String getEc2InstanceType() { return this.ec2InstanceType; } /** *

* The instance type of the host EC2 instance. *

* * @param ec2InstanceType * The instance type of the host EC2 instance. * @return Returns a reference to this object so that method calls can be chained together. */ public HostPropertiesResponse withEc2InstanceType(String ec2InstanceType) { setEc2InstanceType(ec2InstanceType); return this; } /** *

* The host name. *

* * @param hostName * The host name. */ public void setHostName(String hostName) { this.hostName = hostName; } /** *

* The host name. *

* * @return The host name. */ public String getHostName() { return this.hostName; } /** *

* The host name. *

* * @param hostName * The host name. * @return Returns a reference to this object so that method calls can be chained together. */ public HostPropertiesResponse withHostName(String hostName) { setHostName(hostName); return this; } /** *

* The IP address of the host. *

* * @param ipAddresses * The IP address of the host. */ public void setIpAddresses(IpAddresses ipAddresses) { this.ipAddresses = ipAddresses; } /** *

* The IP address of the host. *

* * @return The IP address of the host. */ public IpAddresses getIpAddresses() { return this.ipAddresses; } /** *

* The IP address of the host. *

* * @param ipAddresses * The IP address of the host. * @return Returns a reference to this object so that method calls can be chained together. */ public HostPropertiesResponse withIpAddresses(IpAddresses ipAddresses) { setIpAddresses(ipAddresses); 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 (getEc2InstanceArn() != null) sb.append("Ec2InstanceArn: ").append(getEc2InstanceArn()).append(","); if (getEc2InstanceType() != null) sb.append("Ec2InstanceType: ").append(getEc2InstanceType()).append(","); if (getHostName() != null) sb.append("HostName: ").append(getHostName()).append(","); if (getIpAddresses() != null) sb.append("IpAddresses: ").append(getIpAddresses()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HostPropertiesResponse == false) return false; HostPropertiesResponse other = (HostPropertiesResponse) obj; if (other.getEc2InstanceArn() == null ^ this.getEc2InstanceArn() == null) return false; if (other.getEc2InstanceArn() != null && other.getEc2InstanceArn().equals(this.getEc2InstanceArn()) == false) return false; if (other.getEc2InstanceType() == null ^ this.getEc2InstanceType() == null) return false; if (other.getEc2InstanceType() != null && other.getEc2InstanceType().equals(this.getEc2InstanceType()) == false) return false; if (other.getHostName() == null ^ this.getHostName() == null) return false; if (other.getHostName() != null && other.getHostName().equals(this.getHostName()) == false) return false; if (other.getIpAddresses() == null ^ this.getIpAddresses() == null) return false; if (other.getIpAddresses() != null && other.getIpAddresses().equals(this.getIpAddresses()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEc2InstanceArn() == null) ? 0 : getEc2InstanceArn().hashCode()); hashCode = prime * hashCode + ((getEc2InstanceType() == null) ? 0 : getEc2InstanceType().hashCode()); hashCode = prime * hashCode + ((getHostName() == null) ? 0 : getHostName().hashCode()); hashCode = prime * hashCode + ((getIpAddresses() == null) ? 0 : getIpAddresses().hashCode()); return hashCode; } @Override public HostPropertiesResponse clone() { try { return (HostPropertiesResponse) 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.deadline.model.transform.HostPropertiesResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy