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

com.amazonaws.services.deadline.model.SessionActionSummary 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details of a session action. *

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

* The session action definition. *

*/ private SessionActionDefinitionSummary definition; /** *

* The date and time the resource ended running. *

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

* The completion percentage for the session action. *

*/ private Float progressPercent; /** *

* The session action ID. *

*/ private String sessionActionId; /** *

* The date and time the resource started running. *

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

* The status of the session action. *

*/ private String status; /** *

* The Linux timestamp of the last date and time that the session action was updated. *

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

* The session action definition. *

* * @param definition * The session action definition. */ public void setDefinition(SessionActionDefinitionSummary definition) { this.definition = definition; } /** *

* The session action definition. *

* * @return The session action definition. */ public SessionActionDefinitionSummary getDefinition() { return this.definition; } /** *

* The session action definition. *

* * @param definition * The session action definition. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionSummary withDefinition(SessionActionDefinitionSummary definition) { setDefinition(definition); return this; } /** *

* 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 SessionActionSummary withEndedAt(java.util.Date endedAt) { setEndedAt(endedAt); return this; } /** *

* The completion percentage for the session action. *

* * @param progressPercent * The completion percentage for the session action. */ public void setProgressPercent(Float progressPercent) { this.progressPercent = progressPercent; } /** *

* The completion percentage for the session action. *

* * @return The completion percentage for the session action. */ public Float getProgressPercent() { return this.progressPercent; } /** *

* The completion percentage for the session action. *

* * @param progressPercent * The completion percentage for the session action. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionSummary withProgressPercent(Float progressPercent) { setProgressPercent(progressPercent); return this; } /** *

* The session action ID. *

* * @param sessionActionId * The session action ID. */ public void setSessionActionId(String sessionActionId) { this.sessionActionId = sessionActionId; } /** *

* The session action ID. *

* * @return The session action ID. */ public String getSessionActionId() { return this.sessionActionId; } /** *

* The session action ID. *

* * @param sessionActionId * The session action ID. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionSummary withSessionActionId(String sessionActionId) { setSessionActionId(sessionActionId); 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 SessionActionSummary withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** *

* The status of the session action. *

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

* The status of the session action. *

* * @return The status of the session action. * @see SessionActionStatus */ public String getStatus() { return this.status; } /** *

* The status of the session action. *

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

* The status of the session action. *

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

* The Linux timestamp of the last date and time that the session action was updated. *

* * @param workerUpdatedAt * The Linux timestamp of the last date and time that the session action was updated. */ public void setWorkerUpdatedAt(java.util.Date workerUpdatedAt) { this.workerUpdatedAt = workerUpdatedAt; } /** *

* The Linux timestamp of the last date and time that the session action was updated. *

* * @return The Linux timestamp of the last date and time that the session action was updated. */ public java.util.Date getWorkerUpdatedAt() { return this.workerUpdatedAt; } /** *

* The Linux timestamp of the last date and time that the session action was updated. *

* * @param workerUpdatedAt * The Linux timestamp of the last date and time that the session action was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionSummary withWorkerUpdatedAt(java.util.Date workerUpdatedAt) { setWorkerUpdatedAt(workerUpdatedAt); 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 (getDefinition() != null) sb.append("Definition: ").append(getDefinition()).append(","); if (getEndedAt() != null) sb.append("EndedAt: ").append(getEndedAt()).append(","); if (getProgressPercent() != null) sb.append("ProgressPercent: ").append(getProgressPercent()).append(","); if (getSessionActionId() != null) sb.append("SessionActionId: ").append(getSessionActionId()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getWorkerUpdatedAt() != null) sb.append("WorkerUpdatedAt: ").append(getWorkerUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SessionActionSummary == false) return false; SessionActionSummary other = (SessionActionSummary) obj; if (other.getDefinition() == null ^ this.getDefinition() == null) return false; if (other.getDefinition() != null && other.getDefinition().equals(this.getDefinition()) == false) return false; if (other.getEndedAt() == null ^ this.getEndedAt() == null) return false; if (other.getEndedAt() != null && other.getEndedAt().equals(this.getEndedAt()) == false) return false; if (other.getProgressPercent() == null ^ this.getProgressPercent() == null) return false; if (other.getProgressPercent() != null && other.getProgressPercent().equals(this.getProgressPercent()) == false) return false; if (other.getSessionActionId() == null ^ this.getSessionActionId() == null) return false; if (other.getSessionActionId() != null && other.getSessionActionId().equals(this.getSessionActionId()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getWorkerUpdatedAt() == null ^ this.getWorkerUpdatedAt() == null) return false; if (other.getWorkerUpdatedAt() != null && other.getWorkerUpdatedAt().equals(this.getWorkerUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDefinition() == null) ? 0 : getDefinition().hashCode()); hashCode = prime * hashCode + ((getEndedAt() == null) ? 0 : getEndedAt().hashCode()); hashCode = prime * hashCode + ((getProgressPercent() == null) ? 0 : getProgressPercent().hashCode()); hashCode = prime * hashCode + ((getSessionActionId() == null) ? 0 : getSessionActionId().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getWorkerUpdatedAt() == null) ? 0 : getWorkerUpdatedAt().hashCode()); return hashCode; } @Override public SessionActionSummary clone() { try { return (SessionActionSummary) 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.SessionActionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy