/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the redshift-serverless-2021-04-21.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RedshiftServerless.Model
{
///
/// The collection of computing resources from which an endpoint is created.
///
public partial class Workgroup
{
private int? _baseCapacity;
private List _configParameters = new List();
private DateTime? _creationDate;
private Endpoint _endpoint;
private bool? _enhancedVpcRouting;
private string _namespaceName;
private int? _port;
private bool? _publiclyAccessible;
private List _securityGroupIds = new List();
private WorkgroupStatus _status;
private List _subnetIds = new List();
private string _workgroupArn;
private string _workgroupId;
private string _workgroupName;
///
/// Gets and sets the property BaseCapacity.
///
/// The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
///
///
public int BaseCapacity
{
get { return this._baseCapacity.GetValueOrDefault(); }
set { this._baseCapacity = value; }
}
// Check to see if BaseCapacity property is set
internal bool IsSetBaseCapacity()
{
return this._baseCapacity.HasValue;
}
///
/// Gets and sets the property ConfigParameters.
///
/// An array of parameters to set for advanced control over a database. The options are
/// auto_mv
, datestyle
, enable_case_sensitivity_identifier
,
/// enable_user_activity_logging
, query_group
, , search_path
,
/// and query monitoring metrics that let you define performance boundaries. For more
/// information about query monitoring rules and available metrics, see
/// Query monitoring metrics for Amazon Redshift Serverless.
///
///
public List ConfigParameters
{
get { return this._configParameters; }
set { this._configParameters = value; }
}
// Check to see if ConfigParameters property is set
internal bool IsSetConfigParameters()
{
return this._configParameters != null && this._configParameters.Count > 0;
}
///
/// Gets and sets the property CreationDate.
///
/// The creation date of the workgroup.
///
///
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
///
/// Gets and sets the property Endpoint.
///
/// The endpoint that is created from the workgroup.
///
///
public Endpoint Endpoint
{
get { return this._endpoint; }
set { this._endpoint = value; }
}
// Check to see if Endpoint property is set
internal bool IsSetEndpoint()
{
return this._endpoint != null;
}
///
/// Gets and sets the property 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 bool EnhancedVpcRouting
{
get { return this._enhancedVpcRouting.GetValueOrDefault(); }
set { this._enhancedVpcRouting = value; }
}
// Check to see if EnhancedVpcRouting property is set
internal bool IsSetEnhancedVpcRouting()
{
return this._enhancedVpcRouting.HasValue;
}
///
/// Gets and sets the property NamespaceName.
///
/// The namespace the workgroup is associated with.
///
///
public string NamespaceName
{
get { return this._namespaceName; }
set { this._namespaceName = value; }
}
// Check to see if NamespaceName property is set
internal bool IsSetNamespaceName()
{
return this._namespaceName != null;
}
///
/// Gets and sets the property Port.
///
/// The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455
/// and 8191-8215. The default is 5439.
///
///
public int Port
{
get { return this._port.GetValueOrDefault(); }
set { this._port = value; }
}
// Check to see if Port property is set
internal bool IsSetPort()
{
return this._port.HasValue;
}
///
/// Gets and sets the property PubliclyAccessible.
///
/// A value that specifies whether the workgroup can be accessible from a public network
///
///
public bool PubliclyAccessible
{
get { return this._publiclyAccessible.GetValueOrDefault(); }
set { this._publiclyAccessible = value; }
}
// Check to see if PubliclyAccessible property is set
internal bool IsSetPubliclyAccessible()
{
return this._publiclyAccessible.HasValue;
}
///
/// Gets and sets the property SecurityGroupIds.
///
/// An array of security group IDs to associate with the workgroup.
///
///
public List SecurityGroupIds
{
get { return this._securityGroupIds; }
set { this._securityGroupIds = value; }
}
// Check to see if SecurityGroupIds property is set
internal bool IsSetSecurityGroupIds()
{
return this._securityGroupIds != null && this._securityGroupIds.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// The status of the workgroup.
///
///
public WorkgroupStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property SubnetIds.
///
/// An array of subnet IDs the workgroup is associated with.
///
///
public List SubnetIds
{
get { return this._subnetIds; }
set { this._subnetIds = value; }
}
// Check to see if SubnetIds property is set
internal bool IsSetSubnetIds()
{
return this._subnetIds != null && this._subnetIds.Count > 0;
}
///
/// Gets and sets the property WorkgroupArn.
///
/// The Amazon Resource Name (ARN) that links to the workgroup.
///
///
public string WorkgroupArn
{
get { return this._workgroupArn; }
set { this._workgroupArn = value; }
}
// Check to see if WorkgroupArn property is set
internal bool IsSetWorkgroupArn()
{
return this._workgroupArn != null;
}
///
/// Gets and sets the property WorkgroupId.
///
/// The unique identifier of the workgroup.
///
///
public string WorkgroupId
{
get { return this._workgroupId; }
set { this._workgroupId = value; }
}
// Check to see if WorkgroupId property is set
internal bool IsSetWorkgroupId()
{
return this._workgroupId != null;
}
///
/// Gets and sets the property WorkgroupName.
///
/// The name of the workgroup.
///
///
[AWSProperty(Min=3, Max=64)]
public string WorkgroupName
{
get { return this._workgroupName; }
set { this._workgroupName = value; }
}
// Check to see if WorkgroupName property is set
internal bool IsSetWorkgroupName()
{
return this._workgroupName != null;
}
}
}