#[non_exhaustive]pub struct ServiceAccountSummaryBuilder { /* private fields */ }
Expand description
A builder for ServiceAccountSummary
.
Implementations§
source§impl ServiceAccountSummaryBuilder
impl ServiceAccountSummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique ID of the service account.
This field is required.sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the service account.
This field is required.sourcepub fn is_disabled(self, input: impl Into<String>) -> Self
pub fn is_disabled(self, input: impl Into<String>) -> Self
Returns true if the service account is disabled. Service accounts can be disabled and enabled in the Amazon Managed Grafana console.
This field is required.sourcepub fn set_is_disabled(self, input: Option<String>) -> Self
pub fn set_is_disabled(self, input: Option<String>) -> Self
Returns true if the service account is disabled. Service accounts can be disabled and enabled in the Amazon Managed Grafana console.
sourcepub fn get_is_disabled(&self) -> &Option<String>
pub fn get_is_disabled(&self) -> &Option<String>
Returns true if the service account is disabled. Service accounts can be disabled and enabled in the Amazon Managed Grafana console.
sourcepub fn grafana_role(self, input: Role) -> Self
pub fn grafana_role(self, input: Role) -> Self
The role of the service account, which sets the permission level used when calling Grafana APIs.
This field is required.sourcepub fn set_grafana_role(self, input: Option<Role>) -> Self
pub fn set_grafana_role(self, input: Option<Role>) -> Self
The role of the service account, which sets the permission level used when calling Grafana APIs.
sourcepub fn get_grafana_role(&self) -> &Option<Role>
pub fn get_grafana_role(&self) -> &Option<Role>
The role of the service account, which sets the permission level used when calling Grafana APIs.
sourcepub fn build(self) -> Result<ServiceAccountSummary, BuildError>
pub fn build(self) -> Result<ServiceAccountSummary, BuildError>
Consumes the builder and constructs a ServiceAccountSummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceAccountSummaryBuilder
impl Clone for ServiceAccountSummaryBuilder
source§fn clone(&self) -> ServiceAccountSummaryBuilder
fn clone(&self) -> ServiceAccountSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceAccountSummaryBuilder
impl Debug for ServiceAccountSummaryBuilder
source§impl Default for ServiceAccountSummaryBuilder
impl Default for ServiceAccountSummaryBuilder
source§fn default() -> ServiceAccountSummaryBuilder
fn default() -> ServiceAccountSummaryBuilder
source§impl PartialEq for ServiceAccountSummaryBuilder
impl PartialEq for ServiceAccountSummaryBuilder
source§fn eq(&self, other: &ServiceAccountSummaryBuilder) -> bool
fn eq(&self, other: &ServiceAccountSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServiceAccountSummaryBuilder
Auto Trait Implementations§
impl Freeze for ServiceAccountSummaryBuilder
impl RefUnwindSafe for ServiceAccountSummaryBuilder
impl Send for ServiceAccountSummaryBuilder
impl Sync for ServiceAccountSummaryBuilder
impl Unpin for ServiceAccountSummaryBuilder
impl UnwindSafe for ServiceAccountSummaryBuilder
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> 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