#[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 get_server_type(&self) -> &Option<ServerType>
pub fn get_server_type(&self) -> &Option<ServerType>
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 get_auth_type(&self) -> &Option<AuthType>
pub fn get_auth_type(&self) -> &Option<AuthType>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for SourceCredentialsInfoBuilder
impl PartialEq for SourceCredentialsInfoBuilder
source§fn eq(&self, other: &SourceCredentialsInfoBuilder) -> bool
fn eq(&self, other: &SourceCredentialsInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.