Struct aws_sdk_memorydb::operation::purchase_reserved_nodes_offering::builders::PurchaseReservedNodesOfferingInputBuilder
source · #[non_exhaustive]pub struct PurchaseReservedNodesOfferingInputBuilder { /* private fields */ }Expand description
A builder for PurchaseReservedNodesOfferingInput.
Implementations§
source§impl PurchaseReservedNodesOfferingInputBuilder
impl PurchaseReservedNodesOfferingInputBuilder
sourcepub fn reserved_nodes_offering_id(self, input: impl Into<String>) -> Self
pub fn reserved_nodes_offering_id(self, input: impl Into<String>) -> Self
The ID of the reserved node offering to purchase.
This field is required.sourcepub fn set_reserved_nodes_offering_id(self, input: Option<String>) -> Self
pub fn set_reserved_nodes_offering_id(self, input: Option<String>) -> Self
The ID of the reserved node offering to purchase.
sourcepub fn get_reserved_nodes_offering_id(&self) -> &Option<String>
pub fn get_reserved_nodes_offering_id(&self) -> &Option<String>
The ID of the reserved node offering to purchase.
sourcepub fn reservation_id(self, input: impl Into<String>) -> Self
pub fn reservation_id(self, input: impl Into<String>) -> Self
A customer-specified identifier to track this reservation.
sourcepub fn set_reservation_id(self, input: Option<String>) -> Self
pub fn set_reservation_id(self, input: Option<String>) -> Self
A customer-specified identifier to track this reservation.
sourcepub fn get_reservation_id(&self) -> &Option<String>
pub fn get_reservation_id(&self) -> &Option<String>
A customer-specified identifier to track this reservation.
sourcepub fn node_count(self, input: i32) -> Self
pub fn node_count(self, input: i32) -> Self
The number of node instances to reserve.
sourcepub fn set_node_count(self, input: Option<i32>) -> Self
pub fn set_node_count(self, input: Option<i32>) -> Self
The number of node instances to reserve.
sourcepub fn get_node_count(&self) -> &Option<i32>
pub fn get_node_count(&self) -> &Option<i32>
The number of node instances to reserve.
Appends an item to tags.
To override the contents of this collection use set_tags.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
sourcepub fn build(self) -> Result<PurchaseReservedNodesOfferingInput, BuildError>
pub fn build(self) -> Result<PurchaseReservedNodesOfferingInput, BuildError>
Consumes the builder and constructs a PurchaseReservedNodesOfferingInput.
source§impl PurchaseReservedNodesOfferingInputBuilder
impl PurchaseReservedNodesOfferingInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PurchaseReservedNodesOfferingOutput, SdkError<PurchaseReservedNodesOfferingError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PurchaseReservedNodesOfferingOutput, SdkError<PurchaseReservedNodesOfferingError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PurchaseReservedNodesOfferingInputBuilder
impl Clone for PurchaseReservedNodesOfferingInputBuilder
source§fn clone(&self) -> PurchaseReservedNodesOfferingInputBuilder
fn clone(&self) -> PurchaseReservedNodesOfferingInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PurchaseReservedNodesOfferingInputBuilder
impl Default for PurchaseReservedNodesOfferingInputBuilder
source§fn default() -> PurchaseReservedNodesOfferingInputBuilder
fn default() -> PurchaseReservedNodesOfferingInputBuilder
source§impl PartialEq for PurchaseReservedNodesOfferingInputBuilder
impl PartialEq for PurchaseReservedNodesOfferingInputBuilder
source§fn eq(&self, other: &PurchaseReservedNodesOfferingInputBuilder) -> bool
fn eq(&self, other: &PurchaseReservedNodesOfferingInputBuilder) -> bool
self and other values to be equal, and is used
by ==.