#[non_exhaustive]pub struct CreateWorkgroupInputBuilder { /* private fields */ }Expand description
A builder for CreateWorkgroupInput.
Implementations§
Source§impl CreateWorkgroupInputBuilder
impl CreateWorkgroupInputBuilder
Sourcepub fn workgroup_name(self, input: impl Into<String>) -> Self
pub fn workgroup_name(self, input: impl Into<String>) -> Self
The name of the created workgroup.
This field is required.Sourcepub fn set_workgroup_name(self, input: Option<String>) -> Self
pub fn set_workgroup_name(self, input: Option<String>) -> Self
The name of the created workgroup.
Sourcepub fn get_workgroup_name(&self) -> &Option<String>
pub fn get_workgroup_name(&self) -> &Option<String>
The name of the created workgroup.
Sourcepub fn namespace_name(self, input: impl Into<String>) -> Self
pub fn namespace_name(self, input: impl Into<String>) -> Self
The name of the namespace to associate with the workgroup.
This field is required.Sourcepub fn set_namespace_name(self, input: Option<String>) -> Self
pub fn set_namespace_name(self, input: Option<String>) -> Self
The name of the namespace to associate with the workgroup.
Sourcepub fn get_namespace_name(&self) -> &Option<String>
pub fn get_namespace_name(&self) -> &Option<String>
The name of the namespace to associate with the workgroup.
Sourcepub fn base_capacity(self, input: i32) -> Self
pub fn base_capacity(self, input: i32) -> Self
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
Sourcepub fn set_base_capacity(self, input: Option<i32>) -> Self
pub fn set_base_capacity(self, input: Option<i32>) -> Self
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
Sourcepub fn get_base_capacity(&self) -> &Option<i32>
pub fn get_base_capacity(&self) -> &Option<i32>
The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).
Sourcepub fn enhanced_vpc_routing(self, input: bool) -> Self
pub fn enhanced_vpc_routing(self, input: bool) -> Self
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 instead of over the internet.
Sourcepub fn set_enhanced_vpc_routing(self, input: Option<bool>) -> Self
pub fn set_enhanced_vpc_routing(self, input: Option<bool>) -> Self
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 instead of over the internet.
Sourcepub fn get_enhanced_vpc_routing(&self) -> &Option<bool>
pub fn get_enhanced_vpc_routing(&self) -> &Option<bool>
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 instead of over the internet.
Sourcepub fn config_parameters(self, input: ConfigParameter) -> Self
pub fn config_parameters(self, input: ConfigParameter) -> Self
Appends an item to config_parameters.
To override the contents of this collection use set_config_parameters.
An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
Sourcepub fn set_config_parameters(self, input: Option<Vec<ConfigParameter>>) -> Self
pub fn set_config_parameters(self, input: Option<Vec<ConfigParameter>>) -> Self
An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
Sourcepub fn get_config_parameters(&self) -> &Option<Vec<ConfigParameter>>
pub fn get_config_parameters(&self) -> &Option<Vec<ConfigParameter>>
An array of parameters to set for advanced control over a database. The options are auto_mv, datestyle, enable_case_sensitive_identifier, enable_user_activity_logging, query_group, search_path, require_ssl, use_fips_ssl, and either wlm_json_configuration or query monitoring metrics that let you define performance boundaries. You can either specify individual query monitoring metrics (such as max_scan_row_count, max_query_execution_time) or use wlm_json_configuration to define query queues with rules, but not both. If you're using wlm_json_configuration, the maximum size of parameterValue is 8000 characters. For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
Sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids.
To override the contents of this collection use set_security_group_ids.
An array of security group IDs to associate with the workgroup.
Sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
An array of security group IDs to associate with the workgroup.
Sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
An array of security group IDs to associate with the workgroup.
Sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids.
To override the contents of this collection use set_subnet_ids.
An array of VPC subnet IDs to associate with the workgroup.
Sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
An array of VPC subnet IDs to associate with the workgroup.
Sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
An array of VPC subnet IDs to associate with the workgroup.
Sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
A value that specifies whether the workgroup can be accessed from a public network.
Sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
A value that specifies whether the workgroup can be accessed from a public network.
Sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
A value that specifies whether the workgroup can be accessed from a public network.
Appends an item to tags.
To override the contents of this collection use set_tags.
A array of tag instances.
A array of tag instances.
A array of tag instances.
Sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
Sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
Sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.
Sourcepub fn max_capacity(self, input: i32) -> Self
pub fn max_capacity(self, input: i32) -> Self
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
Sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
Sourcepub fn get_max_capacity(&self) -> &Option<i32>
pub fn get_max_capacity(&self) -> &Option<i32>
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
Sourcepub fn price_performance_target(self, input: PerformanceTarget) -> Self
pub fn price_performance_target(self, input: PerformanceTarget) -> Self
An object that represents the price performance target settings for the workgroup.
Sourcepub fn set_price_performance_target(
self,
input: Option<PerformanceTarget>,
) -> Self
pub fn set_price_performance_target( self, input: Option<PerformanceTarget>, ) -> Self
An object that represents the price performance target settings for the workgroup.
Sourcepub fn get_price_performance_target(&self) -> &Option<PerformanceTarget>
pub fn get_price_performance_target(&self) -> &Option<PerformanceTarget>
An object that represents the price performance target settings for the workgroup.
Sourcepub fn ip_address_type(self, input: impl Into<String>) -> Self
pub fn ip_address_type(self, input: impl Into<String>) -> Self
The IP address type that the workgroup supports. Possible values are ipv4 and dualstack.
Sourcepub fn set_ip_address_type(self, input: Option<String>) -> Self
pub fn set_ip_address_type(self, input: Option<String>) -> Self
The IP address type that the workgroup supports. Possible values are ipv4 and dualstack.
Sourcepub fn get_ip_address_type(&self) -> &Option<String>
pub fn get_ip_address_type(&self) -> &Option<String>
The IP address type that the workgroup supports. Possible values are ipv4 and dualstack.
Sourcepub fn track_name(self, input: impl Into<String>) -> Self
pub fn track_name(self, input: impl Into<String>) -> Self
An optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the current track.
Sourcepub fn set_track_name(self, input: Option<String>) -> Self
pub fn set_track_name(self, input: Option<String>) -> Self
An optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the current track.
Sourcepub fn get_track_name(&self) -> &Option<String>
pub fn get_track_name(&self) -> &Option<String>
An optional parameter for the name of the track for the workgroup. If you don't provide a track name, the workgroup is assigned to the current track.
Sourcepub fn extra_compute_for_automatic_optimization(self, input: bool) -> Self
pub fn extra_compute_for_automatic_optimization(self, input: bool) -> Self
If true, allocates additional compute resources for running automatic optimization operations.
Default: false
Sourcepub fn set_extra_compute_for_automatic_optimization(
self,
input: Option<bool>,
) -> Self
pub fn set_extra_compute_for_automatic_optimization( self, input: Option<bool>, ) -> Self
If true, allocates additional compute resources for running automatic optimization operations.
Default: false
Sourcepub fn get_extra_compute_for_automatic_optimization(&self) -> &Option<bool>
pub fn get_extra_compute_for_automatic_optimization(&self) -> &Option<bool>
If true, allocates additional compute resources for running automatic optimization operations.
Default: false
Sourcepub fn build(self) -> Result<CreateWorkgroupInput, BuildError>
pub fn build(self) -> Result<CreateWorkgroupInput, BuildError>
Consumes the builder and constructs a CreateWorkgroupInput.
Source§impl CreateWorkgroupInputBuilder
impl CreateWorkgroupInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateWorkgroupOutput, SdkError<CreateWorkgroupError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateWorkgroupOutput, SdkError<CreateWorkgroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for CreateWorkgroupInputBuilder
impl Clone for CreateWorkgroupInputBuilder
Source§fn clone(&self) -> CreateWorkgroupInputBuilder
fn clone(&self) -> CreateWorkgroupInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateWorkgroupInputBuilder
impl Debug for CreateWorkgroupInputBuilder
Source§impl Default for CreateWorkgroupInputBuilder
impl Default for CreateWorkgroupInputBuilder
Source§fn default() -> CreateWorkgroupInputBuilder
fn default() -> CreateWorkgroupInputBuilder
impl StructuralPartialEq for CreateWorkgroupInputBuilder
Auto Trait Implementations§
impl Freeze for CreateWorkgroupInputBuilder
impl RefUnwindSafe for CreateWorkgroupInputBuilder
impl Send for CreateWorkgroupInputBuilder
impl Sync for CreateWorkgroupInputBuilder
impl Unpin for CreateWorkgroupInputBuilder
impl UnsafeUnpin for CreateWorkgroupInputBuilder
impl UnwindSafe for CreateWorkgroupInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);