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 ==
.