#[non_exhaustive]pub struct AwsEcsServiceServiceRegistriesDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEcsServiceServiceRegistriesDetails
.
Implementations§
source§impl AwsEcsServiceServiceRegistriesDetailsBuilder
impl AwsEcsServiceServiceRegistriesDetailsBuilder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
The container name value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn container_port(self, input: i32) -> Self
pub fn container_port(self, input: i32) -> Self
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn set_container_port(self, input: Option<i32>) -> Self
pub fn set_container_port(self, input: Option<i32>) -> Self
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn get_container_port(&self) -> &Option<i32>
pub fn get_container_port(&self) -> &Option<i32>
The port value to use for the service discovery service.
If the task definition uses the bridge
or host
network mode, you must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type SRV DNS record, you must specify either ContainerName
and ContainerPort
, or Port
, but not both.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port value to use for a service discovery service that specifies an SRV record. This field can be used if both the awsvpc
awsvpc network mode and SRV records are used.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port value to use for a service discovery service that specifies an SRV record. This field can be used if both the awsvpc
awsvpc network mode and SRV records are used.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The port value to use for a service discovery service that specifies an SRV record. This field can be used if both the awsvpc
awsvpc network mode and SRV records are used.
sourcepub fn registry_arn(self, input: impl Into<String>) -> Self
pub fn registry_arn(self, input: impl Into<String>) -> Self
The ARN of the service registry.
sourcepub fn set_registry_arn(self, input: Option<String>) -> Self
pub fn set_registry_arn(self, input: Option<String>) -> Self
The ARN of the service registry.
sourcepub fn get_registry_arn(&self) -> &Option<String>
pub fn get_registry_arn(&self) -> &Option<String>
The ARN of the service registry.
sourcepub fn build(self) -> AwsEcsServiceServiceRegistriesDetails
pub fn build(self) -> AwsEcsServiceServiceRegistriesDetails
Consumes the builder and constructs a AwsEcsServiceServiceRegistriesDetails
.
Trait Implementations§
source§impl Clone for AwsEcsServiceServiceRegistriesDetailsBuilder
impl Clone for AwsEcsServiceServiceRegistriesDetailsBuilder
source§fn clone(&self) -> AwsEcsServiceServiceRegistriesDetailsBuilder
fn clone(&self) -> AwsEcsServiceServiceRegistriesDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEcsServiceServiceRegistriesDetailsBuilder
impl Default for AwsEcsServiceServiceRegistriesDetailsBuilder
source§fn default() -> AwsEcsServiceServiceRegistriesDetailsBuilder
fn default() -> AwsEcsServiceServiceRegistriesDetailsBuilder
source§impl PartialEq for AwsEcsServiceServiceRegistriesDetailsBuilder
impl PartialEq for AwsEcsServiceServiceRegistriesDetailsBuilder
source§fn eq(&self, other: &AwsEcsServiceServiceRegistriesDetailsBuilder) -> bool
fn eq(&self, other: &AwsEcsServiceServiceRegistriesDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.