#[non_exhaustive]pub struct ScopeConfigurationBuilder { /* private fields */ }
Expand description
A builder for ScopeConfiguration
.
Implementations§
source§impl ScopeConfigurationBuilder
impl ScopeConfigurationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of either the enterprise or organization that will send webhook events to CodeBuild, depending on if the webhook is a global or organization webhook respectively.
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE
sourcepub fn get_domain(&self) -> &Option<String>
pub fn get_domain(&self) -> &Option<String>
The domain of the GitHub Enterprise organization. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE
sourcepub fn scope(self, input: WebhookScopeType) -> Self
pub fn scope(self, input: WebhookScopeType) -> Self
The type of scope for a GitHub webhook.
This field is required.sourcepub fn set_scope(self, input: Option<WebhookScopeType>) -> Self
pub fn set_scope(self, input: Option<WebhookScopeType>) -> Self
The type of scope for a GitHub webhook.
sourcepub fn get_scope(&self) -> &Option<WebhookScopeType>
pub fn get_scope(&self) -> &Option<WebhookScopeType>
The type of scope for a GitHub webhook.
sourcepub fn build(self) -> Result<ScopeConfiguration, BuildError>
pub fn build(self) -> Result<ScopeConfiguration, BuildError>
Consumes the builder and constructs a ScopeConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScopeConfigurationBuilder
impl Clone for ScopeConfigurationBuilder
source§fn clone(&self) -> ScopeConfigurationBuilder
fn clone(&self) -> ScopeConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScopeConfigurationBuilder
impl Debug for ScopeConfigurationBuilder
source§impl Default for ScopeConfigurationBuilder
impl Default for ScopeConfigurationBuilder
source§fn default() -> ScopeConfigurationBuilder
fn default() -> ScopeConfigurationBuilder
source§impl PartialEq for ScopeConfigurationBuilder
impl PartialEq for ScopeConfigurationBuilder
source§fn eq(&self, other: &ScopeConfigurationBuilder) -> bool
fn eq(&self, other: &ScopeConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScopeConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ScopeConfigurationBuilder
impl RefUnwindSafe for ScopeConfigurationBuilder
impl Send for ScopeConfigurationBuilder
impl Sync for ScopeConfigurationBuilder
impl Unpin for ScopeConfigurationBuilder
impl UnwindSafe for ScopeConfigurationBuilder
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> 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