All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.redshiftserverless.model.UpdateWorkgroupRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Redshift Serverless module holds the client classes that are used for communicating with Redshift Serverless Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.redshiftserverless.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 UpdateWorkgroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The new base data warehouse capacity in Redshift Processing Units (RPUs). *

*/ private Integer baseCapacity; /** *

* An array of parameters to set for advanced control over a database. The options are datestyle, * enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. *

*/ private java.util.List configParameters; /** *

* The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

*/ private Boolean enhancedVpcRouting; /** *

* A value that specifies whether the workgroup can be accessible from a public network. *

*/ private Boolean publiclyAccessible; /** *

* An array of security group IDs to associate with the workgroup. *

*/ private java.util.List securityGroupIds; /** *

* An array of VPC subnet IDs to associate with the workgroup. *

*/ private java.util.List subnetIds; /** *

* The name of the workgroup to update. *

*/ private String workgroupName; /** *

* The new base data warehouse capacity in Redshift Processing Units (RPUs). *

* * @param baseCapacity * The new base data warehouse capacity in Redshift Processing Units (RPUs). */ public void setBaseCapacity(Integer baseCapacity) { this.baseCapacity = baseCapacity; } /** *

* The new base data warehouse capacity in Redshift Processing Units (RPUs). *

* * @return The new base data warehouse capacity in Redshift Processing Units (RPUs). */ public Integer getBaseCapacity() { return this.baseCapacity; } /** *

* The new base data warehouse capacity in Redshift Processing Units (RPUs). *

* * @param baseCapacity * The new base data warehouse capacity in Redshift Processing Units (RPUs). * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withBaseCapacity(Integer baseCapacity) { setBaseCapacity(baseCapacity); return this; } /** *

* An array of parameters to set for advanced control over a database. The options are datestyle, * enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. *

* * @return An array of parameters to set for advanced control over a database. The options are * datestyle, enable_user_activity_logging, query_group, * search_path, and max_query_execution_time. */ public java.util.List getConfigParameters() { return configParameters; } /** *

* An array of parameters to set for advanced control over a database. The options are datestyle, * enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. *

* * @param configParameters * An array of parameters to set for advanced control over a database. The options are datestyle * , enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. */ public void setConfigParameters(java.util.Collection configParameters) { if (configParameters == null) { this.configParameters = null; return; } this.configParameters = new java.util.ArrayList(configParameters); } /** *

* An array of parameters to set for advanced control over a database. The options are datestyle, * enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setConfigParameters(java.util.Collection)} or {@link #withConfigParameters(java.util.Collection)} if you * want to override the existing values. *

* * @param configParameters * An array of parameters to set for advanced control over a database. The options are datestyle * , enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withConfigParameters(ConfigParameter... configParameters) { if (this.configParameters == null) { setConfigParameters(new java.util.ArrayList(configParameters.length)); } for (ConfigParameter ele : configParameters) { this.configParameters.add(ele); } return this; } /** *

* An array of parameters to set for advanced control over a database. The options are datestyle, * enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. *

* * @param configParameters * An array of parameters to set for advanced control over a database. The options are datestyle * , enable_user_activity_logging, query_group, search_path, and * max_query_execution_time. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withConfigParameters(java.util.Collection configParameters) { setConfigParameters(configParameters); return this; } /** *

* The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

* * @param enhancedVpcRouting * The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces * Amazon Redshift Serverless to route traffic through your VPC. */ public void setEnhancedVpcRouting(Boolean enhancedVpcRouting) { this.enhancedVpcRouting = enhancedVpcRouting; } /** *

* The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

* * @return The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces * Amazon Redshift Serverless to route traffic through your VPC. */ public Boolean getEnhancedVpcRouting() { return this.enhancedVpcRouting; } /** *

* The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

* * @param enhancedVpcRouting * The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces * Amazon Redshift Serverless to route traffic through your VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withEnhancedVpcRouting(Boolean enhancedVpcRouting) { setEnhancedVpcRouting(enhancedVpcRouting); return this; } /** *

* The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

* * @return The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces * Amazon Redshift Serverless to route traffic through your VPC. */ public Boolean isEnhancedVpcRouting() { return this.enhancedVpcRouting; } /** *

* A value that specifies whether the workgroup can be accessible from a public network. *

* * @param publiclyAccessible * A value that specifies whether the workgroup can be accessible from a public network. */ public void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } /** *

* A value that specifies whether the workgroup can be accessible from a public network. *

* * @return A value that specifies whether the workgroup can be accessible from a public network. */ public Boolean getPubliclyAccessible() { return this.publiclyAccessible; } /** *

* A value that specifies whether the workgroup can be accessible from a public network. *

* * @param publiclyAccessible * A value that specifies whether the workgroup can be accessible from a public network. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withPubliclyAccessible(Boolean publiclyAccessible) { setPubliclyAccessible(publiclyAccessible); return this; } /** *

* A value that specifies whether the workgroup can be accessible from a public network. *

* * @return A value that specifies whether the workgroup can be accessible from a public network. */ public Boolean isPubliclyAccessible() { return this.publiclyAccessible; } /** *

* An array of security group IDs to associate with the workgroup. *

* * @return An array of security group IDs to associate with the workgroup. */ public java.util.List getSecurityGroupIds() { return securityGroupIds; } /** *

* An array of security group IDs to associate with the workgroup. *

* * @param securityGroupIds * An array of security group IDs to associate with the workgroup. */ public void setSecurityGroupIds(java.util.Collection securityGroupIds) { if (securityGroupIds == null) { this.securityGroupIds = null; return; } this.securityGroupIds = new java.util.ArrayList(securityGroupIds); } /** *

* An array of security group IDs to associate with the workgroup. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *

* * @param securityGroupIds * An array of security group IDs to associate with the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length)); } for (String ele : securityGroupIds) { this.securityGroupIds.add(ele); } return this; } /** *

* An array of security group IDs to associate with the workgroup. *

* * @param securityGroupIds * An array of security group IDs to associate with the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withSecurityGroupIds(java.util.Collection securityGroupIds) { setSecurityGroupIds(securityGroupIds); return this; } /** *

* An array of VPC subnet IDs to associate with the workgroup. *

* * @return An array of VPC subnet IDs to associate with the workgroup. */ public java.util.List getSubnetIds() { return subnetIds; } /** *

* An array of VPC subnet IDs to associate with the workgroup. *

* * @param subnetIds * An array of VPC subnet IDs to associate with the workgroup. */ public void setSubnetIds(java.util.Collection subnetIds) { if (subnetIds == null) { this.subnetIds = null; return; } this.subnetIds = new java.util.ArrayList(subnetIds); } /** *

* An array of VPC subnet IDs to associate with the workgroup. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *

* * @param subnetIds * An array of VPC subnet IDs to associate with the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList(subnetIds.length)); } for (String ele : subnetIds) { this.subnetIds.add(ele); } return this; } /** *

* An array of VPC subnet IDs to associate with the workgroup. *

* * @param subnetIds * An array of VPC subnet IDs to associate with the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withSubnetIds(java.util.Collection subnetIds) { setSubnetIds(subnetIds); return this; } /** *

* The name of the workgroup to update. *

* * @param workgroupName * The name of the workgroup to update. */ public void setWorkgroupName(String workgroupName) { this.workgroupName = workgroupName; } /** *

* The name of the workgroup to update. *

* * @return The name of the workgroup to update. */ public String getWorkgroupName() { return this.workgroupName; } /** *

* The name of the workgroup to update. *

* * @param workgroupName * The name of the workgroup to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateWorkgroupRequest withWorkgroupName(String workgroupName) { setWorkgroupName(workgroupName); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBaseCapacity() != null) sb.append("BaseCapacity: ").append(getBaseCapacity()).append(","); if (getConfigParameters() != null) sb.append("ConfigParameters: ").append(getConfigParameters()).append(","); if (getEnhancedVpcRouting() != null) sb.append("EnhancedVpcRouting: ").append(getEnhancedVpcRouting()).append(","); if (getPubliclyAccessible() != null) sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()).append(","); if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getWorkgroupName() != null) sb.append("WorkgroupName: ").append(getWorkgroupName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateWorkgroupRequest == false) return false; UpdateWorkgroupRequest other = (UpdateWorkgroupRequest) obj; if (other.getBaseCapacity() == null ^ this.getBaseCapacity() == null) return false; if (other.getBaseCapacity() != null && other.getBaseCapacity().equals(this.getBaseCapacity()) == false) return false; if (other.getConfigParameters() == null ^ this.getConfigParameters() == null) return false; if (other.getConfigParameters() != null && other.getConfigParameters().equals(this.getConfigParameters()) == false) return false; if (other.getEnhancedVpcRouting() == null ^ this.getEnhancedVpcRouting() == null) return false; if (other.getEnhancedVpcRouting() != null && other.getEnhancedVpcRouting().equals(this.getEnhancedVpcRouting()) == false) return false; if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null) return false; if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals(this.getPubliclyAccessible()) == false) return false; if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null) return false; if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getWorkgroupName() == null ^ this.getWorkgroupName() == null) return false; if (other.getWorkgroupName() != null && other.getWorkgroupName().equals(this.getWorkgroupName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBaseCapacity() == null) ? 0 : getBaseCapacity().hashCode()); hashCode = prime * hashCode + ((getConfigParameters() == null) ? 0 : getConfigParameters().hashCode()); hashCode = prime * hashCode + ((getEnhancedVpcRouting() == null) ? 0 : getEnhancedVpcRouting().hashCode()); hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getWorkgroupName() == null) ? 0 : getWorkgroupName().hashCode()); return hashCode; } @Override public UpdateWorkgroupRequest clone() { return (UpdateWorkgroupRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy