Struct aws_sdk_shield::model::contributor::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for Contributor
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
sourcepub fn value(self, input: i64) -> Self
pub fn value(self, input: i64) -> Self
The contribution of this contributor expressed in Protection
units. For example 10,000
.
sourcepub fn set_value(self, input: Option<i64>) -> Self
pub fn set_value(self, input: Option<i64>) -> Self
The contribution of this contributor expressed in Protection
units. For example 10,000
.
sourcepub fn build(self) -> Contributor
pub fn build(self) -> Contributor
Consumes the builder and constructs a Contributor
.