Struct aws_sdk_appmesh::types::builders::VirtualNodeDataBuilder
source · #[non_exhaustive]pub struct VirtualNodeDataBuilder { /* private fields */ }
Expand description
A builder for VirtualNodeData
.
Implementations§
source§impl VirtualNodeDataBuilder
impl VirtualNodeDataBuilder
sourcepub fn mesh_name(self, input: impl Into<String>) -> Self
pub fn mesh_name(self, input: impl Into<String>) -> Self
The name of the service mesh that the virtual node resides in.
This field is required.sourcepub fn set_mesh_name(self, input: Option<String>) -> Self
pub fn set_mesh_name(self, input: Option<String>) -> Self
The name of the service mesh that the virtual node resides in.
sourcepub fn get_mesh_name(&self) -> &Option<String>
pub fn get_mesh_name(&self) -> &Option<String>
The name of the service mesh that the virtual node resides in.
sourcepub fn virtual_node_name(self, input: impl Into<String>) -> Self
pub fn virtual_node_name(self, input: impl Into<String>) -> Self
The name of the virtual node.
This field is required.sourcepub fn set_virtual_node_name(self, input: Option<String>) -> Self
pub fn set_virtual_node_name(self, input: Option<String>) -> Self
The name of the virtual node.
sourcepub fn get_virtual_node_name(&self) -> &Option<String>
pub fn get_virtual_node_name(&self) -> &Option<String>
The name of the virtual node.
sourcepub fn spec(self, input: VirtualNodeSpec) -> Self
pub fn spec(self, input: VirtualNodeSpec) -> Self
The specifications of the virtual node.
This field is required.sourcepub fn set_spec(self, input: Option<VirtualNodeSpec>) -> Self
pub fn set_spec(self, input: Option<VirtualNodeSpec>) -> Self
The specifications of the virtual node.
sourcepub fn get_spec(&self) -> &Option<VirtualNodeSpec>
pub fn get_spec(&self) -> &Option<VirtualNodeSpec>
The specifications of the virtual node.
sourcepub fn metadata(self, input: ResourceMetadata) -> Self
pub fn metadata(self, input: ResourceMetadata) -> Self
The associated metadata for the virtual node.
This field is required.sourcepub fn set_metadata(self, input: Option<ResourceMetadata>) -> Self
pub fn set_metadata(self, input: Option<ResourceMetadata>) -> Self
The associated metadata for the virtual node.
sourcepub fn get_metadata(&self) -> &Option<ResourceMetadata>
pub fn get_metadata(&self) -> &Option<ResourceMetadata>
The associated metadata for the virtual node.
sourcepub fn status(self, input: VirtualNodeStatus) -> Self
pub fn status(self, input: VirtualNodeStatus) -> Self
The current status for the virtual node.
This field is required.sourcepub fn set_status(self, input: Option<VirtualNodeStatus>) -> Self
pub fn set_status(self, input: Option<VirtualNodeStatus>) -> Self
The current status for the virtual node.
sourcepub fn get_status(&self) -> &Option<VirtualNodeStatus>
pub fn get_status(&self) -> &Option<VirtualNodeStatus>
The current status for the virtual node.
sourcepub fn build(self) -> Result<VirtualNodeData, BuildError>
pub fn build(self) -> Result<VirtualNodeData, BuildError>
Consumes the builder and constructs a VirtualNodeData
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualNodeDataBuilder
impl Clone for VirtualNodeDataBuilder
source§fn clone(&self) -> VirtualNodeDataBuilder
fn clone(&self) -> VirtualNodeDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualNodeDataBuilder
impl Debug for VirtualNodeDataBuilder
source§impl Default for VirtualNodeDataBuilder
impl Default for VirtualNodeDataBuilder
source§fn default() -> VirtualNodeDataBuilder
fn default() -> VirtualNodeDataBuilder
source§impl PartialEq for VirtualNodeDataBuilder
impl PartialEq for VirtualNodeDataBuilder
source§fn eq(&self, other: &VirtualNodeDataBuilder) -> bool
fn eq(&self, other: &VirtualNodeDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualNodeDataBuilder
Auto Trait Implementations§
impl Freeze for VirtualNodeDataBuilder
impl RefUnwindSafe for VirtualNodeDataBuilder
impl Send for VirtualNodeDataBuilder
impl Sync for VirtualNodeDataBuilder
impl Unpin for VirtualNodeDataBuilder
impl UnwindSafe for VirtualNodeDataBuilder
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