#[non_exhaustive]pub struct SourceCredentialsInfoBuilder { /* private fields */ }
Expand description
A builder for SourceCredentialsInfo
.
Implementations§
source§impl SourceCredentialsInfoBuilder
impl SourceCredentialsInfoBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the token.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the token.
sourcepub fn server_type(self, input: ServerType) -> Self
pub fn server_type(self, input: ServerType) -> Self
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
sourcepub fn set_server_type(self, input: Option<ServerType>) -> Self
pub fn set_server_type(self, input: Option<ServerType>) -> Self
The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
sourcepub fn auth_type(self, input: AuthType) -> Self
pub fn auth_type(self, input: AuthType) -> Self
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
sourcepub fn set_auth_type(self, input: Option<AuthType>) -> Self
pub fn set_auth_type(self, input: Option<AuthType>) -> Self
The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
sourcepub fn build(self) -> SourceCredentialsInfo
pub fn build(self) -> SourceCredentialsInfo
Consumes the builder and constructs a SourceCredentialsInfo
.
Trait Implementations§
source§impl Clone for SourceCredentialsInfoBuilder
impl Clone for SourceCredentialsInfoBuilder
source§fn clone(&self) -> SourceCredentialsInfoBuilder
fn clone(&self) -> SourceCredentialsInfoBuilder
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 SourceCredentialsInfoBuilder
impl Debug for SourceCredentialsInfoBuilder
source§impl Default for SourceCredentialsInfoBuilder
impl Default for SourceCredentialsInfoBuilder
source§fn default() -> SourceCredentialsInfoBuilder
fn default() -> SourceCredentialsInfoBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<SourceCredentialsInfoBuilder> for SourceCredentialsInfoBuilder
impl PartialEq<SourceCredentialsInfoBuilder> for SourceCredentialsInfoBuilder
source§fn eq(&self, other: &SourceCredentialsInfoBuilder) -> bool
fn eq(&self, other: &SourceCredentialsInfoBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SourceCredentialsInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SourceCredentialsInfoBuilder
impl Send for SourceCredentialsInfoBuilder
impl Sync for SourceCredentialsInfoBuilder
impl Unpin for SourceCredentialsInfoBuilder
impl UnwindSafe for SourceCredentialsInfoBuilder
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