Struct aws_sdk_licensemanager::operation::create_license::builders::CreateLicenseFluentBuilder
source · pub struct CreateLicenseFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateLicense.
Creates a license.
Implementations§
source§impl CreateLicenseFluentBuilder
impl CreateLicenseFluentBuilder
sourcepub fn as_input(&self) -> &CreateLicenseInputBuilder
pub fn as_input(&self) -> &CreateLicenseInputBuilder
Access the CreateLicense as a reference.
sourcepub async fn send(
self
) -> Result<CreateLicenseOutput, SdkError<CreateLicenseError, HttpResponse>>
pub async fn send( self ) -> Result<CreateLicenseOutput, SdkError<CreateLicenseError, 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 async fn customize(
self
) -> Result<CustomizableOperation<CreateLicenseOutput, CreateLicenseError>, SdkError<CreateLicenseError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateLicenseOutput, CreateLicenseError>, SdkError<CreateLicenseError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn license_name(self, input: impl Into<String>) -> Self
pub fn license_name(self, input: impl Into<String>) -> Self
License name.
sourcepub fn set_license_name(self, input: Option<String>) -> Self
pub fn set_license_name(self, input: Option<String>) -> Self
License name.
sourcepub fn get_license_name(&self) -> &Option<String>
pub fn get_license_name(&self) -> &Option<String>
License name.
sourcepub fn product_name(self, input: impl Into<String>) -> Self
pub fn product_name(self, input: impl Into<String>) -> Self
Product name.
sourcepub fn set_product_name(self, input: Option<String>) -> Self
pub fn set_product_name(self, input: Option<String>) -> Self
Product name.
sourcepub fn get_product_name(&self) -> &Option<String>
pub fn get_product_name(&self) -> &Option<String>
Product name.
sourcepub fn product_sku(self, input: impl Into<String>) -> Self
pub fn product_sku(self, input: impl Into<String>) -> Self
Product SKU.
sourcepub fn set_product_sku(self, input: Option<String>) -> Self
pub fn set_product_sku(self, input: Option<String>) -> Self
Product SKU.
sourcepub fn get_product_sku(&self) -> &Option<String>
pub fn get_product_sku(&self) -> &Option<String>
Product SKU.
sourcepub fn set_issuer(self, input: Option<Issuer>) -> Self
pub fn set_issuer(self, input: Option<Issuer>) -> Self
License issuer.
sourcepub fn get_issuer(&self) -> &Option<Issuer>
pub fn get_issuer(&self) -> &Option<Issuer>
License issuer.
sourcepub fn home_region(self, input: impl Into<String>) -> Self
pub fn home_region(self, input: impl Into<String>) -> Self
Home Region for the license.
sourcepub fn set_home_region(self, input: Option<String>) -> Self
pub fn set_home_region(self, input: Option<String>) -> Self
Home Region for the license.
sourcepub fn get_home_region(&self) -> &Option<String>
pub fn get_home_region(&self) -> &Option<String>
Home Region for the license.
sourcepub fn validity(self, input: DatetimeRange) -> Self
pub fn validity(self, input: DatetimeRange) -> Self
Date and time range during which the license is valid, in ISO8601-UTC format.
sourcepub fn set_validity(self, input: Option<DatetimeRange>) -> Self
pub fn set_validity(self, input: Option<DatetimeRange>) -> Self
Date and time range during which the license is valid, in ISO8601-UTC format.
sourcepub fn get_validity(&self) -> &Option<DatetimeRange>
pub fn get_validity(&self) -> &Option<DatetimeRange>
Date and time range during which the license is valid, in ISO8601-UTC format.
sourcepub fn entitlements(self, input: Entitlement) -> Self
pub fn entitlements(self, input: Entitlement) -> Self
Appends an item to Entitlements.
To override the contents of this collection use set_entitlements.
License entitlements.
sourcepub fn set_entitlements(self, input: Option<Vec<Entitlement>>) -> Self
pub fn set_entitlements(self, input: Option<Vec<Entitlement>>) -> Self
License entitlements.
sourcepub fn get_entitlements(&self) -> &Option<Vec<Entitlement>>
pub fn get_entitlements(&self) -> &Option<Vec<Entitlement>>
License entitlements.
sourcepub fn beneficiary(self, input: impl Into<String>) -> Self
pub fn beneficiary(self, input: impl Into<String>) -> Self
License beneficiary.
sourcepub fn set_beneficiary(self, input: Option<String>) -> Self
pub fn set_beneficiary(self, input: Option<String>) -> Self
License beneficiary.
sourcepub fn get_beneficiary(&self) -> &Option<String>
pub fn get_beneficiary(&self) -> &Option<String>
License beneficiary.
sourcepub fn consumption_configuration(self, input: ConsumptionConfiguration) -> Self
pub fn consumption_configuration(self, input: ConsumptionConfiguration) -> Self
Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
sourcepub fn set_consumption_configuration(
self,
input: Option<ConsumptionConfiguration>
) -> Self
pub fn set_consumption_configuration( self, input: Option<ConsumptionConfiguration> ) -> Self
Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
sourcepub fn get_consumption_configuration(&self) -> &Option<ConsumptionConfiguration>
pub fn get_consumption_configuration(&self) -> &Option<ConsumptionConfiguration>
Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
sourcepub fn license_metadata(self, input: Metadata) -> Self
pub fn license_metadata(self, input: Metadata) -> Self
Appends an item to LicenseMetadata.
To override the contents of this collection use set_license_metadata.
Information about the license.
sourcepub fn set_license_metadata(self, input: Option<Vec<Metadata>>) -> Self
pub fn set_license_metadata(self, input: Option<Vec<Metadata>>) -> Self
Information about the license.
sourcepub fn get_license_metadata(&self) -> &Option<Vec<Metadata>>
pub fn get_license_metadata(&self) -> &Option<Vec<Metadata>>
Information about the license.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Trait Implementations§
source§impl Clone for CreateLicenseFluentBuilder
impl Clone for CreateLicenseFluentBuilder
source§fn clone(&self) -> CreateLicenseFluentBuilder
fn clone(&self) -> CreateLicenseFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more