#[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 ==
.impl StructuralPartialEq for PolicyAttributeTypeDescriptionBuilder
Auto Trait Implementations§
impl Freeze for PolicyAttributeTypeDescriptionBuilder
impl RefUnwindSafe for PolicyAttributeTypeDescriptionBuilder
impl Send for PolicyAttributeTypeDescriptionBuilder
impl Sync for PolicyAttributeTypeDescriptionBuilder
impl Unpin for PolicyAttributeTypeDescriptionBuilder
impl UnwindSafe for PolicyAttributeTypeDescriptionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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