pub struct CreatePricingRuleFluentBuilder { /* private fields */ }
Expand description

Fluent builder constructing a request to CreatePricingRule.

Creates a pricing rule can be associated to a pricing plan, or a set of pricing plans.

Implementations§

source§

impl CreatePricingRuleFluentBuilder

source

pub fn as_input(&self) -> &CreatePricingRuleInputBuilder

Access the CreatePricingRule as a reference.

source

pub async fn send( self ) -> Result<CreatePricingRuleOutput, SdkError<CreatePricingRuleError, HttpResponse>>

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

source

pub fn customize( self ) -> CustomizableOperation<CreatePricingRuleOutput, CreatePricingRuleError, Self>

Consumes this builder, creating a customizable operation that can be modified before being sent.

source

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

The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

source

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

The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

source

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

The token that's needed to support idempotency. Idempotency isn't currently supported, but will be implemented in a future update.

source

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

The pricing rule name. The names must be unique to each pricing rule.

source

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

The pricing rule name. The names must be unique to each pricing rule.

source

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

The pricing rule name. The names must be unique to each pricing rule.

source

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

The pricing rule description.

source

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

The pricing rule description.

source

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

The pricing rule description.

source

pub fn scope(self, input: PricingRuleScope) -> Self

The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.

source

pub fn set_scope(self, input: Option<PricingRuleScope>) -> Self

The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.

source

pub fn get_scope(&self) -> &Option<PricingRuleScope>

The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.

source

pub fn type(self, input: PricingRuleType) -> Self

The type of pricing rule.

source

pub fn set_type(self, input: Option<PricingRuleType>) -> Self

The type of pricing rule.

source

pub fn get_type(&self) -> &Option<PricingRuleType>

The type of pricing rule.

source

pub fn modifier_percentage(self, input: f64) -> Self

A percentage modifier that's applied on the public pricing rates.

source

pub fn set_modifier_percentage(self, input: Option<f64>) -> Self

A percentage modifier that's applied on the public pricing rates.

source

pub fn get_modifier_percentage(&self) -> &Option<f64>

A percentage modifier that's applied on the public pricing rates.

source

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

If the Scope attribute is set to SERVICE or SKU, the attribute indicates which service the PricingRule is applicable for.

source

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

If the Scope attribute is set to SERVICE or SKU, the attribute indicates which service the PricingRule is applicable for.

source

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

If the Scope attribute is set to SERVICE or SKU, the attribute indicates which service the PricingRule is applicable for.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to Tags.

To override the contents of this collection use set_tags.

A map that contains tag keys and tag values that are attached to a pricing rule.

source

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

A map that contains tag keys and tag values that are attached to a pricing rule.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

A map that contains tag keys and tag values that are attached to a pricing rule.

source

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

The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.

source

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

The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.

source

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

The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.

source

pub fn tiering(self, input: CreateTieringInput) -> Self

The set of tiering configurations for the pricing rule.

source

pub fn set_tiering(self, input: Option<CreateTieringInput>) -> Self

The set of tiering configurations for the pricing rule.

source

pub fn get_tiering(&self) -> &Option<CreateTieringInput>

The set of tiering configurations for the pricing rule.

source

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

Usage type is the unit that each service uses to measure the usage of a specific type of resource.

If the Scope attribute is set to SKU, this attribute indicates which usage type the PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes an M2 High Memory Double Extra Large instance in the US West (Oregon) Region.

source

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

Usage type is the unit that each service uses to measure the usage of a specific type of resource.

If the Scope attribute is set to SKU, this attribute indicates which usage type the PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes an M2 High Memory Double Extra Large instance in the US West (Oregon) Region.

source

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

Usage type is the unit that each service uses to measure the usage of a specific type of resource.

If the Scope attribute is set to SKU, this attribute indicates which usage type the PricingRule is modifying. For example, USW2-BoxUsage:m2.2xlarge describes an M2 High Memory Double Extra Large instance in the US West (Oregon) Region.

source

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

Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.

If the Scope attribute is set to SKU, this attribute indicates which operation the PricingRule is modifying. For example, a value of RunInstances:0202 indicates the operation of running an Amazon EC2 instance.

source

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

Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.

If the Scope attribute is set to SKU, this attribute indicates which operation the PricingRule is modifying. For example, a value of RunInstances:0202 indicates the operation of running an Amazon EC2 instance.

source

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

Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.

If the Scope attribute is set to SKU, this attribute indicates which operation the PricingRule is modifying. For example, a value of RunInstances:0202 indicates the operation of running an Amazon EC2 instance.

Trait Implementations§

source§

impl Clone for CreatePricingRuleFluentBuilder

source§

fn clone(&self) -> CreatePricingRuleFluentBuilder

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 CreatePricingRuleFluentBuilder

source§

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

Formats the value using the given formatter. Read more

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<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same 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