Struct aws_sdk_ec2::operation::create_reserved_instances_listing::CreateReservedInstancesListingInput
source · #[non_exhaustive]pub struct CreateReservedInstancesListingInput {
pub client_token: Option<String>,
pub instance_count: Option<i32>,
pub price_schedules: Option<Vec<PriceScheduleSpecification>>,
pub reserved_instances_id: Option<String>,
}Expand description
Contains the parameters for CreateReservedInstancesListing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.client_token: Option<String>Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
instance_count: Option<i32>The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
price_schedules: Option<Vec<PriceScheduleSpecification>>A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
reserved_instances_id: Option<String>The ID of the active Standard Reserved Instance.
Implementations§
source§impl CreateReservedInstancesListingInput
impl CreateReservedInstancesListingInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
sourcepub fn price_schedules(&self) -> &[PriceScheduleSpecification]
pub fn price_schedules(&self) -> &[PriceScheduleSpecification]
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .price_schedules.is_none().
sourcepub fn reserved_instances_id(&self) -> Option<&str>
pub fn reserved_instances_id(&self) -> Option<&str>
The ID of the active Standard Reserved Instance.
source§impl CreateReservedInstancesListingInput
impl CreateReservedInstancesListingInput
sourcepub fn builder() -> CreateReservedInstancesListingInputBuilder
pub fn builder() -> CreateReservedInstancesListingInputBuilder
Creates a new builder-style object to manufacture CreateReservedInstancesListingInput.
Trait Implementations§
source§impl Clone for CreateReservedInstancesListingInput
impl Clone for CreateReservedInstancesListingInput
source§fn clone(&self) -> CreateReservedInstancesListingInput
fn clone(&self) -> CreateReservedInstancesListingInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for CreateReservedInstancesListingInput
impl PartialEq for CreateReservedInstancesListingInput
source§fn eq(&self, other: &CreateReservedInstancesListingInput) -> bool
fn eq(&self, other: &CreateReservedInstancesListingInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateReservedInstancesListingInput
Auto Trait Implementations§
impl Freeze for CreateReservedInstancesListingInput
impl RefUnwindSafe for CreateReservedInstancesListingInput
impl Send for CreateReservedInstancesListingInput
impl Sync for CreateReservedInstancesListingInput
impl Unpin for CreateReservedInstancesListingInput
impl UnwindSafe for CreateReservedInstancesListingInput
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> 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 more