
com.amazonaws.services.nimblestudio.model.StreamingSession Maven / Gradle / Ivy
/*
* Copyright 2016-2021 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 streaming session is a virtual workstation created using a particular launch profile.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StreamingSession implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ARN of the resource.
*
*/
private String arn;
/**
*
* The Unix epoch timestamp in seconds for when the resource was created.
*
*/
private java.util.Date createdAt;
/**
*
* The user ID of the user that created the streaming session.
*
*/
private String createdBy;
/**
*
* The EC2 Instance type used for the streaming session.
*
*/
private String ec2InstanceType;
/**
*
* The ID of the launch profile used to control access from the streaming session.
*
*/
private String launchProfileId;
/**
*
* The user ID of the user that owns the streaming session.
*
*/
private String ownedBy;
/**
*
* The session ID.
*
*/
private String sessionId;
/**
*
* The time the session entered START_IN_PROGRESS state.
*
*/
private java.util.Date startedAt;
/**
*
* The user ID of the user that started the streaming session.
*
*/
private String startedBy;
/**
*
* The current state.
*
*/
private String state;
/**
*
* The status code.
*
*/
private String statusCode;
/**
*
* The status message for the streaming session.
*
*/
private String statusMessage;
/**
*
* The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
*
*/
private java.util.Date stopAt;
/**
*
* The time the session entered STOP_IN_PROGRESS state.
*
*/
private java.util.Date stoppedAt;
/**
*
* The user ID of the user that stopped the streaming session.
*
*/
private String stoppedBy;
/**
*
* The ID of the streaming image.
*
*/
private String streamingImageId;
/**
*
* A collection of labels, in the form of key:value pairs, that apply to this resource.
*
*/
private java.util.Map tags;
/**
*
* The time the streaming session will automatically terminate if not terminated by the user.
*
*/
private java.util.Date terminateAt;
/**
*
* The Unix epoch timestamp in seconds for when the resource was updated.
*
*/
private java.util.Date updatedAt;
/**
*
* The user ID of the user that most recently updated the resource.
*
*/
private String updatedBy;
/**
*
* The ARN of the resource.
*
*
* @param arn
* The ARN of the resource.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The ARN of the resource.
*
*
* @return The ARN of the resource.
*/
public String getArn() {
return this.arn;
}
/**
*
* The ARN of the resource.
*
*
* @param arn
* The ARN of the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was created.
*
*
* @param createdAt
* The Unix epoch timestamp in seconds for when the resource was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was created.
*
*
* @return The Unix epoch timestamp in seconds for when the resource was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was created.
*
*
* @param createdAt
* The Unix epoch timestamp in seconds for when the resource was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The user ID of the user that created the streaming session.
*
*
* @param createdBy
* The user ID of the user that created the streaming session.
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
*
* The user ID of the user that created the streaming session.
*
*
* @return The user ID of the user that created the streaming session.
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
*
* The user ID of the user that created the streaming session.
*
*
* @param createdBy
* The user ID of the user that created the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withCreatedBy(String createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
*
* The EC2 Instance type used for the streaming session.
*
*
* @param ec2InstanceType
* The EC2 Instance type used for the streaming session.
*/
public void setEc2InstanceType(String ec2InstanceType) {
this.ec2InstanceType = ec2InstanceType;
}
/**
*
* The EC2 Instance type used for the streaming session.
*
*
* @return The EC2 Instance type used for the streaming session.
*/
public String getEc2InstanceType() {
return this.ec2InstanceType;
}
/**
*
* The EC2 Instance type used for the streaming session.
*
*
* @param ec2InstanceType
* The EC2 Instance type used for the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withEc2InstanceType(String ec2InstanceType) {
setEc2InstanceType(ec2InstanceType);
return this;
}
/**
*
* The ID of the launch profile used to control access from the streaming session.
*
*
* @param launchProfileId
* The ID of the launch profile used to control access from the streaming session.
*/
public void setLaunchProfileId(String launchProfileId) {
this.launchProfileId = launchProfileId;
}
/**
*
* The ID of the launch profile used to control access from the streaming session.
*
*
* @return The ID of the launch profile used to control access from the streaming session.
*/
public String getLaunchProfileId() {
return this.launchProfileId;
}
/**
*
* The ID of the launch profile used to control access from the streaming session.
*
*
* @param launchProfileId
* The ID of the launch profile used to control access from the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withLaunchProfileId(String launchProfileId) {
setLaunchProfileId(launchProfileId);
return this;
}
/**
*
* The user ID of the user that owns the streaming session.
*
*
* @param ownedBy
* The user ID of the user that owns the streaming session.
*/
public void setOwnedBy(String ownedBy) {
this.ownedBy = ownedBy;
}
/**
*
* The user ID of the user that owns the streaming session.
*
*
* @return The user ID of the user that owns the streaming session.
*/
public String getOwnedBy() {
return this.ownedBy;
}
/**
*
* The user ID of the user that owns the streaming session.
*
*
* @param ownedBy
* The user ID of the user that owns the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withOwnedBy(String ownedBy) {
setOwnedBy(ownedBy);
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 StreamingSession withSessionId(String sessionId) {
setSessionId(sessionId);
return this;
}
/**
*
* The time the session entered START_IN_PROGRESS state.
*
*
* @param startedAt
* The time the session entered START_IN_PROGRESS state.
*/
public void setStartedAt(java.util.Date startedAt) {
this.startedAt = startedAt;
}
/**
*
* The time the session entered START_IN_PROGRESS state.
*
*
* @return The time the session entered START_IN_PROGRESS state.
*/
public java.util.Date getStartedAt() {
return this.startedAt;
}
/**
*
* The time the session entered START_IN_PROGRESS state.
*
*
* @param startedAt
* The time the session entered START_IN_PROGRESS state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStartedAt(java.util.Date startedAt) {
setStartedAt(startedAt);
return this;
}
/**
*
* The user ID of the user that started the streaming session.
*
*
* @param startedBy
* The user ID of the user that started the streaming session.
*/
public void setStartedBy(String startedBy) {
this.startedBy = startedBy;
}
/**
*
* The user ID of the user that started the streaming session.
*
*
* @return The user ID of the user that started the streaming session.
*/
public String getStartedBy() {
return this.startedBy;
}
/**
*
* The user ID of the user that started the streaming session.
*
*
* @param startedBy
* The user ID of the user that started the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStartedBy(String startedBy) {
setStartedBy(startedBy);
return this;
}
/**
*
* The current state.
*
*
* @param state
* The current state.
* @see StreamingSessionState
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The current state.
*
*
* @return The current state.
* @see StreamingSessionState
*/
public String getState() {
return this.state;
}
/**
*
* The current state.
*
*
* @param state
* The current state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionState
*/
public StreamingSession withState(String state) {
setState(state);
return this;
}
/**
*
* The current state.
*
*
* @param state
* The current state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionState
*/
public StreamingSession withState(StreamingSessionState state) {
this.state = state.toString();
return this;
}
/**
*
* The status code.
*
*
* @param statusCode
* The status code.
* @see StreamingSessionStatusCode
*/
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
/**
*
* The status code.
*
*
* @return The status code.
* @see StreamingSessionStatusCode
*/
public String getStatusCode() {
return this.statusCode;
}
/**
*
* The status code.
*
*
* @param statusCode
* The status code.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionStatusCode
*/
public StreamingSession withStatusCode(String statusCode) {
setStatusCode(statusCode);
return this;
}
/**
*
* The status code.
*
*
* @param statusCode
* The status code.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionStatusCode
*/
public StreamingSession withStatusCode(StreamingSessionStatusCode statusCode) {
this.statusCode = statusCode.toString();
return this;
}
/**
*
* The status message for the streaming session.
*
*
* @param statusMessage
* The status message for the streaming session.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* The status message for the streaming session.
*
*
* @return The status message for the streaming session.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* The status message for the streaming session.
*
*
* @param statusMessage
* The status message for the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
*
*
* @param stopAt
* The time the streaming session will automatically be stopped if the user doesn’t stop the session
* themselves.
*/
public void setStopAt(java.util.Date stopAt) {
this.stopAt = stopAt;
}
/**
*
* The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
*
*
* @return The time the streaming session will automatically be stopped if the user doesn’t stop the session
* themselves.
*/
public java.util.Date getStopAt() {
return this.stopAt;
}
/**
*
* The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
*
*
* @param stopAt
* The time the streaming session will automatically be stopped if the user doesn’t stop the session
* themselves.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStopAt(java.util.Date stopAt) {
setStopAt(stopAt);
return this;
}
/**
*
* The time the session entered STOP_IN_PROGRESS state.
*
*
* @param stoppedAt
* The time the session entered STOP_IN_PROGRESS state.
*/
public void setStoppedAt(java.util.Date stoppedAt) {
this.stoppedAt = stoppedAt;
}
/**
*
* The time the session entered STOP_IN_PROGRESS state.
*
*
* @return The time the session entered STOP_IN_PROGRESS state.
*/
public java.util.Date getStoppedAt() {
return this.stoppedAt;
}
/**
*
* The time the session entered STOP_IN_PROGRESS state.
*
*
* @param stoppedAt
* The time the session entered STOP_IN_PROGRESS state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStoppedAt(java.util.Date stoppedAt) {
setStoppedAt(stoppedAt);
return this;
}
/**
*
* The user ID of the user that stopped the streaming session.
*
*
* @param stoppedBy
* The user ID of the user that stopped the streaming session.
*/
public void setStoppedBy(String stoppedBy) {
this.stoppedBy = stoppedBy;
}
/**
*
* The user ID of the user that stopped the streaming session.
*
*
* @return The user ID of the user that stopped the streaming session.
*/
public String getStoppedBy() {
return this.stoppedBy;
}
/**
*
* The user ID of the user that stopped the streaming session.
*
*
* @param stoppedBy
* The user ID of the user that stopped the streaming session.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStoppedBy(String stoppedBy) {
setStoppedBy(stoppedBy);
return this;
}
/**
*
* The ID of the streaming image.
*
*
* @param streamingImageId
* The ID of the streaming image.
*/
public void setStreamingImageId(String streamingImageId) {
this.streamingImageId = streamingImageId;
}
/**
*
* The ID of the streaming image.
*
*
* @return The ID of the streaming image.
*/
public String getStreamingImageId() {
return this.streamingImageId;
}
/**
*
* The ID of the streaming image.
*
*
* @param streamingImageId
* The ID of the streaming image.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withStreamingImageId(String streamingImageId) {
setStreamingImageId(streamingImageId);
return this;
}
/**
*
* A collection of labels, in the form of key:value pairs, that apply to this resource.
*
*
* @return A collection of labels, in the form of key:value pairs, that apply to this resource.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* A collection of labels, in the form of key:value pairs, that apply to this resource.
*
*
* @param tags
* A collection of labels, in the form of key:value pairs, that apply to this resource.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* A collection of labels, in the form of key:value pairs, that apply to this resource.
*
*
* @param tags
* A collection of labels, in the form of key:value pairs, that apply to this resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see StreamingSession#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The time the streaming session will automatically terminate if not terminated by the user.
*
*
* @param terminateAt
* The time the streaming session will automatically terminate if not terminated by the user.
*/
public void setTerminateAt(java.util.Date terminateAt) {
this.terminateAt = terminateAt;
}
/**
*
* The time the streaming session will automatically terminate if not terminated by the user.
*
*
* @return The time the streaming session will automatically terminate if not terminated by the user.
*/
public java.util.Date getTerminateAt() {
return this.terminateAt;
}
/**
*
* The time the streaming session will automatically terminate if not terminated by the user.
*
*
* @param terminateAt
* The time the streaming session will automatically terminate if not terminated by the user.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withTerminateAt(java.util.Date terminateAt) {
setTerminateAt(terminateAt);
return this;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was updated.
*
*
* @param updatedAt
* The Unix epoch timestamp in seconds for when the resource was updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was updated.
*
*
* @return The Unix epoch timestamp in seconds for when the resource was updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The Unix epoch timestamp in seconds for when the resource was updated.
*
*
* @param updatedAt
* The Unix epoch timestamp in seconds for when the resource was updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* The user ID of the user that most recently updated the resource.
*
*
* @param updatedBy
* The user ID of the user that most recently updated the resource.
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
*
* The user ID of the user that most recently updated the resource.
*
*
* @return The user ID of the user that most recently updated the resource.
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
*
* The user ID of the user that most recently updated the resource.
*
*
* @param updatedBy
* The user ID of the user that most recently updated the resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSession withUpdatedBy(String updatedBy) {
setUpdatedBy(updatedBy);
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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getEc2InstanceType() != null)
sb.append("Ec2InstanceType: ").append(getEc2InstanceType()).append(",");
if (getLaunchProfileId() != null)
sb.append("LaunchProfileId: ").append(getLaunchProfileId()).append(",");
if (getOwnedBy() != null)
sb.append("OwnedBy: ").append(getOwnedBy()).append(",");
if (getSessionId() != null)
sb.append("SessionId: ").append(getSessionId()).append(",");
if (getStartedAt() != null)
sb.append("StartedAt: ").append(getStartedAt()).append(",");
if (getStartedBy() != null)
sb.append("StartedBy: ").append(getStartedBy()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getStatusCode() != null)
sb.append("StatusCode: ").append(getStatusCode()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getStopAt() != null)
sb.append("StopAt: ").append(getStopAt()).append(",");
if (getStoppedAt() != null)
sb.append("StoppedAt: ").append(getStoppedAt()).append(",");
if (getStoppedBy() != null)
sb.append("StoppedBy: ").append(getStoppedBy()).append(",");
if (getStreamingImageId() != null)
sb.append("StreamingImageId: ").append(getStreamingImageId()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getTerminateAt() != null)
sb.append("TerminateAt: ").append(getTerminateAt()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getUpdatedBy() != null)
sb.append("UpdatedBy: ").append(getUpdatedBy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StreamingSession == false)
return false;
StreamingSession other = (StreamingSession) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getCreatedBy() == null ^ this.getCreatedBy() == null)
return false;
if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false)
return false;
if (other.getEc2InstanceType() == null ^ this.getEc2InstanceType() == null)
return false;
if (other.getEc2InstanceType() != null && other.getEc2InstanceType().equals(this.getEc2InstanceType()) == false)
return false;
if (other.getLaunchProfileId() == null ^ this.getLaunchProfileId() == null)
return false;
if (other.getLaunchProfileId() != null && other.getLaunchProfileId().equals(this.getLaunchProfileId()) == false)
return false;
if (other.getOwnedBy() == null ^ this.getOwnedBy() == null)
return false;
if (other.getOwnedBy() != null && other.getOwnedBy().equals(this.getOwnedBy()) == 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.getStartedBy() == null ^ this.getStartedBy() == null)
return false;
if (other.getStartedBy() != null && other.getStartedBy().equals(this.getStartedBy()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getStatusCode() == null ^ this.getStatusCode() == null)
return false;
if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == false)
return false;
if (other.getStatusMessage() == null ^ this.getStatusMessage() == null)
return false;
if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false)
return false;
if (other.getStopAt() == null ^ this.getStopAt() == null)
return false;
if (other.getStopAt() != null && other.getStopAt().equals(this.getStopAt()) == false)
return false;
if (other.getStoppedAt() == null ^ this.getStoppedAt() == null)
return false;
if (other.getStoppedAt() != null && other.getStoppedAt().equals(this.getStoppedAt()) == false)
return false;
if (other.getStoppedBy() == null ^ this.getStoppedBy() == null)
return false;
if (other.getStoppedBy() != null && other.getStoppedBy().equals(this.getStoppedBy()) == false)
return false;
if (other.getStreamingImageId() == null ^ this.getStreamingImageId() == null)
return false;
if (other.getStreamingImageId() != null && other.getStreamingImageId().equals(this.getStreamingImageId()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getTerminateAt() == null ^ this.getTerminateAt() == null)
return false;
if (other.getTerminateAt() != null && other.getTerminateAt().equals(this.getTerminateAt()) == 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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getEc2InstanceType() == null) ? 0 : getEc2InstanceType().hashCode());
hashCode = prime * hashCode + ((getLaunchProfileId() == null) ? 0 : getLaunchProfileId().hashCode());
hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode());
hashCode = prime * hashCode + ((getSessionId() == null) ? 0 : getSessionId().hashCode());
hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode());
hashCode = prime * hashCode + ((getStartedBy() == null) ? 0 : getStartedBy().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getStopAt() == null) ? 0 : getStopAt().hashCode());
hashCode = prime * hashCode + ((getStoppedAt() == null) ? 0 : getStoppedAt().hashCode());
hashCode = prime * hashCode + ((getStoppedBy() == null) ? 0 : getStoppedBy().hashCode());
hashCode = prime * hashCode + ((getStreamingImageId() == null) ? 0 : getStreamingImageId().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getTerminateAt() == null) ? 0 : getTerminateAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode());
return hashCode;
}
@Override
public StreamingSession clone() {
try {
return (StreamingSession) 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.StreamingSessionMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}