#[non_exhaustive]pub struct PolicyAttributeTypeDescriptionBuilder { /* private fields */ }Expand description
A builder for PolicyAttributeTypeDescription.
Implementations§
source§impl PolicyAttributeTypeDescriptionBuilder
impl PolicyAttributeTypeDescriptionBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of the attribute.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of the attribute.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of the attribute.
sourcepub fn attribute_type(self, input: impl Into<String>) -> Self
pub fn attribute_type(self, input: impl Into<String>) -> Self
The type of the attribute. For example, Boolean or Integer.
sourcepub fn set_attribute_type(self, input: Option<String>) -> Self
pub fn set_attribute_type(self, input: Option<String>) -> Self
The type of the attribute. For example, Boolean or Integer.
sourcepub fn get_attribute_type(&self) -> &Option<String>
pub fn get_attribute_type(&self) -> &Option<String>
The type of the attribute. For example, Boolean or Integer.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the attribute.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the attribute.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the attribute.
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The default value of the attribute, if applicable.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The default value of the attribute, if applicable.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The default value of the attribute, if applicable.
sourcepub fn cardinality(self, input: impl Into<String>) -> Self
pub fn cardinality(self, input: impl Into<String>) -> Self
The cardinality of the attribute.
Valid values:
-
ONE(1) : Single value required
-
ZERO_OR_ONE(0..1) : Up to one value is allowed
-
ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
-
ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
sourcepub fn set_cardinality(self, input: Option<String>) -> Self
pub fn set_cardinality(self, input: Option<String>) -> Self
The cardinality of the attribute.
Valid values:
-
ONE(1) : Single value required
-
ZERO_OR_ONE(0..1) : Up to one value is allowed
-
ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
-
ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
sourcepub fn get_cardinality(&self) -> &Option<String>
pub fn get_cardinality(&self) -> &Option<String>
The cardinality of the attribute.
Valid values:
-
ONE(1) : Single value required
-
ZERO_OR_ONE(0..1) : Up to one value is allowed
-
ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
-
ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
sourcepub fn build(self) -> PolicyAttributeTypeDescription
pub fn build(self) -> PolicyAttributeTypeDescription
Consumes the builder and constructs a PolicyAttributeTypeDescription.
Trait Implementations§
source§impl Clone for PolicyAttributeTypeDescriptionBuilder
impl Clone for PolicyAttributeTypeDescriptionBuilder
source§fn clone(&self) -> PolicyAttributeTypeDescriptionBuilder
fn clone(&self) -> PolicyAttributeTypeDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PolicyAttributeTypeDescriptionBuilder
impl Default for PolicyAttributeTypeDescriptionBuilder
source§fn default() -> PolicyAttributeTypeDescriptionBuilder
fn default() -> PolicyAttributeTypeDescriptionBuilder
source§impl PartialEq for PolicyAttributeTypeDescriptionBuilder
impl PartialEq for PolicyAttributeTypeDescriptionBuilder
source§fn eq(&self, other: &PolicyAttributeTypeDescriptionBuilder) -> bool
fn eq(&self, other: &PolicyAttributeTypeDescriptionBuilder) -> bool
self and other values to be equal, and is used
by ==.