aws-sdk-appmonetization 1.0.0

AWS SDK for AWS App Monetization
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetEntitlementDecision`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_id(impl Into<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_app_id):<br>required: **true**<br>The ID of the app.<br>
    ///   - [`user_id(impl Into<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_user_id):<br>required: **true**<br>An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value.<br>
    ///   - [`event_type(impl Into<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::event_type) / [`set_event_type(Option<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_event_type):<br>required: **true**<br>The type of action the user is attempting, used to determine the applicable plan capability and quota. Use the same event type you will send on the event.<br>
    ///   - [`scope(RequestScope)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::scope) / [`set_scope(Option<RequestScope>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_scope):<br>required: **true**<br>The environment of the app that this operation applies to. Specify live to use the live app, or sandbox to use the app's isolated test environment.<br>
    ///   - [`quantity(impl Into<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::quantity) / [`set_quantity(Option<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_quantity):<br>required: **true**<br>The number of units the pending action will consume, as a non-negative decimal string (the same Quantity shape PutEvent uses). Send the real amount if known, otherwise your best upper estimate (for example a request's max tokens). Used when a metric counts events or sums or maxes the event quantity itself. The decision is DENY when usage already reached the limit, or when folding this event in would push it past (SUM and COUNT add the increment; MAX takes the larger of current usage and the increment).<br>
    ///   - [`properties(impl Into<String>, impl Into<String>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::properties) / [`set_properties(Option<HashMap::<String, String>>)`](crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::set_properties):<br>required: **false**<br>The same event properties you will send on the event. Each metric's filter is applied to them, and a summed or maxed field value is read from them. Omit them or send {} when the event has none; a metric that sums or maxes a property then rejects the check, as PutEvent rejects the event. Do not include personally identifiable or otherwise sensitive data in these values.<br>
    /// - On success, responds with [`GetEntitlementDecisionOutput`](crate::operation::get_entitlement_decision::GetEntitlementDecisionOutput) with field(s):
    ///   - [`decision(EntitlementDecision)`](crate::operation::get_entitlement_decision::GetEntitlementDecisionOutput::decision): The decision indicating whether the user may perform the action.
    ///   - [`reason(Option<EntitlementReason>)`](crate::operation::get_entitlement_decision::GetEntitlementDecisionOutput::reason): The reason behind the decision.
    ///   - [`plan_id(Option<String>)`](crate::operation::get_entitlement_decision::GetEntitlementDecisionOutput::plan_id): The ID of the plan the decision was evaluated against, when the user has a subscription.
    ///   - [`metrics(Option<Vec::<EntitlementMetricStatus>>)`](crate::operation::get_entitlement_decision::GetEntitlementDecisionOutput::metrics): The per-metric quota status relevant to the decision.
    /// - On failure, responds with [`SdkError<GetEntitlementDecisionError>`](crate::operation::get_entitlement_decision::GetEntitlementDecisionError)
    pub fn get_entitlement_decision(&self) -> crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder {
        crate::operation::get_entitlement_decision::builders::GetEntitlementDecisionFluentBuilder::new(self.handle.clone())
    }
}