/* * 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; /** *
* Represents the input of a ModifyCacheParameterGroup
operation.
*
* The name of the cache parameter group to modify. *
*/ private String cacheParameterGroupName; /** ** An array of parameter names and values for the parameter update. You must supply at least one parameter name and * value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the cache parameter group to modify. *
* * @param cacheParameterGroupName * The name of the cache parameter group to modify. */ public void setCacheParameterGroupName(String cacheParameterGroupName) { this.cacheParameterGroupName = cacheParameterGroupName; } /** ** The name of the cache parameter group to modify. *
* * @return The name of the cache parameter group to modify. */ public String getCacheParameterGroupName() { return this.cacheParameterGroupName; } /** ** The name of the cache parameter group to modify. *
* * @param cacheParameterGroupName * The name of the cache parameter group to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCacheParameterGroupRequest withCacheParameterGroupName(String cacheParameterGroupName) { setCacheParameterGroupName(cacheParameterGroupName); return this; } /** ** An array of parameter names and values for the parameter update. You must supply at least one parameter name and * value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. *
* * @return An array of parameter names and values for the parameter update. You must supply at least one parameter * name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per * request. */ public java.util.List* An array of parameter names and values for the parameter update. You must supply at least one parameter name and * value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. *
* * @param parameterNameValues * An array of parameter names and values for the parameter update. You must supply at least one parameter * name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. */ public void setParameterNameValues(java.util.Collection* An array of parameter names and values for the parameter update. You must supply at least one parameter name and * value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setParameterNameValues(java.util.Collection)} or {@link #withParameterNameValues(java.util.Collection)} * if you want to override the existing values. *
* * @param parameterNameValues * An array of parameter names and values for the parameter update. You must supply at least one parameter * name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCacheParameterGroupRequest withParameterNameValues(ParameterNameValue... parameterNameValues) { if (this.parameterNameValues == null) { setParameterNameValues(new com.amazonaws.internal.SdkInternalList* An array of parameter names and values for the parameter update. You must supply at least one parameter name and * value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. *
* * @param parameterNameValues * An array of parameter names and values for the parameter update. You must supply at least one parameter * name and value; subsequent arguments are optional. A maximum of 20 parameters may be modified per request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCacheParameterGroupRequest withParameterNameValues(java.util.Collection