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

com.amazonaws.services.deadline.model.GetWorkerResult 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;

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

    /**
     * 

* The date and time the resource was created. *

*/ private java.util.Date createdAt; /** *

* The user or system that created this resource. *

*/ private String createdBy; /** *

* The farm ID. *

*/ private String farmId; /** *

* The fleet ID. *

*/ private String fleetId; /** *

* The host properties for the worker. *

*/ private HostPropertiesResponse hostProperties; /** *

* The logs for the associated worker. *

*/ private LogConfiguration log; /** *

* The status of the worker. *

*/ private String status; /** *

* The date and time the resource was updated. *

*/ private java.util.Date updatedAt; /** *

* The user or system that updated this resource. *

*/ private String updatedBy; /** *

* The worker ID. *

*/ private String workerId; /** *

* The date and time the resource was created. *

* * @param createdAt * The date and time the resource was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The date and time the resource was created. *

* * @return The date and time the resource was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The date and time the resource was created. *

* * @param createdAt * The date and time the resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The user or system that created this resource. *

* * @param createdBy * The user or system that created this resource. */ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* The user or system that created this resource. *

* * @return The user or system that created this resource. */ public String getCreatedBy() { return this.createdBy; } /** *

* The user or system that created this resource. *

* * @param createdBy * The user or system that created this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** *

* The farm ID. *

* * @param farmId * The farm ID. */ public void setFarmId(String farmId) { this.farmId = farmId; } /** *

* The farm ID. *

* * @return The farm ID. */ public String getFarmId() { return this.farmId; } /** *

* The farm ID. *

* * @param farmId * The farm ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withFarmId(String farmId) { setFarmId(farmId); return this; } /** *

* The fleet ID. *

* * @param fleetId * The fleet ID. */ public void setFleetId(String fleetId) { this.fleetId = fleetId; } /** *

* The fleet ID. *

* * @return The fleet ID. */ public String getFleetId() { return this.fleetId; } /** *

* The fleet ID. *

* * @param fleetId * The fleet ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withFleetId(String fleetId) { setFleetId(fleetId); return this; } /** *

* The host properties for the worker. *

* * @param hostProperties * The host properties for the worker. */ public void setHostProperties(HostPropertiesResponse hostProperties) { this.hostProperties = hostProperties; } /** *

* The host properties for the worker. *

* * @return The host properties for the worker. */ public HostPropertiesResponse getHostProperties() { return this.hostProperties; } /** *

* The host properties for the worker. *

* * @param hostProperties * The host properties for the worker. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withHostProperties(HostPropertiesResponse hostProperties) { setHostProperties(hostProperties); return this; } /** *

* The logs for the associated worker. *

* * @param log * The logs for the associated worker. */ public void setLog(LogConfiguration log) { this.log = log; } /** *

* The logs for the associated worker. *

* * @return The logs for the associated worker. */ public LogConfiguration getLog() { return this.log; } /** *

* The logs for the associated worker. *

* * @param log * The logs for the associated worker. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withLog(LogConfiguration log) { setLog(log); return this; } /** *

* The status of the worker. *

* * @param status * The status of the worker. * @see WorkerStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the worker. *

* * @return The status of the worker. * @see WorkerStatus */ public String getStatus() { return this.status; } /** *

* The status of the worker. *

* * @param status * The status of the worker. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkerStatus */ public GetWorkerResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the worker. *

* * @param status * The status of the worker. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkerStatus */ public GetWorkerResult withStatus(WorkerStatus status) { this.status = status.toString(); return this; } /** *

* The date and time the resource was updated. *

* * @param updatedAt * The date and time the resource was updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The date and time the resource was updated. *

* * @return The date and time the resource was updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The date and time the resource was updated. *

* * @param updatedAt * The date and time the resource was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** *

* The user or system that updated this resource. *

* * @param updatedBy * The user or system that updated this resource. */ public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } /** *

* The user or system that updated this resource. *

* * @return The user or system that updated this resource. */ public String getUpdatedBy() { return this.updatedBy; } /** *

* The user or system that updated this resource. *

* * @param updatedBy * The user or system that updated this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withUpdatedBy(String updatedBy) { setUpdatedBy(updatedBy); return this; } /** *

* The worker ID. *

* * @param workerId * The worker ID. */ public void setWorkerId(String workerId) { this.workerId = workerId; } /** *

* The worker ID. *

* * @return The worker ID. */ public String getWorkerId() { return this.workerId; } /** *

* The worker ID. *

* * @param workerId * The worker ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetWorkerResult withWorkerId(String workerId) { setWorkerId(workerId); 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getFarmId() != null) sb.append("FarmId: ").append(getFarmId()).append(","); if (getFleetId() != null) sb.append("FleetId: ").append(getFleetId()).append(","); if (getHostProperties() != null) sb.append("HostProperties: ").append(getHostProperties()).append(","); if (getLog() != null) sb.append("Log: ").append(getLog()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()).append(","); if (getUpdatedBy() != null) sb.append("UpdatedBy: ").append(getUpdatedBy()).append(","); if (getWorkerId() != null) sb.append("WorkerId: ").append(getWorkerId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetWorkerResult == false) return false; GetWorkerResult other = (GetWorkerResult) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getFarmId() == null ^ this.getFarmId() == null) return false; if (other.getFarmId() != null && other.getFarmId().equals(this.getFarmId()) == false) return false; if (other.getFleetId() == null ^ this.getFleetId() == null) return false; if (other.getFleetId() != null && other.getFleetId().equals(this.getFleetId()) == false) return false; if (other.getHostProperties() == null ^ this.getHostProperties() == null) return false; if (other.getHostProperties() != null && other.getHostProperties().equals(this.getHostProperties()) == false) return false; if (other.getLog() == null ^ this.getLog() == null) return false; if (other.getLog() != null && other.getLog().equals(this.getLog()) == 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.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; if (other.getUpdatedBy() == null ^ this.getUpdatedBy() == null) return false; if (other.getUpdatedBy() != null && other.getUpdatedBy().equals(this.getUpdatedBy()) == false) return false; if (other.getWorkerId() == null ^ this.getWorkerId() == null) return false; if (other.getWorkerId() != null && other.getWorkerId().equals(this.getWorkerId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getFarmId() == null) ? 0 : getFarmId().hashCode()); hashCode = prime * hashCode + ((getFleetId() == null) ? 0 : getFleetId().hashCode()); hashCode = prime * hashCode + ((getHostProperties() == null) ? 0 : getHostProperties().hashCode()); hashCode = prime * hashCode + ((getLog() == null) ? 0 : getLog().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); hashCode = prime * hashCode + ((getWorkerId() == null) ? 0 : getWorkerId().hashCode()); return hashCode; } @Override public GetWorkerResult clone() { try { return (GetWorkerResult) 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