Struct aws_sdk_codebuild::operation::import_source_credentials::builders::ImportSourceCredentialsInputBuilder
source · #[non_exhaustive]pub struct ImportSourceCredentialsInputBuilder { /* private fields */ }
Expand description
A builder for ImportSourceCredentialsInput
.
Implementations§
source§impl ImportSourceCredentialsInputBuilder
impl ImportSourceCredentialsInputBuilder
sourcepub fn username(self, input: impl Into<String>) -> Self
pub fn username(self, input: impl Into<String>) -> Self
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
sourcepub fn set_username(self, input: Option<String>) -> Self
pub fn set_username(self, input: Option<String>) -> Self
The Bitbucket username when the authType
is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
sourcepub fn server_type(self, input: ServerType) -> Self
pub fn server_type(self, input: ServerType) -> Self
The source provider used for this project.
sourcepub fn set_server_type(self, input: Option<ServerType>) -> Self
pub fn set_server_type(self, input: Option<ServerType>) -> Self
The source provider used for this project.
sourcepub fn auth_type(self, input: AuthType) -> Self
pub fn auth_type(self, input: AuthType) -> Self
The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
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 to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
sourcepub fn should_overwrite(self, input: bool) -> Self
pub fn should_overwrite(self, input: bool) -> Self
Set to false
to prevent overwriting the repository source credentials. Set to true
to overwrite the repository source credentials. The default value is true
.
sourcepub fn set_should_overwrite(self, input: Option<bool>) -> Self
pub fn set_should_overwrite(self, input: Option<bool>) -> Self
Set to false
to prevent overwriting the repository source credentials. Set to true
to overwrite the repository source credentials. The default value is true
.
sourcepub fn build(self) -> Result<ImportSourceCredentialsInput, BuildError>
pub fn build(self) -> Result<ImportSourceCredentialsInput, BuildError>
Consumes the builder and constructs a ImportSourceCredentialsInput
.
Trait Implementations§
source§impl Clone for ImportSourceCredentialsInputBuilder
impl Clone for ImportSourceCredentialsInputBuilder
source§fn clone(&self) -> ImportSourceCredentialsInputBuilder
fn clone(&self) -> ImportSourceCredentialsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ImportSourceCredentialsInputBuilder
impl Default for ImportSourceCredentialsInputBuilder
source§fn default() -> ImportSourceCredentialsInputBuilder
fn default() -> ImportSourceCredentialsInputBuilder
source§impl PartialEq<ImportSourceCredentialsInputBuilder> for ImportSourceCredentialsInputBuilder
impl PartialEq<ImportSourceCredentialsInputBuilder> for ImportSourceCredentialsInputBuilder
source§fn eq(&self, other: &ImportSourceCredentialsInputBuilder) -> bool
fn eq(&self, other: &ImportSourceCredentialsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.