/* * 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.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateUserGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the user group. *
*/ private String userGroupId; /** ** The current supported value is Redis. *
*/ private String engine; /** ** The list of user IDs that belong to the user group. *
*/ private com.amazonaws.internal.SdkInternalList* A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag * value, although null is accepted. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the user group. *
* * @param userGroupId * The ID of the user group. */ public void setUserGroupId(String userGroupId) { this.userGroupId = userGroupId; } /** ** The ID of the user group. *
* * @return The ID of the user group. */ public String getUserGroupId() { return this.userGroupId; } /** ** The ID of the user group. *
* * @param userGroupId * The ID of the user group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withUserGroupId(String userGroupId) { setUserGroupId(userGroupId); return this; } /** ** The current supported value is Redis. *
* * @param engine * The current supported value is Redis. */ public void setEngine(String engine) { this.engine = engine; } /** ** The current supported value is Redis. *
* * @return The current supported value is Redis. */ public String getEngine() { return this.engine; } /** ** The current supported value is Redis. *
* * @param engine * The current supported value is Redis. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withEngine(String engine) { setEngine(engine); return this; } /** ** The list of user IDs that belong to the user group. *
* * @return The list of user IDs that belong to the user group. */ public java.util.List* The list of user IDs that belong to the user group. *
* * @param userIds * The list of user IDs that belong to the user group. */ public void setUserIds(java.util.Collection* The list of user IDs that belong to the user group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserIds(java.util.Collection)} or {@link #withUserIds(java.util.Collection)} if you want to override * the existing values. *
* * @param userIds * The list of user IDs that belong to the user group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withUserIds(String... userIds) { if (this.userIds == null) { setUserIds(new com.amazonaws.internal.SdkInternalList* The list of user IDs that belong to the user group. *
* * @param userIds * The list of user IDs that belong to the user group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withUserIds(java.util.Collection* A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag * value, although null is accepted. *
* * @return A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by * a tag value, although null is accepted. */ public java.util.List* A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag * value, although null is accepted. *
* * @param tags * A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a * tag value, although null is accepted. */ public void setTags(java.util.Collection* A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag * value, although null is accepted. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a * tag value, although null is accepted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag * value, although null is accepted. *
* * @param tags * A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a * tag value, although null is accepted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserGroupRequest withTags(java.util.Collection