Struct aws_sdk_eks::types::builders::AccessScopeBuilder
source · #[non_exhaustive]pub struct AccessScopeBuilder { /* private fields */ }Expand description
A builder for AccessScope.
Implementations§
source§impl AccessScopeBuilder
impl AccessScopeBuilder
sourcepub fn type(self, input: AccessScopeType) -> Self
pub fn type(self, input: AccessScopeType) -> Self
The scope type of an access policy.
sourcepub fn set_type(self, input: Option<AccessScopeType>) -> Self
pub fn set_type(self, input: Option<AccessScopeType>) -> Self
The scope type of an access policy.
sourcepub fn get_type(&self) -> &Option<AccessScopeType>
pub fn get_type(&self) -> &Option<AccessScopeType>
The scope type of an access policy.
sourcepub fn namespaces(self, input: impl Into<String>) -> Self
pub fn namespaces(self, input: impl Into<String>) -> Self
Appends an item to namespaces.
To override the contents of this collection use set_namespaces.
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.
sourcepub fn set_namespaces(self, input: Option<Vec<String>>) -> Self
pub fn set_namespaces(self, input: Option<Vec<String>>) -> Self
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.
sourcepub fn get_namespaces(&self) -> &Option<Vec<String>>
pub fn get_namespaces(&self) -> &Option<Vec<String>>
A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.
sourcepub fn build(self) -> AccessScope
pub fn build(self) -> AccessScope
Consumes the builder and constructs a AccessScope.
Trait Implementations§
source§impl Clone for AccessScopeBuilder
impl Clone for AccessScopeBuilder
source§fn clone(&self) -> AccessScopeBuilder
fn clone(&self) -> AccessScopeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AccessScopeBuilder
impl Debug for AccessScopeBuilder
source§impl Default for AccessScopeBuilder
impl Default for AccessScopeBuilder
source§fn default() -> AccessScopeBuilder
fn default() -> AccessScopeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AccessScopeBuilder
impl PartialEq for AccessScopeBuilder
impl StructuralPartialEq for AccessScopeBuilder
Auto Trait Implementations§
impl Freeze for AccessScopeBuilder
impl RefUnwindSafe for AccessScopeBuilder
impl Send for AccessScopeBuilder
impl Sync for AccessScopeBuilder
impl Unpin for AccessScopeBuilder
impl UnwindSafe for AccessScopeBuilder
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.