Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.redshift.model;
 
 
Container for the parameters to the ModifyClusterParameterGroup operation.

Modifies the parameters of a parameter group.

For more information about managing parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide .

 
 public class ModifyClusterParameterGroupRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The name of the parameter group to be modified.
 
     private String parameterGroupName;

    
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

 
The name of the parameter group to be modified.

Returns:
The name of the parameter group to be modified.
 
     public String getParameterGroupName() {
         return ;
     }
    
    
The name of the parameter group to be modified.

Parameters:
parameterGroupName The name of the parameter group to be modified.
 
     public void setParameterGroupName(String parameterGroupName) {
         this. = parameterGroupName;
     }
    
    
The name of the parameter group to be modified.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameterGroupName The name of the parameter group to be modified.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ModifyClusterParameterGroupRequest withParameterGroupName(String parameterGroupName) {
         this. = parameterGroupName;
         return this;
     }

    
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

Returns:
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

 
     public java.util.List<ParametergetParameters() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<Parameter>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

Parameters:
parameters An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

    public void setParameters(java.util.Collection<Parameterparameters) {
        if (parameters == null) {
            this. = null;
            return;
        }
        parametersCopy.addAll(parameters);
        this. = parametersCopy;
    }
    
    
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

NOTE: This method appends the values to the existing list (if any). Use setParameters(java.util.Collection) or withParameters(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameters An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (getParameters() == nullsetParameters(new java.util.ArrayList<Parameter>(parameters.length));
        for (Parameter value : parameters) {
            getParameters().add(value);
        }
        return this;
    }
    
    
An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameters An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.

For each parameter to be modified, you must supply at least the parameter name and parameter value; other name-value pairs of the parameter are optional.

For the workload management (WLM) configuration, you must supply all the name-value pairs in the wlm_json_configuration parameter.

Returns:
A reference to this updated object so that method calls can be chained together.
        if (parameters == null) {
            this. = null;
        } else {
            parametersCopy.addAll(parameters);
            this. = parametersCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getParameterGroupName() != nullsb.append("ParameterGroupName: " + getParameterGroupName() + ",");
        if (getParameters() != nullsb.append("Parameters: " + getParameters() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getParameterGroupName() == null) ? 0 : getParameterGroupName().hashCode()); 
        hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ModifyClusterParameterGroupRequest == falsereturn false;
        
        if (other.getParameterGroupName() == null ^ this.getParameterGroupName() == nullreturn false;
        if (other.getParameterGroupName() != null && other.getParameterGroupName().equals(this.getParameterGroupName()) == falsereturn false
        if (other.getParameters() == null ^ this.getParameters() == nullreturn false;
        if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (ModifyClusterParameterGroupRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X