AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateWorkspaceAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace PrometheusService
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspaceAlias"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetAlias() const{ return m_alias; }
44 
48  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
49 
53  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
54 
58  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
59 
63  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
64 
68  inline UpdateWorkspaceAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
69 
73  inline UpdateWorkspaceAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
74 
78  inline UpdateWorkspaceAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
79 
80 
85  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
86 
91  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 
97  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
98 
103  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
104 
109  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
110 
115  inline UpdateWorkspaceAliasRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
116 
121  inline UpdateWorkspaceAliasRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
122 
127  inline UpdateWorkspaceAliasRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
128 
129 
133  inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
134 
138  inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
139 
143  inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
144 
148  inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
149 
153  inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
154 
158  inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
159 
163  inline UpdateWorkspaceAliasRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
164 
168  inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
169 
170  private:
171 
172  Aws::String m_alias;
173  bool m_aliasHasBeenSet;
174 
175  Aws::String m_clientToken;
176  bool m_clientTokenHasBeenSet;
177 
178  Aws::String m_workspaceId;
179  bool m_workspaceIdHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace PrometheusService
184 } // namespace Aws
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:109
Aws::PrometheusService::PrometheusServiceRequest
Definition: PrometheusServiceRequest.h:17
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest
Definition: UpdateWorkspaceAliasRequest.h:27
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithClientToken
UpdateWorkspaceAliasRequest & WithClientToken(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:127
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateWorkspaceAliasRequest.h:35
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithClientToken
UpdateWorkspaceAliasRequest & WithClientToken(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:121
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetWorkspaceId
void SetWorkspaceId(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:148
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:103
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetAlias
void SetAlias(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:63
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetWorkspaceId
void SetWorkspaceId(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:143
AWS_PROMETHEUSSERVICE_API
#define AWS_PROMETHEUSSERVICE_API
Definition: PrometheusService_EXPORTS.h:28
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithClientToken
UpdateWorkspaceAliasRequest & WithClientToken(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:115
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::GetAlias
const Aws::String & GetAlias() const
Definition: UpdateWorkspaceAliasRequest.h:43
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: UpdateWorkspaceAliasRequest.h:48
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::UpdateWorkspaceAliasRequest
UpdateWorkspaceAliasRequest()
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:58
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::GetWorkspaceId
const Aws::String & GetWorkspaceId() const
Definition: UpdateWorkspaceAliasRequest.h:133
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithWorkspaceId
UpdateWorkspaceAliasRequest & WithWorkspaceId(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:163
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:97
PrometheusServiceRequest.h
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithAlias
UpdateWorkspaceAliasRequest & WithAlias(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:68
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithAlias
UpdateWorkspaceAliasRequest & WithAlias(Aws::String &&value)
Definition: UpdateWorkspaceAliasRequest.h:73
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithWorkspaceId
UpdateWorkspaceAliasRequest & WithWorkspaceId(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:158
AWSString.h
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WorkspaceIdHasBeenSet
bool WorkspaceIdHasBeenSet() const
Definition: UpdateWorkspaceAliasRequest.h:138
PrometheusService_EXPORTS.h
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateWorkspaceAliasRequest.h:85
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetWorkspaceId
void SetWorkspaceId(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: UpdateWorkspaceAliasRequest.h:53
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithWorkspaceId
UpdateWorkspaceAliasRequest & WithWorkspaceId(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:168
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::WithAlias
UpdateWorkspaceAliasRequest & WithAlias(const char *value)
Definition: UpdateWorkspaceAliasRequest.h:78
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateWorkspaceAliasRequest.h:91
UUID.h
Aws::PrometheusService::Model::UpdateWorkspaceAliasRequest::SerializePayload
Aws::String SerializePayload() const override