/* * Copyright 2018-2023 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.nimblestudio.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A configuration for a streaming session. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamConfiguration implements Serializable, Cloneable, StructuredPojo { /** *
* Indicates if a streaming session created from this launch profile should be terminated automatically or retained
* without termination after being in a STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed,
* the default value for this parameter is DEACTIVATED
.
*
* Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. *
*/ private String clipboardMode; /** ** The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
*/ private java.util.List* The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After * this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 * minutes, and the maximum length of time is 30 days. *
*/ private Integer maxSessionLengthInMinutes; /** *
* Integer that determines if you can start and stop your sessions and how long a session can stay in the
* STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the READY
* state exceeds the maxSessionLengthInMinutes
value, the session will automatically be terminated
* (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a session
* stays in the READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be stopped (instead of terminated).
*
* Information about the streaming session backup. *
*/ private StreamConfigurationSessionBackup sessionBackup; /** *
* Determine if a streaming session created from this launch profile can configure persistent storage. This means
* that volumeConfiguration
and automaticTerminationMode
are configured.
*
* The upload storage for a streaming session. *
*/ private StreamConfigurationSessionStorage sessionStorage; /** ** The streaming images that users can select from when launching a streaming session with this launch profile. *
*/ private java.util.List* Custom volume configuration for the root volumes that are attached to streaming sessions. *
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*
* Indicates if a streaming session created from this launch profile should be terminated automatically or retained
* without termination after being in a STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed,
* the default value for this parameter is DEACTIVATED
.
*
STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state
* indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When
* allowed, the default value for this parameter is DEACTIVATED
.
* @see AutomaticTerminationMode
*/
public void setAutomaticTerminationMode(String automaticTerminationMode) {
this.automaticTerminationMode = automaticTerminationMode;
}
/**
*
* Indicates if a streaming session created from this launch profile should be terminated automatically or retained
* without termination after being in a STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed,
* the default value for this parameter is DEACTIVATED
.
*
STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state
* indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When
* allowed, the default value for this parameter is DEACTIVATED
.
* @see AutomaticTerminationMode
*/
public String getAutomaticTerminationMode() {
return this.automaticTerminationMode;
}
/**
*
* Indicates if a streaming session created from this launch profile should be terminated automatically or retained
* without termination after being in a STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed,
* the default value for this parameter is DEACTIVATED
.
*
STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state
* indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When
* allowed, the default value for this parameter is DEACTIVATED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AutomaticTerminationMode
*/
public StreamConfiguration withAutomaticTerminationMode(String automaticTerminationMode) {
setAutomaticTerminationMode(automaticTerminationMode);
return this;
}
/**
*
* Indicates if a streaming session created from this launch profile should be terminated automatically or retained
* without termination after being in a STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed,
* the default value for this parameter is DEACTIVATED
.
*
STOPPED
state.
*
* When ACTIVATED
, the streaming session is scheduled for termination after being in the
* STOPPED
state for the time specified in maxStoppedSessionLengthInMinutes
.
*
* When DEACTIVATED
, the streaming session can remain in the STOPPED
state
* indefinitely.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When
* allowed, the default value for this parameter is DEACTIVATED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AutomaticTerminationMode
*/
public StreamConfiguration withAutomaticTerminationMode(AutomaticTerminationMode automaticTerminationMode) {
this.automaticTerminationMode = automaticTerminationMode.toString();
return this;
}
/**
*
* Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. *
* * @param clipboardMode * Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. * @see StreamingClipboardMode */ public void setClipboardMode(String clipboardMode) { this.clipboardMode = clipboardMode; } /** ** Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. *
* * @return Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. * @see StreamingClipboardMode */ public String getClipboardMode() { return this.clipboardMode; } /** ** Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. *
* * @param clipboardMode * Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingClipboardMode */ public StreamConfiguration withClipboardMode(String clipboardMode) { setClipboardMode(clipboardMode); return this; } /** ** Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. *
* * @param clipboardMode * Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and * streaming client. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingClipboardMode */ public StreamConfiguration withClipboardMode(StreamingClipboardMode clipboardMode) { this.clipboardMode = clipboardMode.toString(); return this; } /** ** The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
* * @return The EC2 instance types that users can select from when launching a streaming session with this launch * profile. * @see StreamingInstanceType */ public java.util.List* The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
* * @param ec2InstanceTypes * The EC2 instance types that users can select from when launching a streaming session with this launch * profile. * @see StreamingInstanceType */ public void setEc2InstanceTypes(java.util.Collection* The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEc2InstanceTypes(java.util.Collection)} or {@link #withEc2InstanceTypes(java.util.Collection)} if you * want to override the existing values. *
* * @param ec2InstanceTypes * The EC2 instance types that users can select from when launching a streaming session with this launch * profile. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingInstanceType */ public StreamConfiguration withEc2InstanceTypes(String... ec2InstanceTypes) { if (this.ec2InstanceTypes == null) { setEc2InstanceTypes(new java.util.ArrayList* The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
* * @param ec2InstanceTypes * The EC2 instance types that users can select from when launching a streaming session with this launch * profile. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingInstanceType */ public StreamConfiguration withEc2InstanceTypes(java.util.Collection* The EC2 instance types that users can select from when launching a streaming session with this launch profile. *
* * @param ec2InstanceTypes * The EC2 instance types that users can select from when launching a streaming session with this launch * profile. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingInstanceType */ public StreamConfiguration withEc2InstanceTypes(StreamingInstanceType... ec2InstanceTypes) { java.util.ArrayList* The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After * this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 * minutes, and the maximum length of time is 30 days. *
* * @param maxSessionLengthInMinutes * The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. * After this point, Nimble Studio automatically terminates or stops the session. The default length of time * is 690 minutes, and the maximum length of time is 30 days. */ public void setMaxSessionLengthInMinutes(Integer maxSessionLengthInMinutes) { this.maxSessionLengthInMinutes = maxSessionLengthInMinutes; } /** ** The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After * this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 * minutes, and the maximum length of time is 30 days. *
* * @return The length of time, in minutes, that a streaming session can be active before it is stopped or * terminated. After this point, Nimble Studio automatically terminates or stops the session. The default * length of time is 690 minutes, and the maximum length of time is 30 days. */ public Integer getMaxSessionLengthInMinutes() { return this.maxSessionLengthInMinutes; } /** ** The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After * this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 * minutes, and the maximum length of time is 30 days. *
* * @param maxSessionLengthInMinutes * The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. * After this point, Nimble Studio automatically terminates or stops the session. The default length of time * is 690 minutes, and the maximum length of time is 30 days. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamConfiguration withMaxSessionLengthInMinutes(Integer maxSessionLengthInMinutes) { setMaxSessionLengthInMinutes(maxSessionLengthInMinutes); return this; } /** *
* Integer that determines if you can start and stop your sessions and how long a session can stay in the
* STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the READY
* state exceeds the maxSessionLengthInMinutes
value, the session will automatically be terminated
* (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a session
* stays in the READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be stopped (instead of terminated).
*
STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the
* READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be terminated (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a
* session stays in the READY
state exceeds the maxSessionLengthInMinutes
value,
* the session will automatically be stopped (instead of terminated).
*/
public void setMaxStoppedSessionLengthInMinutes(Integer maxStoppedSessionLengthInMinutes) {
this.maxStoppedSessionLengthInMinutes = maxStoppedSessionLengthInMinutes;
}
/**
*
* Integer that determines if you can start and stop your sessions and how long a session can stay in the
* STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the READY
* state exceeds the maxSessionLengthInMinutes
value, the session will automatically be terminated
* (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a session
* stays in the READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be stopped (instead of terminated).
*
STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the
* READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be terminated (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a
* session stays in the READY
state exceeds the maxSessionLengthInMinutes
value,
* the session will automatically be stopped (instead of terminated).
*/
public Integer getMaxStoppedSessionLengthInMinutes() {
return this.maxStoppedSessionLengthInMinutes;
}
/**
*
* Integer that determines if you can start and stop your sessions and how long a session can stay in the
* STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the READY
* state exceeds the maxSessionLengthInMinutes
value, the session will automatically be terminated
* (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a session
* stays in the READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be stopped (instead of terminated).
*
STOPPED
state. The default value is 0. The maximum value is 5760.
*
* This field is allowed only when sessionPersistenceMode
is ACTIVATED
and
* automaticTerminationMode
is ACTIVATED
.
*
* If the value is set to 0, your sessions can’t be STOPPED
. If you then call
* StopStreamingSession
, the session fails. If the time that a session stays in the
* READY
state exceeds the maxSessionLengthInMinutes
value, the session will
* automatically be terminated (instead of STOPPED
).
*
* If the value is set to a positive number, the session can be stopped. You can call
* StopStreamingSession
to stop sessions in the READY
state. If the time that a
* session stays in the READY
state exceeds the maxSessionLengthInMinutes
value,
* the session will automatically be stopped (instead of terminated).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamConfiguration withMaxStoppedSessionLengthInMinutes(Integer maxStoppedSessionLengthInMinutes) {
setMaxStoppedSessionLengthInMinutes(maxStoppedSessionLengthInMinutes);
return this;
}
/**
*
* Information about the streaming session backup. *
* * @param sessionBackup * Information about the streaming session backup. */ public void setSessionBackup(StreamConfigurationSessionBackup sessionBackup) { this.sessionBackup = sessionBackup; } /** ** Information about the streaming session backup. *
* * @return Information about the streaming session backup. */ public StreamConfigurationSessionBackup getSessionBackup() { return this.sessionBackup; } /** ** Information about the streaming session backup. *
* * @param sessionBackup * Information about the streaming session backup. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamConfiguration withSessionBackup(StreamConfigurationSessionBackup sessionBackup) { setSessionBackup(sessionBackup); return this; } /** *
* Determine if a streaming session created from this launch profile can configure persistent storage. This means
* that volumeConfiguration
and automaticTerminationMode
are configured.
*
volumeConfiguration
and automaticTerminationMode
are configured.
* @see SessionPersistenceMode
*/
public void setSessionPersistenceMode(String sessionPersistenceMode) {
this.sessionPersistenceMode = sessionPersistenceMode;
}
/**
*
* Determine if a streaming session created from this launch profile can configure persistent storage. This means
* that volumeConfiguration
and automaticTerminationMode
are configured.
*
volumeConfiguration
and automaticTerminationMode
are configured.
* @see SessionPersistenceMode
*/
public String getSessionPersistenceMode() {
return this.sessionPersistenceMode;
}
/**
*
* Determine if a streaming session created from this launch profile can configure persistent storage. This means
* that volumeConfiguration
and automaticTerminationMode
are configured.
*
volumeConfiguration
and automaticTerminationMode
are configured.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SessionPersistenceMode
*/
public StreamConfiguration withSessionPersistenceMode(String sessionPersistenceMode) {
setSessionPersistenceMode(sessionPersistenceMode);
return this;
}
/**
*
* Determine if a streaming session created from this launch profile can configure persistent storage. This means
* that volumeConfiguration
and automaticTerminationMode
are configured.
*
volumeConfiguration
and automaticTerminationMode
are configured.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SessionPersistenceMode
*/
public StreamConfiguration withSessionPersistenceMode(SessionPersistenceMode sessionPersistenceMode) {
this.sessionPersistenceMode = sessionPersistenceMode.toString();
return this;
}
/**
* * The upload storage for a streaming session. *
* * @param sessionStorage * The upload storage for a streaming session. */ public void setSessionStorage(StreamConfigurationSessionStorage sessionStorage) { this.sessionStorage = sessionStorage; } /** ** The upload storage for a streaming session. *
* * @return The upload storage for a streaming session. */ public StreamConfigurationSessionStorage getSessionStorage() { return this.sessionStorage; } /** ** The upload storage for a streaming session. *
* * @param sessionStorage * The upload storage for a streaming session. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamConfiguration withSessionStorage(StreamConfigurationSessionStorage sessionStorage) { setSessionStorage(sessionStorage); return this; } /** ** The streaming images that users can select from when launching a streaming session with this launch profile. *
* * @return The streaming images that users can select from when launching a streaming session with this launch * profile. */ public java.util.List* The streaming images that users can select from when launching a streaming session with this launch profile. *
* * @param streamingImageIds * The streaming images that users can select from when launching a streaming session with this launch * profile. */ public void setStreamingImageIds(java.util.Collection* The streaming images that users can select from when launching a streaming session with this launch profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStreamingImageIds(java.util.Collection)} or {@link #withStreamingImageIds(java.util.Collection)} if * you want to override the existing values. *
* * @param streamingImageIds * The streaming images that users can select from when launching a streaming session with this launch * profile. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamConfiguration withStreamingImageIds(String... streamingImageIds) { if (this.streamingImageIds == null) { setStreamingImageIds(new java.util.ArrayList* The streaming images that users can select from when launching a streaming session with this launch profile. *
* * @param streamingImageIds * The streaming images that users can select from when launching a streaming session with this launch * profile. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamConfiguration withStreamingImageIds(java.util.Collection* Custom volume configuration for the root volumes that are attached to streaming sessions. *
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*/
public void setVolumeConfiguration(VolumeConfiguration volumeConfiguration) {
this.volumeConfiguration = volumeConfiguration;
}
/**
*
* Custom volume configuration for the root volumes that are attached to streaming sessions. *
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*/
public VolumeConfiguration getVolumeConfiguration() {
return this.volumeConfiguration;
}
/**
*
* Custom volume configuration for the root volumes that are attached to streaming sessions. *
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
*
* This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamConfiguration withVolumeConfiguration(VolumeConfiguration volumeConfiguration) {
setVolumeConfiguration(volumeConfiguration);
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 (getAutomaticTerminationMode() != null)
sb.append("AutomaticTerminationMode: ").append(getAutomaticTerminationMode()).append(",");
if (getClipboardMode() != null)
sb.append("ClipboardMode: ").append(getClipboardMode()).append(",");
if (getEc2InstanceTypes() != null)
sb.append("Ec2InstanceTypes: ").append(getEc2InstanceTypes()).append(",");
if (getMaxSessionLengthInMinutes() != null)
sb.append("MaxSessionLengthInMinutes: ").append(getMaxSessionLengthInMinutes()).append(",");
if (getMaxStoppedSessionLengthInMinutes() != null)
sb.append("MaxStoppedSessionLengthInMinutes: ").append(getMaxStoppedSessionLengthInMinutes()).append(",");
if (getSessionBackup() != null)
sb.append("SessionBackup: ").append(getSessionBackup()).append(",");
if (getSessionPersistenceMode() != null)
sb.append("SessionPersistenceMode: ").append(getSessionPersistenceMode()).append(",");
if (getSessionStorage() != null)
sb.append("SessionStorage: ").append(getSessionStorage()).append(",");
if (getStreamingImageIds() != null)
sb.append("StreamingImageIds: ").append(getStreamingImageIds()).append(",");
if (getVolumeConfiguration() != null)
sb.append("VolumeConfiguration: ").append(getVolumeConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StreamConfiguration == false)
return false;
StreamConfiguration other = (StreamConfiguration) obj;
if (other.getAutomaticTerminationMode() == null ^ this.getAutomaticTerminationMode() == null)
return false;
if (other.getAutomaticTerminationMode() != null && other.getAutomaticTerminationMode().equals(this.getAutomaticTerminationMode()) == false)
return false;
if (other.getClipboardMode() == null ^ this.getClipboardMode() == null)
return false;
if (other.getClipboardMode() != null && other.getClipboardMode().equals(this.getClipboardMode()) == false)
return false;
if (other.getEc2InstanceTypes() == null ^ this.getEc2InstanceTypes() == null)
return false;
if (other.getEc2InstanceTypes() != null && other.getEc2InstanceTypes().equals(this.getEc2InstanceTypes()) == false)
return false;
if (other.getMaxSessionLengthInMinutes() == null ^ this.getMaxSessionLengthInMinutes() == null)
return false;
if (other.getMaxSessionLengthInMinutes() != null && other.getMaxSessionLengthInMinutes().equals(this.getMaxSessionLengthInMinutes()) == false)
return false;
if (other.getMaxStoppedSessionLengthInMinutes() == null ^ this.getMaxStoppedSessionLengthInMinutes() == null)
return false;
if (other.getMaxStoppedSessionLengthInMinutes() != null
&& other.getMaxStoppedSessionLengthInMinutes().equals(this.getMaxStoppedSessionLengthInMinutes()) == false)
return false;
if (other.getSessionBackup() == null ^ this.getSessionBackup() == null)
return false;
if (other.getSessionBackup() != null && other.getSessionBackup().equals(this.getSessionBackup()) == false)
return false;
if (other.getSessionPersistenceMode() == null ^ this.getSessionPersistenceMode() == null)
return false;
if (other.getSessionPersistenceMode() != null && other.getSessionPersistenceMode().equals(this.getSessionPersistenceMode()) == false)
return false;
if (other.getSessionStorage() == null ^ this.getSessionStorage() == null)
return false;
if (other.getSessionStorage() != null && other.getSessionStorage().equals(this.getSessionStorage()) == false)
return false;
if (other.getStreamingImageIds() == null ^ this.getStreamingImageIds() == null)
return false;
if (other.getStreamingImageIds() != null && other.getStreamingImageIds().equals(this.getStreamingImageIds()) == false)
return false;
if (other.getVolumeConfiguration() == null ^ this.getVolumeConfiguration() == null)
return false;
if (other.getVolumeConfiguration() != null && other.getVolumeConfiguration().equals(this.getVolumeConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAutomaticTerminationMode() == null) ? 0 : getAutomaticTerminationMode().hashCode());
hashCode = prime * hashCode + ((getClipboardMode() == null) ? 0 : getClipboardMode().hashCode());
hashCode = prime * hashCode + ((getEc2InstanceTypes() == null) ? 0 : getEc2InstanceTypes().hashCode());
hashCode = prime * hashCode + ((getMaxSessionLengthInMinutes() == null) ? 0 : getMaxSessionLengthInMinutes().hashCode());
hashCode = prime * hashCode + ((getMaxStoppedSessionLengthInMinutes() == null) ? 0 : getMaxStoppedSessionLengthInMinutes().hashCode());
hashCode = prime * hashCode + ((getSessionBackup() == null) ? 0 : getSessionBackup().hashCode());
hashCode = prime * hashCode + ((getSessionPersistenceMode() == null) ? 0 : getSessionPersistenceMode().hashCode());
hashCode = prime * hashCode + ((getSessionStorage() == null) ? 0 : getSessionStorage().hashCode());
hashCode = prime * hashCode + ((getStreamingImageIds() == null) ? 0 : getStreamingImageIds().hashCode());
hashCode = prime * hashCode + ((getVolumeConfiguration() == null) ? 0 : getVolumeConfiguration().hashCode());
return hashCode;
}
@Override
public StreamConfiguration clone() {
try {
return (StreamConfiguration) 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.nimblestudio.model.transform.StreamConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}