/*
* 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
{
///
/// Container for the parameters to the UpdateWorkgroup operation.
/// Updates a workgroup with the specified configuration settings. You can't update multiple
/// parameters in one request. For example, you can update baseCapacity
or
/// port
in a single request, but you can't update both in the same request.
///
public partial class UpdateWorkgroupRequest : AmazonRedshiftServerlessRequest
{
private int? _baseCapacity;
private List _configParameters = new List();
private bool? _enhancedVpcRouting;
private int? _port;
private bool? _publiclyAccessible;
private List _securityGroupIds = new List();
private List _subnetIds = new List();
private string _workgroupName;
///
/// Gets and sets the property BaseCapacity.
///
/// The new base data warehouse capacity 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 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 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 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 SubnetIds.
///
/// An array of VPC subnet IDs to associate with the workgroup.
///
///
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 WorkgroupName.
///
/// The name of the workgroup to update. You can't update the name of a workgroup once
/// it is created.
///
///
[AWSProperty(Required=true, 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;
}
}
}