Struct aws_sdk_grafana::operation::associate_license::builders::AssociateLicenseFluentBuilder
source · pub struct AssociateLicenseFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to AssociateLicense
.
Assigns a Grafana Enterprise license to a workspace. To upgrade, you must use ENTERPRISE
for the licenseType
, and pass in a valid Grafana Labs token for the grafanaToken
. Upgrading to Grafana Enterprise incurs additional fees. For more information, see Upgrade a workspace to Grafana Enterprise.
Implementations§
source§impl AssociateLicenseFluentBuilder
impl AssociateLicenseFluentBuilder
sourcepub fn as_input(&self) -> &AssociateLicenseInputBuilder
pub fn as_input(&self) -> &AssociateLicenseInputBuilder
Access the AssociateLicense as a reference.
sourcepub async fn send(
self,
) -> Result<AssociateLicenseOutput, SdkError<AssociateLicenseError, HttpResponse>>
pub async fn send( self, ) -> Result<AssociateLicenseOutput, SdkError<AssociateLicenseError, 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<AssociateLicenseOutput, AssociateLicenseError, Self>
pub fn customize( self, ) -> CustomizableOperation<AssociateLicenseOutput, AssociateLicenseError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn workspace_id(self, input: impl Into<String>) -> Self
pub fn workspace_id(self, input: impl Into<String>) -> Self
The ID of the workspace to associate the license with.
sourcepub fn set_workspace_id(self, input: Option<String>) -> Self
pub fn set_workspace_id(self, input: Option<String>) -> Self
The ID of the workspace to associate the license with.
sourcepub fn get_workspace_id(&self) -> &Option<String>
pub fn get_workspace_id(&self) -> &Option<String>
The ID of the workspace to associate the license with.
sourcepub fn license_type(self, input: LicenseType) -> Self
pub fn license_type(self, input: LicenseType) -> Self
The type of license to associate with the workspace.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn set_license_type(self, input: Option<LicenseType>) -> Self
pub fn set_license_type(self, input: Option<LicenseType>) -> Self
The type of license to associate with the workspace.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn get_license_type(&self) -> &Option<LicenseType>
pub fn get_license_type(&self) -> &Option<LicenseType>
The type of license to associate with the workspace.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn grafana_token(self, input: impl Into<String>) -> Self
pub fn grafana_token(self, input: impl Into<String>) -> Self
A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see Link your account with Grafana Labs.
sourcepub fn set_grafana_token(self, input: Option<String>) -> Self
pub fn set_grafana_token(self, input: Option<String>) -> Self
A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see Link your account with Grafana Labs.
sourcepub fn get_grafana_token(&self) -> &Option<String>
pub fn get_grafana_token(&self) -> &Option<String>
A token from Grafana Labs that ties your Amazon Web Services account with a Grafana Labs account. For more information, see Link your account with Grafana Labs.
Trait Implementations§
source§impl Clone for AssociateLicenseFluentBuilder
impl Clone for AssociateLicenseFluentBuilder
source§fn clone(&self) -> AssociateLicenseFluentBuilder
fn clone(&self) -> AssociateLicenseFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AssociateLicenseFluentBuilder
impl !RefUnwindSafe for AssociateLicenseFluentBuilder
impl Send for AssociateLicenseFluentBuilder
impl Sync for AssociateLicenseFluentBuilder
impl Unpin for AssociateLicenseFluentBuilder
impl !UnwindSafe for AssociateLicenseFluentBuilder
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