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

Describes a standby WorkSpace.

See Also:

AWS * API Reference

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

The identifier of the standby WorkSpace.

*/ inline const Aws::String& GetPrimaryWorkspaceId() const{ return m_primaryWorkspaceId; } /** *

The identifier of the standby WorkSpace.

*/ inline bool PrimaryWorkspaceIdHasBeenSet() const { return m_primaryWorkspaceIdHasBeenSet; } /** *

The identifier of the standby WorkSpace.

*/ inline void SetPrimaryWorkspaceId(const Aws::String& value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId = value; } /** *

The identifier of the standby WorkSpace.

*/ inline void SetPrimaryWorkspaceId(Aws::String&& value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId = std::move(value); } /** *

The identifier of the standby WorkSpace.

*/ inline void SetPrimaryWorkspaceId(const char* value) { m_primaryWorkspaceIdHasBeenSet = true; m_primaryWorkspaceId.assign(value); } /** *

The identifier of the standby WorkSpace.

*/ inline StandbyWorkspace& WithPrimaryWorkspaceId(const Aws::String& value) { SetPrimaryWorkspaceId(value); return *this;} /** *

The identifier of the standby WorkSpace.

*/ inline StandbyWorkspace& WithPrimaryWorkspaceId(Aws::String&& value) { SetPrimaryWorkspaceId(std::move(value)); return *this;} /** *

The identifier of the standby WorkSpace.

*/ inline StandbyWorkspace& WithPrimaryWorkspaceId(const char* value) { SetPrimaryWorkspaceId(value); return *this;} /** *

The volume encryption key of the standby WorkSpace.

*/ inline const Aws::String& GetVolumeEncryptionKey() const{ return m_volumeEncryptionKey; } /** *

The volume encryption key of the standby WorkSpace.

*/ inline bool VolumeEncryptionKeyHasBeenSet() const { return m_volumeEncryptionKeyHasBeenSet; } /** *

The volume encryption key of the standby WorkSpace.

*/ inline void SetVolumeEncryptionKey(const Aws::String& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = value; } /** *

The volume encryption key of the standby WorkSpace.

*/ inline void SetVolumeEncryptionKey(Aws::String&& value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey = std::move(value); } /** *

The volume encryption key of the standby WorkSpace.

*/ inline void SetVolumeEncryptionKey(const char* value) { m_volumeEncryptionKeyHasBeenSet = true; m_volumeEncryptionKey.assign(value); } /** *

The volume encryption key of the standby WorkSpace.

*/ inline StandbyWorkspace& WithVolumeEncryptionKey(const Aws::String& value) { SetVolumeEncryptionKey(value); return *this;} /** *

The volume encryption key of the standby WorkSpace.

*/ inline StandbyWorkspace& WithVolumeEncryptionKey(Aws::String&& value) { SetVolumeEncryptionKey(std::move(value)); return *this;} /** *

The volume encryption key of the standby WorkSpace.

*/ inline StandbyWorkspace& WithVolumeEncryptionKey(const char* value) { SetVolumeEncryptionKey(value); return *this;} /** *

The identifier of the directory for the standby WorkSpace.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The identifier of the directory for the standby WorkSpace.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The identifier of the directory for the standby WorkSpace.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The identifier of the directory for the standby WorkSpace.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The identifier of the directory for the standby WorkSpace.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The identifier of the directory for the standby WorkSpace.

*/ inline StandbyWorkspace& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The identifier of the directory for the standby WorkSpace.

*/ inline StandbyWorkspace& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The identifier of the directory for the standby WorkSpace.

*/ inline StandbyWorkspace& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

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

The tags associated with the standby WorkSpace.

*/ inline StandbyWorkspace& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags associated with the standby WorkSpace.

*/ inline StandbyWorkspace& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_primaryWorkspaceId; bool m_primaryWorkspaceIdHasBeenSet = false; Aws::String m_volumeEncryptionKey; bool m_volumeEncryptionKeyHasBeenSet = false; Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws