1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/amp/PrometheusService_EXPORTS.h> 8 #include <aws/amp/PrometheusServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 #include <aws/core/utils/UUID.h> 12 13 namespace Aws 14 { 15 namespace PrometheusService 16 { 17 namespace Model 18 { 19 20 /** 21 * <p>Represents the input of an UpdateWorkspaceAlias operation.</p><p><h3>See 22 * Also:</h3> <a 23 * href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAliasRequest">AWS 24 * API Reference</a></p> 25 */ 26 class AWS_PROMETHEUSSERVICE_API UpdateWorkspaceAliasRequest : public PrometheusServiceRequest 27 { 28 public: 29 UpdateWorkspaceAliasRequest(); 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. GetServiceRequestName()35 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspaceAlias"; } 36 37 Aws::String SerializePayload() const override; 38 39 40 /** 41 * <p>The new alias of the workspace.</p> 42 */ GetAlias()43 inline const Aws::String& GetAlias() const{ return m_alias; } 44 45 /** 46 * <p>The new alias of the workspace.</p> 47 */ AliasHasBeenSet()48 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } 49 50 /** 51 * <p>The new alias of the workspace.</p> 52 */ SetAlias(const Aws::String & value)53 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } 54 55 /** 56 * <p>The new alias of the workspace.</p> 57 */ SetAlias(Aws::String && value)58 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } 59 60 /** 61 * <p>The new alias of the workspace.</p> 62 */ SetAlias(const char * value)63 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } 64 65 /** 66 * <p>The new alias of the workspace.</p> 67 */ WithAlias(const Aws::String & value)68 inline UpdateWorkspaceAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} 69 70 /** 71 * <p>The new alias of the workspace.</p> 72 */ WithAlias(Aws::String && value)73 inline UpdateWorkspaceAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} 74 75 /** 76 * <p>The new alias of the workspace.</p> 77 */ WithAlias(const char * value)78 inline UpdateWorkspaceAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;} 79 80 81 /** 82 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 83 * idempotency of the request.</p> 84 */ GetClientToken()85 inline const Aws::String& GetClientToken() const{ return m_clientToken; } 86 87 /** 88 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 89 * idempotency of the request.</p> 90 */ ClientTokenHasBeenSet()91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } 92 93 /** 94 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 95 * idempotency of the request.</p> 96 */ SetClientToken(const Aws::String & value)97 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } 98 99 /** 100 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 101 * idempotency of the request.</p> 102 */ SetClientToken(Aws::String && value)103 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } 104 105 /** 106 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 107 * idempotency of the request.</p> 108 */ SetClientToken(const char * value)109 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } 110 111 /** 112 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 113 * idempotency of the request.</p> 114 */ WithClientToken(const Aws::String & value)115 inline UpdateWorkspaceAliasRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} 116 117 /** 118 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 119 * idempotency of the request.</p> 120 */ WithClientToken(Aws::String && value)121 inline UpdateWorkspaceAliasRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} 122 123 /** 124 * <p>Optional, unique, case-sensitive, user-provided identifier to ensure the 125 * idempotency of the request.</p> 126 */ WithClientToken(const char * value)127 inline UpdateWorkspaceAliasRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} 128 129 130 /** 131 * <p>The ID of the workspace being updated.</p> 132 */ GetWorkspaceId()133 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } 134 135 /** 136 * <p>The ID of the workspace being updated.</p> 137 */ WorkspaceIdHasBeenSet()138 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } 139 140 /** 141 * <p>The ID of the workspace being updated.</p> 142 */ SetWorkspaceId(const Aws::String & value)143 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } 144 145 /** 146 * <p>The ID of the workspace being updated.</p> 147 */ SetWorkspaceId(Aws::String && value)148 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } 149 150 /** 151 * <p>The ID of the workspace being updated.</p> 152 */ SetWorkspaceId(const char * value)153 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } 154 155 /** 156 * <p>The ID of the workspace being updated.</p> 157 */ WithWorkspaceId(const Aws::String & value)158 inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} 159 160 /** 161 * <p>The ID of the workspace being updated.</p> 162 */ WithWorkspaceId(Aws::String && value)163 inline UpdateWorkspaceAliasRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} 164 165 /** 166 * <p>The ID of the workspace being updated.</p> 167 */ WithWorkspaceId(const char * value)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 185