/* * 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 ResetCacheParameterGroup
operation.
*
* The name of the cache parameter group to reset. *
*/ private String cacheParameterGroupName; /** *
* If true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their default
* values.
*
* Valid values: true
| false
*
* An array of parameter names to reset to their default values. If ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*
ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*/
public ResetCacheParameterGroupRequest(String cacheParameterGroupName, java.util.List* The name of the cache parameter group to reset. *
* * @param cacheParameterGroupName * The name of the cache parameter group to reset. */ public void setCacheParameterGroupName(String cacheParameterGroupName) { this.cacheParameterGroupName = cacheParameterGroupName; } /** ** The name of the cache parameter group to reset. *
* * @return The name of the cache parameter group to reset. */ public String getCacheParameterGroupName() { return this.cacheParameterGroupName; } /** ** The name of the cache parameter group to reset. *
* * @param cacheParameterGroupName * The name of the cache parameter group to reset. * @return Returns a reference to this object so that method calls can be chained together. */ public ResetCacheParameterGroupRequest withCacheParameterGroupName(String cacheParameterGroupName) { setCacheParameterGroupName(cacheParameterGroupName); return this; } /** *
* If true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their default
* values.
*
* Valid values: true
| false
*
true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their
* default values.
*
* Valid values: true
| false
*/
public void setResetAllParameters(Boolean resetAllParameters) {
this.resetAllParameters = resetAllParameters;
}
/**
*
* If true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their default
* values.
*
* Valid values: true
| false
*
true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their
* default values.
*
* Valid values: true
| false
*/
public Boolean getResetAllParameters() {
return this.resetAllParameters;
}
/**
*
* If true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their default
* values.
*
* Valid values: true
| false
*
true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their
* default values.
*
* Valid values: true
| false
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResetCacheParameterGroupRequest withResetAllParameters(Boolean resetAllParameters) {
setResetAllParameters(resetAllParameters);
return this;
}
/**
*
* If true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their default
* values.
*
* Valid values: true
| false
*
true
, all parameters in the cache parameter group are reset to their default values. If
* false
, only the parameters listed by ParameterNameValues
are reset to their
* default values.
*
* Valid values: true
| false
*/
public Boolean isResetAllParameters() {
return this.resetAllParameters;
}
/**
*
* An array of parameter names to reset to their default values. If ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*
ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*/
public java.util.List
* An array of parameter names to reset to their default values. If ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*
ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*/
public void setParameterNameValues(java.util.Collection
* An array of parameter names to reset to their default values. If ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*
* 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 to reset to their default values. IfResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResetCacheParameterGroupRequest withParameterNameValues(ParameterNameValue... parameterNameValues) {
if (this.parameterNameValues == null) {
setParameterNameValues(new com.amazonaws.internal.SdkInternalList
* An array of parameter names to reset to their default values. If ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
*
ResetAllParameters
is
* true
, do not use ParameterNameValues
. If ResetAllParameters
is
* false
, you must specify the name of at least one parameter to reset.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResetCacheParameterGroupRequest withParameterNameValues(java.util.Collection