Struct aws_sdk_codebuild::types::builders::SourceAuthBuilder
source · #[non_exhaustive]pub struct SourceAuthBuilder { /* private fields */ }
Expand description
A builder for SourceAuth
.
Implementations§
source§impl SourceAuthBuilder
impl SourceAuthBuilder
sourcepub fn type(self, input: SourceAuthType) -> Self
pub fn type(self, input: SourceAuthType) -> Self
This data type is deprecated and is no longer accurate or used.
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth authorization type.
sourcepub fn set_type(self, input: Option<SourceAuthType>) -> Self
pub fn set_type(self, input: Option<SourceAuthType>) -> Self
This data type is deprecated and is no longer accurate or used.
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth authorization type.
sourcepub fn get_type(&self) -> &Option<SourceAuthType>
pub fn get_type(&self) -> &Option<SourceAuthType>
This data type is deprecated and is no longer accurate or used.
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth authorization type.
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The resource value that applies to the specified authorization type.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The resource value that applies to the specified authorization type.
sourcepub fn get_resource(&self) -> &Option<String>
pub fn get_resource(&self) -> &Option<String>
The resource value that applies to the specified authorization type.
sourcepub fn build(self) -> Result<SourceAuth, BuildError>
pub fn build(self) -> Result<SourceAuth, BuildError>
Consumes the builder and constructs a SourceAuth
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceAuthBuilder
impl Clone for SourceAuthBuilder
source§fn clone(&self) -> SourceAuthBuilder
fn clone(&self) -> SourceAuthBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceAuthBuilder
impl Debug for SourceAuthBuilder
source§impl Default for SourceAuthBuilder
impl Default for SourceAuthBuilder
source§fn default() -> SourceAuthBuilder
fn default() -> SourceAuthBuilder
source§impl PartialEq for SourceAuthBuilder
impl PartialEq for SourceAuthBuilder
source§fn eq(&self, other: &SourceAuthBuilder) -> bool
fn eq(&self, other: &SourceAuthBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.