Struct aws_sdk_codebuild::types::builders::BatchRestrictionsBuilder
source · #[non_exhaustive]pub struct BatchRestrictionsBuilder { /* private fields */ }
Expand description
A builder for BatchRestrictions
.
Implementations§
source§impl BatchRestrictionsBuilder
impl BatchRestrictionsBuilder
sourcepub fn maximum_builds_allowed(self, input: i32) -> Self
pub fn maximum_builds_allowed(self, input: i32) -> Self
Specifies the maximum number of builds allowed.
sourcepub fn set_maximum_builds_allowed(self, input: Option<i32>) -> Self
pub fn set_maximum_builds_allowed(self, input: Option<i32>) -> Self
Specifies the maximum number of builds allowed.
sourcepub fn get_maximum_builds_allowed(&self) -> &Option<i32>
pub fn get_maximum_builds_allowed(&self) -> &Option<i32>
Specifies the maximum number of builds allowed.
sourcepub fn compute_types_allowed(self, input: impl Into<String>) -> Self
pub fn compute_types_allowed(self, input: impl Into<String>) -> Self
Appends an item to compute_types_allowed
.
To override the contents of this collection use set_compute_types_allowed
.
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
sourcepub fn set_compute_types_allowed(self, input: Option<Vec<String>>) -> Self
pub fn set_compute_types_allowed(self, input: Option<Vec<String>>) -> Self
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
sourcepub fn get_compute_types_allowed(&self) -> &Option<Vec<String>>
pub fn get_compute_types_allowed(&self) -> &Option<Vec<String>>
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
sourcepub fn build(self) -> BatchRestrictions
pub fn build(self) -> BatchRestrictions
Consumes the builder and constructs a BatchRestrictions
.
Trait Implementations§
source§impl Clone for BatchRestrictionsBuilder
impl Clone for BatchRestrictionsBuilder
source§fn clone(&self) -> BatchRestrictionsBuilder
fn clone(&self) -> BatchRestrictionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchRestrictionsBuilder
impl Debug for BatchRestrictionsBuilder
source§impl Default for BatchRestrictionsBuilder
impl Default for BatchRestrictionsBuilder
source§fn default() -> BatchRestrictionsBuilder
fn default() -> BatchRestrictionsBuilder
source§impl PartialEq for BatchRestrictionsBuilder
impl PartialEq for BatchRestrictionsBuilder
source§fn eq(&self, other: &BatchRestrictionsBuilder) -> bool
fn eq(&self, other: &BatchRestrictionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.