Struct aws_sdk_eks::operation::create_eks_anywhere_subscription::builders::CreateEksAnywhereSubscriptionInputBuilder
source · #[non_exhaustive]pub struct CreateEksAnywhereSubscriptionInputBuilder { /* private fields */ }Expand description
A builder for CreateEksAnywhereSubscriptionInput.
Implementations§
source§impl CreateEksAnywhereSubscriptionInputBuilder
impl CreateEksAnywhereSubscriptionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
sourcepub fn term(self, input: EksAnywhereSubscriptionTerm) -> Self
pub fn term(self, input: EksAnywhereSubscriptionTerm) -> Self
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
This field is required.sourcepub fn set_term(self, input: Option<EksAnywhereSubscriptionTerm>) -> Self
pub fn set_term(self, input: Option<EksAnywhereSubscriptionTerm>) -> Self
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
sourcepub fn get_term(&self) -> &Option<EksAnywhereSubscriptionTerm>
pub fn get_term(&self) -> &Option<EksAnywhereSubscriptionTerm>
An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
sourcepub fn license_quantity(self, input: i32) -> Self
pub fn license_quantity(self, input: i32) -> Self
The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.
sourcepub fn set_license_quantity(self, input: Option<i32>) -> Self
pub fn set_license_quantity(self, input: Option<i32>) -> Self
The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.
sourcepub fn get_license_quantity(&self) -> &Option<i32>
pub fn get_license_quantity(&self) -> &Option<i32>
The number of licenses to purchase with the subscription. Valid values are between 1 and 100. This value can't be changed after creating the subscription.
sourcepub fn license_type(self, input: EksAnywhereSubscriptionLicenseType) -> Self
pub fn license_type(self, input: EksAnywhereSubscriptionLicenseType) -> Self
The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
sourcepub fn set_license_type(
self,
input: Option<EksAnywhereSubscriptionLicenseType>,
) -> Self
pub fn set_license_type( self, input: Option<EksAnywhereSubscriptionLicenseType>, ) -> Self
The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
sourcepub fn get_license_type(&self) -> &Option<EksAnywhereSubscriptionLicenseType>
pub fn get_license_type(&self) -> &Option<EksAnywhereSubscriptionLicenseType>
The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
sourcepub fn auto_renew(self, input: bool) -> Self
pub fn auto_renew(self, input: bool) -> Self
A boolean indicating whether the subscription auto renews at the end of the term.
sourcepub fn set_auto_renew(self, input: Option<bool>) -> Self
pub fn set_auto_renew(self, input: Option<bool>) -> Self
A boolean indicating whether the subscription auto renews at the end of the term.
sourcepub fn get_auto_renew(&self) -> &Option<bool>
pub fn get_auto_renew(&self) -> &Option<bool>
A boolean indicating whether the subscription auto renews at the end of the term.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags don't propagate to any other resources associated with the subscription.
sourcepub fn build(self) -> Result<CreateEksAnywhereSubscriptionInput, BuildError>
pub fn build(self) -> Result<CreateEksAnywhereSubscriptionInput, BuildError>
Consumes the builder and constructs a CreateEksAnywhereSubscriptionInput.
source§impl CreateEksAnywhereSubscriptionInputBuilder
impl CreateEksAnywhereSubscriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateEksAnywhereSubscriptionOutput, SdkError<CreateEksAnywhereSubscriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateEksAnywhereSubscriptionOutput, SdkError<CreateEksAnywhereSubscriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateEksAnywhereSubscriptionInputBuilder
impl Clone for CreateEksAnywhereSubscriptionInputBuilder
source§fn clone(&self) -> CreateEksAnywhereSubscriptionInputBuilder
fn clone(&self) -> CreateEksAnywhereSubscriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateEksAnywhereSubscriptionInputBuilder
impl Default for CreateEksAnywhereSubscriptionInputBuilder
source§fn default() -> CreateEksAnywhereSubscriptionInputBuilder
fn default() -> CreateEksAnywhereSubscriptionInputBuilder
source§impl PartialEq for CreateEksAnywhereSubscriptionInputBuilder
impl PartialEq for CreateEksAnywhereSubscriptionInputBuilder
source§fn eq(&self, other: &CreateEksAnywhereSubscriptionInputBuilder) -> bool
fn eq(&self, other: &CreateEksAnywhereSubscriptionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateEksAnywhereSubscriptionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateEksAnywhereSubscriptionInputBuilder
impl RefUnwindSafe for CreateEksAnywhereSubscriptionInputBuilder
impl Send for CreateEksAnywhereSubscriptionInputBuilder
impl Sync for CreateEksAnywhereSubscriptionInputBuilder
impl Unpin for CreateEksAnywhereSubscriptionInputBuilder
impl UnwindSafe for CreateEksAnywhereSubscriptionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more