Struct aws_sdk_appmesh::types::builders::VirtualServiceDataBuilder
source · #[non_exhaustive]pub struct VirtualServiceDataBuilder { /* private fields */ }Expand description
A builder for VirtualServiceData.
Implementations§
source§impl VirtualServiceDataBuilder
impl VirtualServiceDataBuilder
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 service 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 service 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 service resides in.
sourcepub fn virtual_service_name(self, input: impl Into<String>) -> Self
pub fn virtual_service_name(self, input: impl Into<String>) -> Self
The name of the virtual service.
This field is required.sourcepub fn set_virtual_service_name(self, input: Option<String>) -> Self
pub fn set_virtual_service_name(self, input: Option<String>) -> Self
The name of the virtual service.
sourcepub fn get_virtual_service_name(&self) -> &Option<String>
pub fn get_virtual_service_name(&self) -> &Option<String>
The name of the virtual service.
sourcepub fn spec(self, input: VirtualServiceSpec) -> Self
pub fn spec(self, input: VirtualServiceSpec) -> Self
The specifications of the virtual service.
This field is required.sourcepub fn set_spec(self, input: Option<VirtualServiceSpec>) -> Self
pub fn set_spec(self, input: Option<VirtualServiceSpec>) -> Self
The specifications of the virtual service.
sourcepub fn get_spec(&self) -> &Option<VirtualServiceSpec>
pub fn get_spec(&self) -> &Option<VirtualServiceSpec>
The specifications of the virtual service.
sourcepub fn metadata(self, input: ResourceMetadata) -> Self
pub fn metadata(self, input: ResourceMetadata) -> Self
An object that represents metadata for a resource.
This field is required.sourcepub fn set_metadata(self, input: Option<ResourceMetadata>) -> Self
pub fn set_metadata(self, input: Option<ResourceMetadata>) -> Self
An object that represents metadata for a resource.
sourcepub fn get_metadata(&self) -> &Option<ResourceMetadata>
pub fn get_metadata(&self) -> &Option<ResourceMetadata>
An object that represents metadata for a resource.
sourcepub fn status(self, input: VirtualServiceStatus) -> Self
pub fn status(self, input: VirtualServiceStatus) -> Self
The current status of the virtual service.
This field is required.sourcepub fn set_status(self, input: Option<VirtualServiceStatus>) -> Self
pub fn set_status(self, input: Option<VirtualServiceStatus>) -> Self
The current status of the virtual service.
sourcepub fn get_status(&self) -> &Option<VirtualServiceStatus>
pub fn get_status(&self) -> &Option<VirtualServiceStatus>
The current status of the virtual service.
sourcepub fn build(self) -> Result<VirtualServiceData, BuildError>
pub fn build(self) -> Result<VirtualServiceData, BuildError>
Consumes the builder and constructs a VirtualServiceData.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualServiceDataBuilder
impl Clone for VirtualServiceDataBuilder
source§fn clone(&self) -> VirtualServiceDataBuilder
fn clone(&self) -> VirtualServiceDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VirtualServiceDataBuilder
impl Debug for VirtualServiceDataBuilder
source§impl Default for VirtualServiceDataBuilder
impl Default for VirtualServiceDataBuilder
source§fn default() -> VirtualServiceDataBuilder
fn default() -> VirtualServiceDataBuilder
impl StructuralPartialEq for VirtualServiceDataBuilder
Auto Trait Implementations§
impl Freeze for VirtualServiceDataBuilder
impl RefUnwindSafe for VirtualServiceDataBuilder
impl Send for VirtualServiceDataBuilder
impl Sync for VirtualServiceDataBuilder
impl Unpin for VirtualServiceDataBuilder
impl UnwindSafe for VirtualServiceDataBuilder
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