#[non_exhaustive]
pub struct ScheduledInstanceBuilder { /* private fields */ }
Expand description

A builder for ScheduledInstance.

Implementations§

source§

impl ScheduledInstanceBuilder

source

pub fn availability_zone(self, input: impl Into<String>) -> Self

The Availability Zone.

source

pub fn set_availability_zone(self, input: Option<String>) -> Self

The Availability Zone.

source

pub fn get_availability_zone(&self) -> &Option<String>

The Availability Zone.

source

pub fn create_date(self, input: DateTime) -> Self

The date when the Scheduled Instance was purchased.

source

pub fn set_create_date(self, input: Option<DateTime>) -> Self

The date when the Scheduled Instance was purchased.

source

pub fn get_create_date(&self) -> &Option<DateTime>

The date when the Scheduled Instance was purchased.

source

pub fn hourly_price(self, input: impl Into<String>) -> Self

The hourly price for a single instance.

source

pub fn set_hourly_price(self, input: Option<String>) -> Self

The hourly price for a single instance.

source

pub fn get_hourly_price(&self) -> &Option<String>

The hourly price for a single instance.

source

pub fn instance_count(self, input: i32) -> Self

The number of instances.

source

pub fn set_instance_count(self, input: Option<i32>) -> Self

The number of instances.

source

pub fn get_instance_count(&self) -> &Option<i32>

The number of instances.

source

pub fn instance_type(self, input: impl Into<String>) -> Self

The instance type.

source

pub fn set_instance_type(self, input: Option<String>) -> Self

The instance type.

source

pub fn get_instance_type(&self) -> &Option<String>

The instance type.

source

pub fn network_platform(self, input: impl Into<String>) -> Self

The network platform.

source

pub fn set_network_platform(self, input: Option<String>) -> Self

The network platform.

source

pub fn get_network_platform(&self) -> &Option<String>

The network platform.

source

pub fn next_slot_start_time(self, input: DateTime) -> Self

The time for the next schedule to start.

source

pub fn set_next_slot_start_time(self, input: Option<DateTime>) -> Self

The time for the next schedule to start.

source

pub fn get_next_slot_start_time(&self) -> &Option<DateTime>

The time for the next schedule to start.

source

pub fn platform(self, input: impl Into<String>) -> Self

The platform (Linux/UNIX or Windows).

source

pub fn set_platform(self, input: Option<String>) -> Self

The platform (Linux/UNIX or Windows).

source

pub fn get_platform(&self) -> &Option<String>

The platform (Linux/UNIX or Windows).

source

pub fn previous_slot_end_time(self, input: DateTime) -> Self

The time that the previous schedule ended or will end.

source

pub fn set_previous_slot_end_time(self, input: Option<DateTime>) -> Self

The time that the previous schedule ended or will end.

source

pub fn get_previous_slot_end_time(&self) -> &Option<DateTime>

The time that the previous schedule ended or will end.

source

pub fn recurrence(self, input: ScheduledInstanceRecurrence) -> Self

The schedule recurrence.

source

pub fn set_recurrence(self, input: Option<ScheduledInstanceRecurrence>) -> Self

The schedule recurrence.

source

pub fn get_recurrence(&self) -> &Option<ScheduledInstanceRecurrence>

The schedule recurrence.

source

pub fn scheduled_instance_id(self, input: impl Into<String>) -> Self

The Scheduled Instance ID.

source

pub fn set_scheduled_instance_id(self, input: Option<String>) -> Self

The Scheduled Instance ID.

source

pub fn get_scheduled_instance_id(&self) -> &Option<String>

The Scheduled Instance ID.

source

pub fn slot_duration_in_hours(self, input: i32) -> Self

The number of hours in the schedule.

source

pub fn set_slot_duration_in_hours(self, input: Option<i32>) -> Self

The number of hours in the schedule.

source

pub fn get_slot_duration_in_hours(&self) -> &Option<i32>

The number of hours in the schedule.

source

pub fn term_end_date(self, input: DateTime) -> Self

The end date for the Scheduled Instance.

source

pub fn set_term_end_date(self, input: Option<DateTime>) -> Self

The end date for the Scheduled Instance.

source

pub fn get_term_end_date(&self) -> &Option<DateTime>

The end date for the Scheduled Instance.

source

pub fn term_start_date(self, input: DateTime) -> Self

The start date for the Scheduled Instance.

source

pub fn set_term_start_date(self, input: Option<DateTime>) -> Self

The start date for the Scheduled Instance.

source

pub fn get_term_start_date(&self) -> &Option<DateTime>

The start date for the Scheduled Instance.

source

pub fn total_scheduled_instance_hours(self, input: i32) -> Self

The total number of hours for a single instance for the entire term.

source

pub fn set_total_scheduled_instance_hours(self, input: Option<i32>) -> Self

The total number of hours for a single instance for the entire term.

source

pub fn get_total_scheduled_instance_hours(&self) -> &Option<i32>

The total number of hours for a single instance for the entire term.

source

pub fn build(self) -> ScheduledInstance

Consumes the builder and constructs a ScheduledInstance.

Trait Implementations§

source§

impl Clone for ScheduledInstanceBuilder

source§

fn clone(&self) -> ScheduledInstanceBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ScheduledInstanceBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ScheduledInstanceBuilder

source§

fn default() -> ScheduledInstanceBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<ScheduledInstanceBuilder> for ScheduledInstanceBuilder

source§

fn eq(&self, other: &ScheduledInstanceBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for ScheduledInstanceBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more