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

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

There is a newer version: 1.12.782
Show 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 GetSessionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The date and time the resource ended running. *

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

* The fleet ID for the session. *

*/ private String fleetId; /** *

* Provides the Amazon EC2 properties of the host. *

*/ private HostPropertiesResponse hostProperties; /** *

* The life cycle status of the session. *

*/ private String lifecycleStatus; /** *

* The session log. *

*/ private LogConfiguration log; /** *

* The session ID. *

*/ private String sessionId; /** *

* The date and time the resource started running. *

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

* The life cycle status with which the session started. *

*/ private String targetLifecycleStatus; /** *

* 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 for the session. *

*/ private String workerId; /** *

* The worker log for the session. *

*/ private LogConfiguration workerLog; /** *

* The date and time the resource ended running. *

* * @param endedAt * The date and time the resource ended running. */ public void setEndedAt(java.util.Date endedAt) { this.endedAt = endedAt; } /** *

* The date and time the resource ended running. *

* * @return The date and time the resource ended running. */ public java.util.Date getEndedAt() { return this.endedAt; } /** *

* The date and time the resource ended running. *

* * @param endedAt * The date and time the resource ended running. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withEndedAt(java.util.Date endedAt) { setEndedAt(endedAt); return this; } /** *

* The fleet ID for the session. *

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

* The fleet ID for the session. *

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

* The fleet ID for the session. *

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

* Provides the Amazon EC2 properties of the host. *

* * @param hostProperties * Provides the Amazon EC2 properties of the host. */ public void setHostProperties(HostPropertiesResponse hostProperties) { this.hostProperties = hostProperties; } /** *

* Provides the Amazon EC2 properties of the host. *

* * @return Provides the Amazon EC2 properties of the host. */ public HostPropertiesResponse getHostProperties() { return this.hostProperties; } /** *

* Provides the Amazon EC2 properties of the host. *

* * @param hostProperties * Provides the Amazon EC2 properties of the host. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withHostProperties(HostPropertiesResponse hostProperties) { setHostProperties(hostProperties); return this; } /** *

* The life cycle status of the session. *

* * @param lifecycleStatus * The life cycle status of the session. * @see SessionLifecycleStatus */ public void setLifecycleStatus(String lifecycleStatus) { this.lifecycleStatus = lifecycleStatus; } /** *

* The life cycle status of the session. *

* * @return The life cycle status of the session. * @see SessionLifecycleStatus */ public String getLifecycleStatus() { return this.lifecycleStatus; } /** *

* The life cycle status of the session. *

* * @param lifecycleStatus * The life cycle status of the session. * @return Returns a reference to this object so that method calls can be chained together. * @see SessionLifecycleStatus */ public GetSessionResult withLifecycleStatus(String lifecycleStatus) { setLifecycleStatus(lifecycleStatus); return this; } /** *

* The life cycle status of the session. *

* * @param lifecycleStatus * The life cycle status of the session. * @return Returns a reference to this object so that method calls can be chained together. * @see SessionLifecycleStatus */ public GetSessionResult withLifecycleStatus(SessionLifecycleStatus lifecycleStatus) { this.lifecycleStatus = lifecycleStatus.toString(); return this; } /** *

* The session log. *

* * @param log * The session log. */ public void setLog(LogConfiguration log) { this.log = log; } /** *

* The session log. *

* * @return The session log. */ public LogConfiguration getLog() { return this.log; } /** *

* The session log. *

* * @param log * The session log. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withLog(LogConfiguration log) { setLog(log); return this; } /** *

* The session ID. *

* * @param sessionId * The session ID. */ public void setSessionId(String sessionId) { this.sessionId = sessionId; } /** *

* The session ID. *

* * @return The session ID. */ public String getSessionId() { return this.sessionId; } /** *

* The session ID. *

* * @param sessionId * The session ID. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withSessionId(String sessionId) { setSessionId(sessionId); return this; } /** *

* The date and time the resource started running. *

* * @param startedAt * The date and time the resource started running. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** *

* The date and time the resource started running. *

* * @return The date and time the resource started running. */ public java.util.Date getStartedAt() { return this.startedAt; } /** *

* The date and time the resource started running. *

* * @param startedAt * The date and time the resource started running. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** *

* The life cycle status with which the session started. *

* * @param targetLifecycleStatus * The life cycle status with which the session started. * @see SessionLifecycleTargetStatus */ public void setTargetLifecycleStatus(String targetLifecycleStatus) { this.targetLifecycleStatus = targetLifecycleStatus; } /** *

* The life cycle status with which the session started. *

* * @return The life cycle status with which the session started. * @see SessionLifecycleTargetStatus */ public String getTargetLifecycleStatus() { return this.targetLifecycleStatus; } /** *

* The life cycle status with which the session started. *

* * @param targetLifecycleStatus * The life cycle status with which the session started. * @return Returns a reference to this object so that method calls can be chained together. * @see SessionLifecycleTargetStatus */ public GetSessionResult withTargetLifecycleStatus(String targetLifecycleStatus) { setTargetLifecycleStatus(targetLifecycleStatus); return this; } /** *

* The life cycle status with which the session started. *

* * @param targetLifecycleStatus * The life cycle status with which the session started. * @return Returns a reference to this object so that method calls can be chained together. * @see SessionLifecycleTargetStatus */ public GetSessionResult withTargetLifecycleStatus(SessionLifecycleTargetStatus targetLifecycleStatus) { this.targetLifecycleStatus = targetLifecycleStatus.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 GetSessionResult 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 GetSessionResult withUpdatedBy(String updatedBy) { setUpdatedBy(updatedBy); return this; } /** *

* The worker ID for the session. *

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

* The worker ID for the session. *

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

* The worker ID for the session. *

* * @param workerId * The worker ID for the session. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withWorkerId(String workerId) { setWorkerId(workerId); return this; } /** *

* The worker log for the session. *

* * @param workerLog * The worker log for the session. */ public void setWorkerLog(LogConfiguration workerLog) { this.workerLog = workerLog; } /** *

* The worker log for the session. *

* * @return The worker log for the session. */ public LogConfiguration getWorkerLog() { return this.workerLog; } /** *

* The worker log for the session. *

* * @param workerLog * The worker log for the session. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSessionResult withWorkerLog(LogConfiguration workerLog) { setWorkerLog(workerLog); 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 (getEndedAt() != null) sb.append("EndedAt: ").append(getEndedAt()).append(","); if (getFleetId() != null) sb.append("FleetId: ").append(getFleetId()).append(","); if (getHostProperties() != null) sb.append("HostProperties: ").append(getHostProperties()).append(","); if (getLifecycleStatus() != null) sb.append("LifecycleStatus: ").append(getLifecycleStatus()).append(","); if (getLog() != null) sb.append("Log: ").append(getLog()).append(","); if (getSessionId() != null) sb.append("SessionId: ").append(getSessionId()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getTargetLifecycleStatus() != null) sb.append("TargetLifecycleStatus: ").append(getTargetLifecycleStatus()).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()).append(","); if (getWorkerLog() != null) sb.append("WorkerLog: ").append(getWorkerLog()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSessionResult == false) return false; GetSessionResult other = (GetSessionResult) obj; if (other.getEndedAt() == null ^ this.getEndedAt() == null) return false; if (other.getEndedAt() != null && other.getEndedAt().equals(this.getEndedAt()) == 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.getLifecycleStatus() == null ^ this.getLifecycleStatus() == null) return false; if (other.getLifecycleStatus() != null && other.getLifecycleStatus().equals(this.getLifecycleStatus()) == 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.getSessionId() == null ^ this.getSessionId() == null) return false; if (other.getSessionId() != null && other.getSessionId().equals(this.getSessionId()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null) return false; if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false) return false; if (other.getTargetLifecycleStatus() == null ^ this.getTargetLifecycleStatus() == null) return false; if (other.getTargetLifecycleStatus() != null && other.getTargetLifecycleStatus().equals(this.getTargetLifecycleStatus()) == 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; if (other.getWorkerLog() == null ^ this.getWorkerLog() == null) return false; if (other.getWorkerLog() != null && other.getWorkerLog().equals(this.getWorkerLog()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndedAt() == null) ? 0 : getEndedAt().hashCode()); hashCode = prime * hashCode + ((getFleetId() == null) ? 0 : getFleetId().hashCode()); hashCode = prime * hashCode + ((getHostProperties() == null) ? 0 : getHostProperties().hashCode()); hashCode = prime * hashCode + ((getLifecycleStatus() == null) ? 0 : getLifecycleStatus().hashCode()); hashCode = prime * hashCode + ((getLog() == null) ? 0 : getLog().hashCode()); hashCode = prime * hashCode + ((getSessionId() == null) ? 0 : getSessionId().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getTargetLifecycleStatus() == null) ? 0 : getTargetLifecycleStatus().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()); hashCode = prime * hashCode + ((getWorkerLog() == null) ? 0 : getWorkerLog().hashCode()); return hashCode; } @Override public GetSessionResult clone() { try { return (GetSessionResult) 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