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

com.amazonaws.services.deadline.model.SessionActionDefinitionSummary 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 details of a session action definition. *

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

* The environment to enter into. *

*/ private EnvironmentEnterSessionActionDefinitionSummary envEnter; /** *

* The environment to exit from. *

*/ private EnvironmentExitSessionActionDefinitionSummary envExit; /** *

* The job attachments to sync with the session action definition. *

*/ private SyncInputJobAttachmentsSessionActionDefinitionSummary syncInputJobAttachments; /** *

* The task run. *

*/ private TaskRunSessionActionDefinitionSummary taskRun; /** *

* The environment to enter into. *

* * @param envEnter * The environment to enter into. */ public void setEnvEnter(EnvironmentEnterSessionActionDefinitionSummary envEnter) { this.envEnter = envEnter; } /** *

* The environment to enter into. *

* * @return The environment to enter into. */ public EnvironmentEnterSessionActionDefinitionSummary getEnvEnter() { return this.envEnter; } /** *

* The environment to enter into. *

* * @param envEnter * The environment to enter into. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionDefinitionSummary withEnvEnter(EnvironmentEnterSessionActionDefinitionSummary envEnter) { setEnvEnter(envEnter); return this; } /** *

* The environment to exit from. *

* * @param envExit * The environment to exit from. */ public void setEnvExit(EnvironmentExitSessionActionDefinitionSummary envExit) { this.envExit = envExit; } /** *

* The environment to exit from. *

* * @return The environment to exit from. */ public EnvironmentExitSessionActionDefinitionSummary getEnvExit() { return this.envExit; } /** *

* The environment to exit from. *

* * @param envExit * The environment to exit from. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionDefinitionSummary withEnvExit(EnvironmentExitSessionActionDefinitionSummary envExit) { setEnvExit(envExit); return this; } /** *

* The job attachments to sync with the session action definition. *

* * @param syncInputJobAttachments * The job attachments to sync with the session action definition. */ public void setSyncInputJobAttachments(SyncInputJobAttachmentsSessionActionDefinitionSummary syncInputJobAttachments) { this.syncInputJobAttachments = syncInputJobAttachments; } /** *

* The job attachments to sync with the session action definition. *

* * @return The job attachments to sync with the session action definition. */ public SyncInputJobAttachmentsSessionActionDefinitionSummary getSyncInputJobAttachments() { return this.syncInputJobAttachments; } /** *

* The job attachments to sync with the session action definition. *

* * @param syncInputJobAttachments * The job attachments to sync with the session action definition. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionDefinitionSummary withSyncInputJobAttachments(SyncInputJobAttachmentsSessionActionDefinitionSummary syncInputJobAttachments) { setSyncInputJobAttachments(syncInputJobAttachments); return this; } /** *

* The task run. *

* * @param taskRun * The task run. */ public void setTaskRun(TaskRunSessionActionDefinitionSummary taskRun) { this.taskRun = taskRun; } /** *

* The task run. *

* * @return The task run. */ public TaskRunSessionActionDefinitionSummary getTaskRun() { return this.taskRun; } /** *

* The task run. *

* * @param taskRun * The task run. * @return Returns a reference to this object so that method calls can be chained together. */ public SessionActionDefinitionSummary withTaskRun(TaskRunSessionActionDefinitionSummary taskRun) { setTaskRun(taskRun); 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 (getEnvEnter() != null) sb.append("EnvEnter: ").append(getEnvEnter()).append(","); if (getEnvExit() != null) sb.append("EnvExit: ").append(getEnvExit()).append(","); if (getSyncInputJobAttachments() != null) sb.append("SyncInputJobAttachments: ").append(getSyncInputJobAttachments()).append(","); if (getTaskRun() != null) sb.append("TaskRun: ").append(getTaskRun()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SessionActionDefinitionSummary == false) return false; SessionActionDefinitionSummary other = (SessionActionDefinitionSummary) obj; if (other.getEnvEnter() == null ^ this.getEnvEnter() == null) return false; if (other.getEnvEnter() != null && other.getEnvEnter().equals(this.getEnvEnter()) == false) return false; if (other.getEnvExit() == null ^ this.getEnvExit() == null) return false; if (other.getEnvExit() != null && other.getEnvExit().equals(this.getEnvExit()) == false) return false; if (other.getSyncInputJobAttachments() == null ^ this.getSyncInputJobAttachments() == null) return false; if (other.getSyncInputJobAttachments() != null && other.getSyncInputJobAttachments().equals(this.getSyncInputJobAttachments()) == false) return false; if (other.getTaskRun() == null ^ this.getTaskRun() == null) return false; if (other.getTaskRun() != null && other.getTaskRun().equals(this.getTaskRun()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnvEnter() == null) ? 0 : getEnvEnter().hashCode()); hashCode = prime * hashCode + ((getEnvExit() == null) ? 0 : getEnvExit().hashCode()); hashCode = prime * hashCode + ((getSyncInputJobAttachments() == null) ? 0 : getSyncInputJobAttachments().hashCode()); hashCode = prime * hashCode + ((getTaskRun() == null) ? 0 : getTaskRun().hashCode()); return hashCode; } @Override public SessionActionDefinitionSummary clone() { try { return (SessionActionDefinitionSummary) 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.SessionActionDefinitionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy