/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ManagedGrafana { namespace Model { class CreateWorkspaceApiKeyResult { public: AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult(); AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult(const Aws::AmazonWebServiceResult& result); AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

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

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

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

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

*/ inline void SetKey(const char* value) { m_key.assign(value); } /** *

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

*/ inline CreateWorkspaceApiKeyResult& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

*/ inline CreateWorkspaceApiKeyResult& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The key token. Use this value as a bearer token to authenticate HTTP requests * to the workspace.

*/ inline CreateWorkspaceApiKeyResult& WithKey(const char* value) { SetKey(value); return *this;} /** *

The name of the key that was created.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

The name of the key that was created.

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

The name of the key that was created.

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

The name of the key that was created.

*/ inline void SetKeyName(const char* value) { m_keyName.assign(value); } /** *

The name of the key that was created.

*/ inline CreateWorkspaceApiKeyResult& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The name of the key that was created.

*/ inline CreateWorkspaceApiKeyResult& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

The name of the key that was created.

*/ inline CreateWorkspaceApiKeyResult& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

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

The ID of the workspace that the key is valid for.

*/ inline CreateWorkspaceApiKeyResult& WithWorkspaceId(const char* value) { SetWorkspaceId(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 CreateWorkspaceApiKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorkspaceApiKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorkspaceApiKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_key; Aws::String m_keyName; Aws::String m_workspaceId; Aws::String m_requestId; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws