Struct aws_sdk_codecatalyst::operation::create_access_token::builders::CreateAccessTokenOutputBuilder
source · #[non_exhaustive]pub struct CreateAccessTokenOutputBuilder { /* private fields */ }
Expand description
A builder for CreateAccessTokenOutput
.
Implementations§
source§impl CreateAccessTokenOutputBuilder
impl CreateAccessTokenOutputBuilder
sourcepub fn secret(self, input: impl Into<String>) -> Self
pub fn secret(self, input: impl Into<String>) -> Self
The secret value of the personal access token.
This field is required.sourcepub fn set_secret(self, input: Option<String>) -> Self
pub fn set_secret(self, input: Option<String>) -> Self
The secret value of the personal access token.
sourcepub fn get_secret(&self) -> &Option<String>
pub fn get_secret(&self) -> &Option<String>
The secret value of the personal access token.
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. If not specified, the default is one year from creation.
This field is required.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. If not specified, the default is one year from creation.
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. If not specified, the default is one year from creation.
sourcepub fn access_token_id(self, input: impl Into<String>) -> Self
pub fn access_token_id(self, input: impl Into<String>) -> Self
The system-generated unique ID of the access token.
This field is required.sourcepub fn set_access_token_id(self, input: Option<String>) -> Self
pub fn set_access_token_id(self, input: Option<String>) -> Self
The system-generated unique ID of the access token.
sourcepub fn get_access_token_id(&self) -> &Option<String>
pub fn get_access_token_id(&self) -> &Option<String>
The system-generated unique ID of the access token.
sourcepub fn build(self) -> Result<CreateAccessTokenOutput, BuildError>
pub fn build(self) -> Result<CreateAccessTokenOutput, BuildError>
Consumes the builder and constructs a CreateAccessTokenOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateAccessTokenOutputBuilder
impl Clone for CreateAccessTokenOutputBuilder
source§fn clone(&self) -> CreateAccessTokenOutputBuilder
fn clone(&self) -> CreateAccessTokenOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateAccessTokenOutputBuilder
impl Default for CreateAccessTokenOutputBuilder
source§fn default() -> CreateAccessTokenOutputBuilder
fn default() -> CreateAccessTokenOutputBuilder
source§impl PartialEq for CreateAccessTokenOutputBuilder
impl PartialEq for CreateAccessTokenOutputBuilder
source§fn eq(&self, other: &CreateAccessTokenOutputBuilder) -> bool
fn eq(&self, other: &CreateAccessTokenOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.