Class SessionActionDefinition
- java.lang.Object
-
- software.amazon.awssdk.services.deadline.model.SessionActionDefinition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SessionActionDefinition.Builder,SessionActionDefinition>
@Generated("software.amazon.awssdk:codegen") public final class SessionActionDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SessionActionDefinition.Builder,SessionActionDefinition>
The definition of the session action.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSessionActionDefinition.Builderstatic classSessionActionDefinition.Type
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
envEnter
public final EnvironmentEnterSessionActionDefinition envEnter()
The environment to enter into.
- Returns:
- The environment to enter into.
-
envExit
public final EnvironmentExitSessionActionDefinition envExit()
The environment to exit from.
- Returns:
- The environment to exit from.
-
syncInputJobAttachments
public final SyncInputJobAttachmentsSessionActionDefinition syncInputJobAttachments()
The job attachments to sync with a session action.
- Returns:
- The job attachments to sync with a session action.
-
taskRun
public final TaskRunSessionActionDefinition taskRun()
The task run in the session.
- Returns:
- The task run in the session.
-
toBuilder
public SessionActionDefinition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SessionActionDefinition.Builder,SessionActionDefinition>
-
builder
public static SessionActionDefinition.Builder builder()
-
serializableBuilderClass
public static Class<? extends SessionActionDefinition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
fromEnvEnter
public static SessionActionDefinition fromEnvEnter(EnvironmentEnterSessionActionDefinition envEnter)
Create an instance of this class withenvEnter()initialized to the given value.The environment to enter into.
- Parameters:
envEnter- The environment to enter into.
-
fromEnvEnter
public static SessionActionDefinition fromEnvEnter(Consumer<EnvironmentEnterSessionActionDefinition.Builder> envEnter)
Create an instance of this class withenvEnter()initialized to the given value.The environment to enter into.
- Parameters:
envEnter- The environment to enter into.
-
fromEnvExit
public static SessionActionDefinition fromEnvExit(EnvironmentExitSessionActionDefinition envExit)
Create an instance of this class withenvExit()initialized to the given value.The environment to exit from.
- Parameters:
envExit- The environment to exit from.
-
fromEnvExit
public static SessionActionDefinition fromEnvExit(Consumer<EnvironmentExitSessionActionDefinition.Builder> envExit)
Create an instance of this class withenvExit()initialized to the given value.The environment to exit from.
- Parameters:
envExit- The environment to exit from.
-
fromSyncInputJobAttachments
public static SessionActionDefinition fromSyncInputJobAttachments(SyncInputJobAttachmentsSessionActionDefinition syncInputJobAttachments)
Create an instance of this class withsyncInputJobAttachments()initialized to the given value.The job attachments to sync with a session action.
- Parameters:
syncInputJobAttachments- The job attachments to sync with a session action.
-
fromSyncInputJobAttachments
public static SessionActionDefinition fromSyncInputJobAttachments(Consumer<SyncInputJobAttachmentsSessionActionDefinition.Builder> syncInputJobAttachments)
Create an instance of this class withsyncInputJobAttachments()initialized to the given value.The job attachments to sync with a session action.
- Parameters:
syncInputJobAttachments- The job attachments to sync with a session action.
-
fromTaskRun
public static SessionActionDefinition fromTaskRun(TaskRunSessionActionDefinition taskRun)
Create an instance of this class withtaskRun()initialized to the given value.The task run in the session.
- Parameters:
taskRun- The task run in the session.
-
fromTaskRun
public static SessionActionDefinition fromTaskRun(Consumer<TaskRunSessionActionDefinition.Builder> taskRun)
Create an instance of this class withtaskRun()initialized to the given value.The task run in the session.
- Parameters:
taskRun- The task run in the session.
-
type
public SessionActionDefinition.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSessionActionDefinition.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSessionActionDefinition.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-