/* * 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; /** *
* Information about the streaming session backup. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamingSessionBackup implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique * across all Regions. *
*/ private String arn; /** ** The ID of the backup. *
*/ private String backupId; /** ** The ISO timestamp in for when the resource was created. *
*/ private java.util.Date createdAt; /** ** The ID of the launch profile which allowed the backups for the streaming session. *
*/ private String launchProfileId; /** ** The user ID of the user that owns the streaming session. *
*/ private String ownedBy; /** *
* The streaming session ID for the StreamingSessionBackup
.
*
* The status code. *
*/ private String statusCode; /** ** The status message for the streaming session backup. *
*/ private String statusMessage; /** ** A collection of labels, in the form of key-value pairs, that apply to this resource. *
*/ private java.util.Map* The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique * across all Regions. *
* * @param arn * The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are * unique across all Regions. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique * across all Regions. *
* * @return The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are * unique across all Regions. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique * across all Regions. *
* * @param arn * The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are * unique across all Regions. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingSessionBackup withArn(String arn) { setArn(arn); return this; } /** ** The ID of the backup. *
* * @param backupId * The ID of the backup. */ public void setBackupId(String backupId) { this.backupId = backupId; } /** ** The ID of the backup. *
* * @return The ID of the backup. */ public String getBackupId() { return this.backupId; } /** ** The ID of the backup. *
* * @param backupId * The ID of the backup. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingSessionBackup withBackupId(String backupId) { setBackupId(backupId); return this; } /** ** The ISO timestamp in for when the resource was created. *
* * @param createdAt * The ISO timestamp in for when the resource was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The ISO timestamp in for when the resource was created. *
* * @return The ISO timestamp in for when the resource was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The ISO timestamp in for when the resource was created. *
* * @param createdAt * The ISO timestamp in for when the resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingSessionBackup withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The ID of the launch profile which allowed the backups for the streaming session. *
* * @param launchProfileId * The ID of the launch profile which allowed the backups for the streaming session. */ public void setLaunchProfileId(String launchProfileId) { this.launchProfileId = launchProfileId; } /** ** The ID of the launch profile which allowed the backups for the streaming session. *
* * @return The ID of the launch profile which allowed the backups for the streaming session. */ public String getLaunchProfileId() { return this.launchProfileId; } /** ** The ID of the launch profile which allowed the backups for the streaming session. *
* * @param launchProfileId * The ID of the launch profile which allowed the backups for the streaming session. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingSessionBackup 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 StreamingSessionBackup withOwnedBy(String ownedBy) { setOwnedBy(ownedBy); return this; } /** *
* The streaming session ID for the StreamingSessionBackup
.
*
StreamingSessionBackup
.
*/
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
/**
*
* The streaming session ID for the StreamingSessionBackup
.
*
StreamingSessionBackup
.
*/
public String getSessionId() {
return this.sessionId;
}
/**
*
* The streaming session ID for the StreamingSessionBackup
.
*
StreamingSessionBackup
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StreamingSessionBackup withSessionId(String sessionId) {
setSessionId(sessionId);
return this;
}
/**
* @param state
* @see StreamingSessionState
*/
public void setState(String state) {
this.state = state;
}
/**
* @return
* @see StreamingSessionState
*/
public String getState() {
return this.state;
}
/**
* @param state
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionState
*/
public StreamingSessionBackup withState(String state) {
setState(state);
return this;
}
/**
* @param state
* @return Returns a reference to this object so that method calls can be chained together.
* @see StreamingSessionState
*/
public StreamingSessionBackup 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 StreamingSessionBackup 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 StreamingSessionBackup withStatusCode(StreamingSessionStatusCode statusCode) { this.statusCode = statusCode.toString(); return this; } /** ** The status message for the streaming session backup. *
* * @param statusMessage * The status message for the streaming session backup. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The status message for the streaming session backup. *
* * @return The status message for the streaming session backup. */ public String getStatusMessage() { return this.statusMessage; } /** ** The status message for the streaming session backup. *
* * @param statusMessage * The status message for the streaming session backup. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingSessionBackup withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); 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* 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* 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 StreamingSessionBackup withTags(java.util.Map