Struct aws_sdk_licensemanager::operation::create_license::builders::CreateLicenseInputBuilder
source · #[non_exhaustive]pub struct CreateLicenseInputBuilder { /* private fields */ }Expand description
A builder for CreateLicenseInput.
Implementations§
source§impl CreateLicenseInputBuilder
impl CreateLicenseInputBuilder
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 license_metadata.
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.
sourcepub fn build(self) -> Result<CreateLicenseInput, BuildError>
pub fn build(self) -> Result<CreateLicenseInput, BuildError>
Consumes the builder and constructs a CreateLicenseInput.
source§impl CreateLicenseInputBuilder
impl CreateLicenseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateLicenseOutput, SdkError<CreateLicenseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateLicenseOutput, SdkError<CreateLicenseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateLicenseInputBuilder
impl Clone for CreateLicenseInputBuilder
source§fn clone(&self) -> CreateLicenseInputBuilder
fn clone(&self) -> CreateLicenseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateLicenseInputBuilder
impl Debug for CreateLicenseInputBuilder
source§impl Default for CreateLicenseInputBuilder
impl Default for CreateLicenseInputBuilder
source§fn default() -> CreateLicenseInputBuilder
fn default() -> CreateLicenseInputBuilder
source§impl PartialEq<CreateLicenseInputBuilder> for CreateLicenseInputBuilder
impl PartialEq<CreateLicenseInputBuilder> for CreateLicenseInputBuilder
source§fn eq(&self, other: &CreateLicenseInputBuilder) -> bool
fn eq(&self, other: &CreateLicenseInputBuilder) -> bool
self and other values to be equal, and is used
by ==.