AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspaceResult.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amp/model/WorkspaceStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PrometheusService
26{
27namespace Model
28{
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult();
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline void SetArn(const Aws::String& value) { m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arn.assign(value); }
51 inline CreateWorkspaceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline CreateWorkspaceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline CreateWorkspaceResult& WithArn(const char* value) { SetArn(value); return *this;}
55
57
61 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
62 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
63 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
64 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
65 inline CreateWorkspaceResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
66 inline CreateWorkspaceResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
67 inline CreateWorkspaceResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
69
71
75 inline const WorkspaceStatus& GetStatus() const{ return m_status; }
76 inline void SetStatus(const WorkspaceStatus& value) { m_status = value; }
77 inline void SetStatus(WorkspaceStatus&& value) { m_status = std::move(value); }
78 inline CreateWorkspaceResult& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;}
79 inline CreateWorkspaceResult& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
89 inline CreateWorkspaceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
90 inline CreateWorkspaceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateWorkspaceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
92 inline CreateWorkspaceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateWorkspaceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateWorkspaceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateWorkspaceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateWorkspaceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateWorkspaceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
99
101
104 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
105 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceId = value; }
106 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceId = std::move(value); }
107 inline void SetWorkspaceId(const char* value) { m_workspaceId.assign(value); }
108 inline CreateWorkspaceResult& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
109 inline CreateWorkspaceResult& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
110 inline CreateWorkspaceResult& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
112
114
115 inline const Aws::String& GetRequestId() const{ return m_requestId; }
116 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
117 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
118 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
119 inline CreateWorkspaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
120 inline CreateWorkspaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
121 inline CreateWorkspaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
123 private:
124
125 Aws::String m_arn;
126
127 Aws::String m_kmsKeyArn;
128
129 WorkspaceStatus m_status;
130
132
133 Aws::String m_workspaceId;
134
135 Aws::String m_requestId;
136 };
137
138} // namespace Model
139} // namespace PrometheusService
140} // namespace Aws
CreateWorkspaceResult & WithKmsKeyArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkspaceResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceResult & AddTags(const char *key, const char *value)
CreateWorkspaceResult & AddTags(const Aws::String &key, const Aws::String &value)
CreateWorkspaceResult & WithWorkspaceId(Aws::String &&value)
CreateWorkspaceResult & WithRequestId(const Aws::String &value)
CreateWorkspaceResult & WithWorkspaceId(const Aws::String &value)
CreateWorkspaceResult & WithKmsKeyArn(Aws::String &&value)
CreateWorkspaceResult & WithRequestId(Aws::String &&value)
CreateWorkspaceResult & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceResult & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceResult & AddTags(Aws::String &&key, Aws::String &&value)
CreateWorkspaceResult & WithArn(Aws::String &&value)
CreateWorkspaceResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceResult & WithKmsKeyArn(const Aws::String &value)
AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkspaceResult & AddTags(const char *key, Aws::String &&value)
CreateWorkspaceResult & WithStatus(const WorkspaceStatus &value)
CreateWorkspaceResult & AddTags(Aws::String &&key, const Aws::String &value)
CreateWorkspaceResult & WithRequestId(const char *value)
AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkspaceResult & WithArn(const Aws::String &value)
CreateWorkspaceResult & WithWorkspaceId(const char *value)
CreateWorkspaceResult & WithStatus(WorkspaceStatus &&value)
CreateWorkspaceResult & WithArn(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue