Struct aws_sdk_codecatalyst::operation::create_access_token::builders::CreateAccessTokenInputBuilder
source · #[non_exhaustive]pub struct CreateAccessTokenInputBuilder { /* private fields */ }
Expand description
A builder for CreateAccessTokenInput
.
Implementations§
source§impl CreateAccessTokenInputBuilder
impl CreateAccessTokenInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The friendly name of the personal access token.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The friendly name of the personal access token.
sourcepub fn expires_time(self, input: DateTime) -> Self
pub fn expires_time(self, input: DateTime) -> Self
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn set_expires_time(self, input: Option<DateTime>) -> Self
pub fn set_expires_time(self, input: Option<DateTime>) -> Self
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn get_expires_time(&self) -> &Option<DateTime>
pub fn get_expires_time(&self) -> &Option<DateTime>
The date and time the personal access token expires, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn build(self) -> Result<CreateAccessTokenInput, BuildError>
pub fn build(self) -> Result<CreateAccessTokenInput, BuildError>
Consumes the builder and constructs a CreateAccessTokenInput
.
source§impl CreateAccessTokenInputBuilder
impl CreateAccessTokenInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateAccessTokenOutput, SdkError<CreateAccessTokenError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateAccessTokenOutput, SdkError<CreateAccessTokenError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateAccessTokenInputBuilder
impl Clone for CreateAccessTokenInputBuilder
source§fn clone(&self) -> CreateAccessTokenInputBuilder
fn clone(&self) -> CreateAccessTokenInputBuilder
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 Default for CreateAccessTokenInputBuilder
impl Default for CreateAccessTokenInputBuilder
source§fn default() -> CreateAccessTokenInputBuilder
fn default() -> CreateAccessTokenInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateAccessTokenInputBuilder
impl PartialEq for CreateAccessTokenInputBuilder
source§fn eq(&self, other: &CreateAccessTokenInputBuilder) -> bool
fn eq(&self, other: &CreateAccessTokenInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAccessTokenInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateAccessTokenInputBuilder
impl Send for CreateAccessTokenInputBuilder
impl Sync for CreateAccessTokenInputBuilder
impl Unpin for CreateAccessTokenInputBuilder
impl UnwindSafe for CreateAccessTokenInputBuilder
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.