Struct aws_sdk_cloudfront::types::builders::KeyGroupConfigBuilder
source · #[non_exhaustive]pub struct KeyGroupConfigBuilder { /* private fields */ }
Expand description
A builder for KeyGroupConfig
.
Implementations§
source§impl KeyGroupConfigBuilder
impl KeyGroupConfigBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name to identify the key group.
This field is required.sourcepub fn items(self, input: impl Into<String>) -> Self
pub fn items(self, input: impl Into<String>) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
A list of the identifiers of the public keys in the key group.
sourcepub fn set_items(self, input: Option<Vec<String>>) -> Self
pub fn set_items(self, input: Option<Vec<String>>) -> Self
A list of the identifiers of the public keys in the key group.
sourcepub fn get_items(&self) -> &Option<Vec<String>>
pub fn get_items(&self) -> &Option<Vec<String>>
A list of the identifiers of the public keys in the key group.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
A comment to describe the key group. The comment cannot be longer than 128 characters.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
A comment to describe the key group. The comment cannot be longer than 128 characters.
sourcepub fn get_comment(&self) -> &Option<String>
pub fn get_comment(&self) -> &Option<String>
A comment to describe the key group. The comment cannot be longer than 128 characters.
sourcepub fn build(self) -> Result<KeyGroupConfig, BuildError>
pub fn build(self) -> Result<KeyGroupConfig, BuildError>
Consumes the builder and constructs a KeyGroupConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KeyGroupConfigBuilder
impl Clone for KeyGroupConfigBuilder
source§fn clone(&self) -> KeyGroupConfigBuilder
fn clone(&self) -> KeyGroupConfigBuilder
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 KeyGroupConfigBuilder
impl Debug for KeyGroupConfigBuilder
source§impl Default for KeyGroupConfigBuilder
impl Default for KeyGroupConfigBuilder
source§fn default() -> KeyGroupConfigBuilder
fn default() -> KeyGroupConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for KeyGroupConfigBuilder
impl PartialEq for KeyGroupConfigBuilder
source§fn eq(&self, other: &KeyGroupConfigBuilder) -> bool
fn eq(&self, other: &KeyGroupConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyGroupConfigBuilder
Auto Trait Implementations§
impl Freeze for KeyGroupConfigBuilder
impl RefUnwindSafe for KeyGroupConfigBuilder
impl Send for KeyGroupConfigBuilder
impl Sync for KeyGroupConfigBuilder
impl Unpin for KeyGroupConfigBuilder
impl UnwindSafe for KeyGroupConfigBuilder
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>
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.