/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PrometheusService { namespace Model { /** *

Represents the output of a CreateWorkspace operation.

See * Also:

AWS * API Reference

*/ class CreateWorkspaceResult { public: AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult(); AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult(const Aws::AmazonWebServiceResult& result); AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The generated ID of the workspace that was just created.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The generated ID of the workspace that was just created.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceId = value; } /** *

The generated ID of the workspace that was just created.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceId = std::move(value); } /** *

The generated ID of the workspace that was just created.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceId.assign(value); } /** *

The generated ID of the workspace that was just created.

*/ inline CreateWorkspaceResult& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The generated ID of the workspace that was just created.

*/ inline CreateWorkspaceResult& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The generated ID of the workspace that was just created.

*/ inline CreateWorkspaceResult& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The ARN of the workspace that was just created.

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

The status of the workspace that was just created (usually CREATING).

*/ inline const WorkspaceStatus& GetStatus() const{ return m_status; } /** *

The status of the workspace that was just created (usually CREATING).

*/ inline void SetStatus(const WorkspaceStatus& value) { m_status = value; } /** *

The status of the workspace that was just created (usually CREATING).

*/ inline void SetStatus(WorkspaceStatus&& value) { m_status = std::move(value); } /** *

The status of the workspace that was just created (usually CREATING).

*/ inline CreateWorkspaceResult& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} /** *

The status of the workspace that was just created (usually CREATING).

*/ inline CreateWorkspaceResult& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

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

The tags of this workspace.

*/ inline CreateWorkspaceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateWorkspaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorkspaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorkspaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_workspaceId; Aws::String m_arn; WorkspaceStatus m_status; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace PrometheusService } // namespace Aws