pub struct Builder { /* private fields */ }
Expand description
A builder for CreateAccessTokenInput
.
Implementations§
source§impl Builder
impl Builder
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.
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 build(self) -> Result<CreateAccessTokenInput, BuildError>
pub fn build(self) -> Result<CreateAccessTokenInput, BuildError>
Consumes the builder and constructs a CreateAccessTokenInput
.