Struct aws_sdk_billingconductor::operation::create_pricing_rule::builders::CreatePricingRuleFluentBuilder
source · 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
impl CreatePricingRuleFluentBuilder
sourcepub fn as_input(&self) -> &CreatePricingRuleInputBuilder
pub fn as_input(&self) -> &CreatePricingRuleInputBuilder
Access the CreatePricingRule as a reference.
sourcepub async fn send(
self
) -> Result<CreatePricingRuleOutput, SdkError<CreatePricingRuleError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<CreatePricingRuleOutput, CreatePricingRuleError, Self>
pub fn customize( self ) -> CustomizableOperation<CreatePricingRuleOutput, CreatePricingRuleError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_client_token(&self) -> &Option<String>
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.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The pricing rule name. The names must be unique to each pricing rule.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The pricing rule name. The names must be unique to each pricing rule.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The pricing rule name. The names must be unique to each pricing rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The pricing rule description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The pricing rule description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The pricing rule description.
sourcepub fn scope(self, input: PricingRuleScope) -> Self
pub fn scope(self, input: PricingRuleScope) -> Self
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
sourcepub fn set_scope(self, input: Option<PricingRuleScope>) -> Self
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.
sourcepub fn get_scope(&self) -> &Option<PricingRuleScope>
pub fn get_scope(&self) -> &Option<PricingRuleScope>
The scope of pricing rule that indicates if it's globally applicable, or it's service-specific.
sourcepub fn type(self, input: PricingRuleType) -> Self
pub fn type(self, input: PricingRuleType) -> Self
The type of pricing rule.
sourcepub fn set_type(self, input: Option<PricingRuleType>) -> Self
pub fn set_type(self, input: Option<PricingRuleType>) -> Self
The type of pricing rule.
sourcepub fn get_type(&self) -> &Option<PricingRuleType>
pub fn get_type(&self) -> &Option<PricingRuleType>
The type of pricing rule.
sourcepub fn modifier_percentage(self, input: f64) -> Self
pub fn modifier_percentage(self, input: f64) -> Self
A percentage modifier that's applied on the public pricing rates.
sourcepub fn set_modifier_percentage(self, input: Option<f64>) -> Self
pub fn set_modifier_percentage(self, input: Option<f64>) -> Self
A percentage modifier that's applied on the public pricing rates.
sourcepub fn get_modifier_percentage(&self) -> &Option<f64>
pub fn get_modifier_percentage(&self) -> &Option<f64>
A percentage modifier that's applied on the public pricing rates.
sourcepub fn service(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_service(self, input: Option<String>) -> Self
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.
sourcepub fn get_service(&self) -> &Option<String>
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.
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.
A map that contains tag keys and tag values that are attached to a pricing rule.
A map that contains tag keys and tag values that are attached to a pricing rule.
sourcepub fn billing_entity(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_billing_entity(self, input: Option<String>) -> Self
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.
sourcepub fn get_billing_entity(&self) -> &Option<String>
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.
sourcepub fn tiering(self, input: CreateTieringInput) -> Self
pub fn tiering(self, input: CreateTieringInput) -> Self
The set of tiering configurations for the pricing rule.
sourcepub fn set_tiering(self, input: Option<CreateTieringInput>) -> Self
pub fn set_tiering(self, input: Option<CreateTieringInput>) -> Self
The set of tiering configurations for the pricing rule.
sourcepub fn get_tiering(&self) -> &Option<CreateTieringInput>
pub fn get_tiering(&self) -> &Option<CreateTieringInput>
The set of tiering configurations for the pricing rule.
sourcepub fn usage_type(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_usage_type(self, input: Option<String>) -> Self
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.
sourcepub fn get_usage_type(&self) -> &Option<String>
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.
sourcepub fn operation(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_operation(self, input: Option<String>) -> Self
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.
sourcepub fn get_operation(&self) -> &Option<String>
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
impl Clone for CreatePricingRuleFluentBuilder
source§fn clone(&self) -> CreatePricingRuleFluentBuilder
fn clone(&self) -> CreatePricingRuleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more