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
source§fn eq(&self, other: &AccessScopeBuilder) -> bool
fn eq(&self, other: &AccessScopeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AccessScopeBuilder
Auto Trait Implementations§
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> 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>
Creates a shared type from an unshared type.