#[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, GITLAB, GITLAB_SELF_MANAGED, 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, GITLAB, GITLAB_SELF_MANAGED, 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, GITLAB, GITLAB_SELF_MANAGED, 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, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
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, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
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, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
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 ==
.impl StructuralPartialEq for SourceCredentialsInfoBuilder
Auto Trait Implementations§
impl Freeze for SourceCredentialsInfoBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more