/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NimbleStudio { namespace Model { /** *

Information about the streaming session backup.

See Also:

AWS * API Reference

*/ class StreamingSessionBackup { public: AWS_NIMBLESTUDIO_API StreamingSessionBackup(); AWS_NIMBLESTUDIO_API StreamingSessionBackup(Aws::Utils::Json::JsonView jsonValue); AWS_NIMBLESTUDIO_API StreamingSessionBackup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NIMBLESTUDIO_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline StreamingSessionBackup& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline StreamingSessionBackup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is assigned to a studio resource and * uniquely identifies it. ARNs are unique across all Regions.

*/ inline StreamingSessionBackup& WithArn(const char* value) { SetArn(value); return *this;} /** *

The ID of the backup.

*/ inline const Aws::String& GetBackupId() const{ return m_backupId; } /** *

The ID of the backup.

*/ inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; } /** *

The ID of the backup.

*/ inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; } /** *

The ID of the backup.

*/ inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); } /** *

The ID of the backup.

*/ inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); } /** *

The ID of the backup.

*/ inline StreamingSessionBackup& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;} /** *

The ID of the backup.

*/ inline StreamingSessionBackup& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;} /** *

The ID of the backup.

*/ inline StreamingSessionBackup& WithBackupId(const char* value) { SetBackupId(value); return *this;} /** *

The ISO timestamp in for when the resource was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The ISO timestamp in for when the resource was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The ISO timestamp in for when the resource was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The ISO timestamp in for when the resource was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The ISO timestamp in for when the resource was created.

*/ inline StreamingSessionBackup& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The ISO timestamp in for when the resource was created.

*/ inline StreamingSessionBackup& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline const Aws::String& GetLaunchProfileId() const{ return m_launchProfileId; } /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline bool LaunchProfileIdHasBeenSet() const { return m_launchProfileIdHasBeenSet; } /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline void SetLaunchProfileId(const Aws::String& value) { m_launchProfileIdHasBeenSet = true; m_launchProfileId = value; } /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline void SetLaunchProfileId(Aws::String&& value) { m_launchProfileIdHasBeenSet = true; m_launchProfileId = std::move(value); } /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline void SetLaunchProfileId(const char* value) { m_launchProfileIdHasBeenSet = true; m_launchProfileId.assign(value); } /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline StreamingSessionBackup& WithLaunchProfileId(const Aws::String& value) { SetLaunchProfileId(value); return *this;} /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline StreamingSessionBackup& WithLaunchProfileId(Aws::String&& value) { SetLaunchProfileId(std::move(value)); return *this;} /** *

The ID of the launch profile which allowed the backups for the streaming * session.

*/ inline StreamingSessionBackup& WithLaunchProfileId(const char* value) { SetLaunchProfileId(value); return *this;} /** *

The user ID of the user that owns the streaming session.

*/ inline const Aws::String& GetOwnedBy() const{ return m_ownedBy; } /** *

The user ID of the user that owns the streaming session.

*/ inline bool OwnedByHasBeenSet() const { return m_ownedByHasBeenSet; } /** *

The user ID of the user that owns the streaming session.

*/ inline void SetOwnedBy(const Aws::String& value) { m_ownedByHasBeenSet = true; m_ownedBy = value; } /** *

The user ID of the user that owns the streaming session.

*/ inline void SetOwnedBy(Aws::String&& value) { m_ownedByHasBeenSet = true; m_ownedBy = std::move(value); } /** *

The user ID of the user that owns the streaming session.

*/ inline void SetOwnedBy(const char* value) { m_ownedByHasBeenSet = true; m_ownedBy.assign(value); } /** *

The user ID of the user that owns the streaming session.

*/ inline StreamingSessionBackup& WithOwnedBy(const Aws::String& value) { SetOwnedBy(value); return *this;} /** *

The user ID of the user that owns the streaming session.

*/ inline StreamingSessionBackup& WithOwnedBy(Aws::String&& value) { SetOwnedBy(std::move(value)); return *this;} /** *

The user ID of the user that owns the streaming session.

*/ inline StreamingSessionBackup& WithOwnedBy(const char* value) { SetOwnedBy(value); return *this;} /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline StreamingSessionBackup& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline StreamingSessionBackup& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The streaming session ID for the StreamingSessionBackup.

*/ inline StreamingSessionBackup& WithSessionId(const char* value) { SetSessionId(value); return *this;} inline const StreamingSessionState& GetState() const{ return m_state; } inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } inline void SetState(const StreamingSessionState& value) { m_stateHasBeenSet = true; m_state = value; } inline void SetState(StreamingSessionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } inline StreamingSessionBackup& WithState(const StreamingSessionState& value) { SetState(value); return *this;} inline StreamingSessionBackup& WithState(StreamingSessionState&& value) { SetState(std::move(value)); return *this;} /** *

The status code.

*/ inline const StreamingSessionStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

The status code.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The status code.

*/ inline void SetStatusCode(const StreamingSessionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The status code.

*/ inline void SetStatusCode(StreamingSessionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

The status code.

*/ inline StreamingSessionBackup& WithStatusCode(const StreamingSessionStatusCode& value) { SetStatusCode(value); return *this;} /** *

The status code.

*/ inline StreamingSessionBackup& WithStatusCode(StreamingSessionStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} /** *

The status message for the streaming session backup.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message for the streaming session backup.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status message for the streaming session backup.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status message for the streaming session backup.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status message for the streaming session backup.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status message for the streaming session backup.

*/ inline StreamingSessionBackup& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message for the streaming session backup.

*/ inline StreamingSessionBackup& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message for the streaming session backup.

*/ inline StreamingSessionBackup& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A collection of labels, in the form of key-value pairs, that apply to this * resource.

*/ inline StreamingSessionBackup& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_backupId; bool m_backupIdHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_launchProfileId; bool m_launchProfileIdHasBeenSet = false; Aws::String m_ownedBy; bool m_ownedByHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; StreamingSessionState m_state; bool m_stateHasBeenSet = false; StreamingSessionStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NimbleStudio } // namespace Aws