Struct aws_sdk_ec2::operation::run_scheduled_instances::builders::RunScheduledInstancesInputBuilder
source · #[non_exhaustive]pub struct RunScheduledInstancesInputBuilder { /* private fields */ }Expand description
A builder for RunScheduledInstancesInput.
Implementations§
source§impl RunScheduledInstancesInputBuilder
impl RunScheduledInstancesInputBuilder
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of instances.
Default: 1
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of instances.
Default: 1
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
The number of instances.
Default: 1
sourcepub fn launch_specification(
self,
input: ScheduledInstancesLaunchSpecification
) -> Self
pub fn launch_specification( self, input: ScheduledInstancesLaunchSpecification ) -> Self
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
This field is required.sourcepub fn set_launch_specification(
self,
input: Option<ScheduledInstancesLaunchSpecification>
) -> Self
pub fn set_launch_specification( self, input: Option<ScheduledInstancesLaunchSpecification> ) -> Self
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
sourcepub fn get_launch_specification(
&self
) -> &Option<ScheduledInstancesLaunchSpecification>
pub fn get_launch_specification( &self ) -> &Option<ScheduledInstancesLaunchSpecification>
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
sourcepub fn scheduled_instance_id(self, input: impl Into<String>) -> Self
pub fn scheduled_instance_id(self, input: impl Into<String>) -> Self
The Scheduled Instance ID.
This field is required.sourcepub fn set_scheduled_instance_id(self, input: Option<String>) -> Self
pub fn set_scheduled_instance_id(self, input: Option<String>) -> Self
The Scheduled Instance ID.
sourcepub fn get_scheduled_instance_id(&self) -> &Option<String>
pub fn get_scheduled_instance_id(&self) -> &Option<String>
The Scheduled Instance ID.
sourcepub fn build(self) -> Result<RunScheduledInstancesInput, BuildError>
pub fn build(self) -> Result<RunScheduledInstancesInput, BuildError>
Consumes the builder and constructs a RunScheduledInstancesInput.
source§impl RunScheduledInstancesInputBuilder
impl RunScheduledInstancesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RunScheduledInstancesOutput, SdkError<RunScheduledInstancesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RunScheduledInstancesOutput, SdkError<RunScheduledInstancesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RunScheduledInstancesInputBuilder
impl Clone for RunScheduledInstancesInputBuilder
source§fn clone(&self) -> RunScheduledInstancesInputBuilder
fn clone(&self) -> RunScheduledInstancesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RunScheduledInstancesInputBuilder
impl Default for RunScheduledInstancesInputBuilder
source§fn default() -> RunScheduledInstancesInputBuilder
fn default() -> RunScheduledInstancesInputBuilder
source§impl PartialEq for RunScheduledInstancesInputBuilder
impl PartialEq for RunScheduledInstancesInputBuilder
source§fn eq(&self, other: &RunScheduledInstancesInputBuilder) -> bool
fn eq(&self, other: &RunScheduledInstancesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.