AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateWorkspaceApiKeyResult.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ManagedGrafana
24{
25namespace Model
26{
28 {
29 public:
30 AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult() = default;
33
34
36
40 inline const Aws::String& GetKey() const { return m_key; }
41 template<typename KeyT = Aws::String>
42 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
43 template<typename KeyT = Aws::String>
44 CreateWorkspaceApiKeyResult& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
46
48
51 inline const Aws::String& GetKeyName() const { return m_keyName; }
52 template<typename KeyNameT = Aws::String>
53 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
54 template<typename KeyNameT = Aws::String>
55 CreateWorkspaceApiKeyResult& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
63 template<typename WorkspaceIdT = Aws::String>
64 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
65 template<typename WorkspaceIdT = Aws::String>
66 CreateWorkspaceApiKeyResult& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
68
70
71 inline const Aws::String& GetRequestId() const { return m_requestId; }
72 template<typename RequestIdT = Aws::String>
73 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
74 template<typename RequestIdT = Aws::String>
75 CreateWorkspaceApiKeyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
77 private:
78
79 Aws::String m_key;
80 bool m_keyHasBeenSet = false;
81
82 Aws::String m_keyName;
83 bool m_keyNameHasBeenSet = false;
84
85 Aws::String m_workspaceId;
86 bool m_workspaceIdHasBeenSet = false;
87
88 Aws::String m_requestId;
89 bool m_requestIdHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ManagedGrafana
94} // namespace Aws
CreateWorkspaceApiKeyResult & WithKeyName(KeyNameT &&value)
AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult()=default
AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkspaceApiKeyResult & WithWorkspaceId(WorkspaceIdT &&value)
CreateWorkspaceApiKeyResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue