pub struct Builder { /* private fields */ }
Expand description
A builder for CreateAccessTokenOutput
.
Implementations§
source§impl Builder
impl Builder
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.
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 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. If not specified, the default is one year from creation.
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 build(self) -> CreateAccessTokenOutput
pub fn build(self) -> CreateAccessTokenOutput
Consumes the builder and constructs a CreateAccessTokenOutput
.