Struct aws_sdk_appmesh::types::builders::VirtualServiceRefBuilder
source · #[non_exhaustive]pub struct VirtualServiceRefBuilder { /* private fields */ }
Expand description
A builder for VirtualServiceRef
.
Implementations§
source§impl VirtualServiceRefBuilder
impl VirtualServiceRefBuilder
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 mesh_owner(self, input: impl Into<String>) -> Self
pub fn mesh_owner(self, input: impl Into<String>) -> Self
The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
This field is required.sourcepub fn set_mesh_owner(self, input: Option<String>) -> Self
pub fn set_mesh_owner(self, input: Option<String>) -> Self
The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
sourcepub fn get_mesh_owner(&self) -> &Option<String>
pub fn get_mesh_owner(&self) -> &Option<String>
The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
sourcepub fn resource_owner(self, input: impl Into<String>) -> Self
pub fn resource_owner(self, input: impl Into<String>) -> Self
The Amazon Web Services IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with shared meshes.
This field is required.sourcepub fn set_resource_owner(self, input: Option<String>) -> Self
pub fn set_resource_owner(self, input: Option<String>) -> Self
The Amazon Web Services IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with shared meshes.
sourcepub fn get_resource_owner(&self) -> &Option<String>
pub fn get_resource_owner(&self) -> &Option<String>
The Amazon Web Services IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with shared meshes.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The full Amazon Resource Name (ARN) for the virtual service.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The full Amazon Resource Name (ARN) for the virtual service.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The full Amazon Resource Name (ARN) for the virtual service.
sourcepub fn version(self, input: i64) -> Self
pub fn version(self, input: i64) -> Self
The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
This field is required.sourcepub fn set_version(self, input: Option<i64>) -> Self
pub fn set_version(self, input: Option<i64>) -> Self
The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
sourcepub fn get_version(&self) -> &Option<i64>
pub fn get_version(&self) -> &Option<i64>
The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The Unix epoch timestamp in seconds for when the resource was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The Unix epoch timestamp in seconds for when the resource was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The Unix epoch timestamp in seconds for when the resource was created.
sourcepub fn last_updated_at(self, input: DateTime) -> Self
pub fn last_updated_at(self, input: DateTime) -> Self
The Unix epoch timestamp in seconds for when the resource was last updated.
This field is required.sourcepub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
The Unix epoch timestamp in seconds for when the resource was last updated.
sourcepub fn get_last_updated_at(&self) -> &Option<DateTime>
pub fn get_last_updated_at(&self) -> &Option<DateTime>
The Unix epoch timestamp in seconds for when the resource was last updated.
sourcepub fn build(self) -> Result<VirtualServiceRef, BuildError>
pub fn build(self) -> Result<VirtualServiceRef, BuildError>
Consumes the builder and constructs a VirtualServiceRef
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualServiceRefBuilder
impl Clone for VirtualServiceRefBuilder
source§fn clone(&self) -> VirtualServiceRefBuilder
fn clone(&self) -> VirtualServiceRefBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualServiceRefBuilder
impl Debug for VirtualServiceRefBuilder
source§impl Default for VirtualServiceRefBuilder
impl Default for VirtualServiceRefBuilder
source§fn default() -> VirtualServiceRefBuilder
fn default() -> VirtualServiceRefBuilder
source§impl PartialEq for VirtualServiceRefBuilder
impl PartialEq for VirtualServiceRefBuilder
source§fn eq(&self, other: &VirtualServiceRefBuilder) -> bool
fn eq(&self, other: &VirtualServiceRefBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualServiceRefBuilder
Auto Trait Implementations§
impl Freeze for VirtualServiceRefBuilder
impl RefUnwindSafe for VirtualServiceRefBuilder
impl Send for VirtualServiceRefBuilder
impl Sync for VirtualServiceRefBuilder
impl Unpin for VirtualServiceRefBuilder
impl UnwindSafe for VirtualServiceRefBuilder
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