/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.prometheus.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input of a CreateWorkspace operation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be * unique. *
*/ private String alias; /** ** Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. *
*/ private String clientToken; /** ** Optional, user-provided tags for this workspace. *
*/ private java.util.Map* An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be * unique. *
* * @param alias * An optional user-assigned alias for this workspace. This alias is for user reference and does not need to * be unique. */ public void setAlias(String alias) { this.alias = alias; } /** ** An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be * unique. *
* * @return An optional user-assigned alias for this workspace. This alias is for user reference and does not need to * be unique. */ public String getAlias() { return this.alias; } /** ** An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be * unique. *
* * @param alias * An optional user-assigned alias for this workspace. This alias is for user reference and does not need to * be unique. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkspaceRequest withAlias(String alias) { setAlias(alias); return this; } /** ** Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. *
* * @param clientToken * Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. *
* * @return Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. */ public String getClientToken() { return this.clientToken; } /** ** Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. *
* * @param clientToken * Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkspaceRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** Optional, user-provided tags for this workspace. *
* * @return Optional, user-provided tags for this workspace. */ public java.util.Map* Optional, user-provided tags for this workspace. *
* * @param tags * Optional, user-provided tags for this workspace. */ public void setTags(java.util.Map* Optional, user-provided tags for this workspace. *
* * @param tags * Optional, user-provided tags for this workspace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorkspaceRequest withTags(java.util.Map