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

com.amazonaws.services.redshiftserverless.model.Workgroup 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The collection of computing resources from which an endpoint is created. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Workgroup implements Serializable, Cloneable, StructuredPojo { /** *

* The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). *

*/ private Integer baseCapacity; /** *

* An array of parameters to set for finer 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 creation date of the workgroup. *

*/ private java.util.Date creationDate; /** *

* The endpoint that is created from the workgroup. *

*/ private Endpoint endpoint; /** *

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

*/ private Boolean enhancedVpcRouting; /** *

* The namespace the workgroup is associated with. *

*/ private String namespaceName; /** *

* 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; /** *

* The status of the workgroup. *

*/ private String status; /** *

* An array of subnet IDs the workgroup is associated with. *

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

* The Amazon Resource Name (ARN) that links to the workgroup. *

*/ private String workgroupArn; /** *

* The unique identifier of the workgroup. *

*/ private String workgroupId; /** *

* The name of the workgroup. *

*/ private String workgroupName; /** *

* The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). *

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

* The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). *

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

* The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). *

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

* An array of parameters to set for finer 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 finer 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 finer 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 finer 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 finer 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 finer 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 Workgroup 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 finer 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 finer 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 Workgroup withConfigParameters(java.util.Collection configParameters) { setConfigParameters(configParameters); return this; } /** *

* The creation date of the workgroup. *

* * @param creationDate * The creation date of the workgroup. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The creation date of the workgroup. *

* * @return The creation date of the workgroup. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The creation date of the workgroup. *

* * @param creationDate * The creation date of the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* The endpoint that is created from the workgroup. *

* * @param endpoint * The endpoint that is created from the workgroup. */ public void setEndpoint(Endpoint endpoint) { this.endpoint = endpoint; } /** *

* The endpoint that is created from the workgroup. *

* * @return The endpoint that is created from the workgroup. */ public Endpoint getEndpoint() { return this.endpoint; } /** *

* The endpoint that is created from the workgroup. *

* * @param endpoint * The endpoint that is created from the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup withEndpoint(Endpoint endpoint) { setEndpoint(endpoint); return this; } /** *

* The value that specifies whether to enable 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 enable 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 enable enhanced virtual private cloud (VPC) routing, which forces Amazon * Redshift Serverless to route traffic through your VPC. *

* * @return The value that specifies whether to enable 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 enable 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 enable 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 Workgroup withEnhancedVpcRouting(Boolean enhancedVpcRouting) { setEnhancedVpcRouting(enhancedVpcRouting); return this; } /** *

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

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

* The namespace the workgroup is associated with. *

* * @param namespaceName * The namespace the workgroup is associated with. */ public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } /** *

* The namespace the workgroup is associated with. *

* * @return The namespace the workgroup is associated with. */ public String getNamespaceName() { return this.namespaceName; } /** *

* The namespace the workgroup is associated with. *

* * @param namespaceName * The namespace the workgroup is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup withNamespaceName(String namespaceName) { setNamespaceName(namespaceName); return this; } /** *

* 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 Workgroup 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 Workgroup 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 Workgroup withSecurityGroupIds(java.util.Collection securityGroupIds) { setSecurityGroupIds(securityGroupIds); return this; } /** *

* The status of the workgroup. *

* * @param status * The status of the workgroup. * @see WorkgroupStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the workgroup. *

* * @return The status of the workgroup. * @see WorkgroupStatus */ public String getStatus() { return this.status; } /** *

* The status of the workgroup. *

* * @param status * The status of the workgroup. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkgroupStatus */ public Workgroup withStatus(String status) { setStatus(status); return this; } /** *

* The status of the workgroup. *

* * @param status * The status of the workgroup. * @return Returns a reference to this object so that method calls can be chained together. * @see WorkgroupStatus */ public Workgroup withStatus(WorkgroupStatus status) { this.status = status.toString(); return this; } /** *

* An array of subnet IDs the workgroup is associated with. *

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

* An array of subnet IDs the workgroup is associated with. *

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

* An array of subnet IDs the workgroup is associated with. *

*

* 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 subnet IDs the workgroup is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup 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 subnet IDs the workgroup is associated with. *

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

* The Amazon Resource Name (ARN) that links to the workgroup. *

* * @param workgroupArn * The Amazon Resource Name (ARN) that links to the workgroup. */ public void setWorkgroupArn(String workgroupArn) { this.workgroupArn = workgroupArn; } /** *

* The Amazon Resource Name (ARN) that links to the workgroup. *

* * @return The Amazon Resource Name (ARN) that links to the workgroup. */ public String getWorkgroupArn() { return this.workgroupArn; } /** *

* The Amazon Resource Name (ARN) that links to the workgroup. *

* * @param workgroupArn * The Amazon Resource Name (ARN) that links to the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup withWorkgroupArn(String workgroupArn) { setWorkgroupArn(workgroupArn); return this; } /** *

* The unique identifier of the workgroup. *

* * @param workgroupId * The unique identifier of the workgroup. */ public void setWorkgroupId(String workgroupId) { this.workgroupId = workgroupId; } /** *

* The unique identifier of the workgroup. *

* * @return The unique identifier of the workgroup. */ public String getWorkgroupId() { return this.workgroupId; } /** *

* The unique identifier of the workgroup. *

* * @param workgroupId * The unique identifier of the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup withWorkgroupId(String workgroupId) { setWorkgroupId(workgroupId); return this; } /** *

* The name of the workgroup. *

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

* The name of the workgroup. *

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

* The name of the workgroup. *

* * @param workgroupName * The name of the workgroup. * @return Returns a reference to this object so that method calls can be chained together. */ public Workgroup 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 (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getEnhancedVpcRouting() != null) sb.append("EnhancedVpcRouting: ").append(getEnhancedVpcRouting()).append(","); if (getNamespaceName() != null) sb.append("NamespaceName: ").append(getNamespaceName()).append(","); if (getPubliclyAccessible() != null) sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()).append(","); if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getWorkgroupArn() != null) sb.append("WorkgroupArn: ").append(getWorkgroupArn()).append(","); if (getWorkgroupId() != null) sb.append("WorkgroupId: ").append(getWorkgroupId()).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 Workgroup == false) return false; Workgroup other = (Workgroup) 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.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == 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.getNamespaceName() == null ^ this.getNamespaceName() == null) return false; if (other.getNamespaceName() != null && other.getNamespaceName().equals(this.getNamespaceName()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getWorkgroupArn() == null ^ this.getWorkgroupArn() == null) return false; if (other.getWorkgroupArn() != null && other.getWorkgroupArn().equals(this.getWorkgroupArn()) == false) return false; if (other.getWorkgroupId() == null ^ this.getWorkgroupId() == null) return false; if (other.getWorkgroupId() != null && other.getWorkgroupId().equals(this.getWorkgroupId()) == 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 + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getEnhancedVpcRouting() == null) ? 0 : getEnhancedVpcRouting().hashCode()); hashCode = prime * hashCode + ((getNamespaceName() == null) ? 0 : getNamespaceName().hashCode()); hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getWorkgroupArn() == null) ? 0 : getWorkgroupArn().hashCode()); hashCode = prime * hashCode + ((getWorkgroupId() == null) ? 0 : getWorkgroupId().hashCode()); hashCode = prime * hashCode + ((getWorkgroupName() == null) ? 0 : getWorkgroupName().hashCode()); return hashCode; } @Override public Workgroup clone() { try { return (Workgroup) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.redshiftserverless.model.transform.WorkgroupMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy