pub struct ServiceEndpointSpecPortBuilder<___State = __ServiceEndpointSpecPortBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Name, __Protocol, __PublishMode, __PublishedPort, __TargetPort> ServiceEndpointSpecPortBuilder<(__Name, __Protocol, __PublishMode, __PublishedPort, __TargetPort)>
impl<__Name, __Protocol, __PublishMode, __PublishedPort, __TargetPort> ServiceEndpointSpecPortBuilder<(__Name, __Protocol, __PublishMode, __PublishedPort, __TargetPort)>
sourcepub fn build_struct(self) -> ServiceEndpointSpecPortwhere
__Name: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__name>,
__Protocol: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__protocol>,
__PublishMode: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__publish_mode>,
__PublishedPort: IntoSet<Option<Box<Option<i32>>>, ServiceEndpointSpecPortBuilder__published_port>,
__TargetPort: IntoSet<Box<i32>, ServiceEndpointSpecPortBuilder__target_port>,
pub fn build_struct(self) -> ServiceEndpointSpecPortwhere
__Name: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__name>,
__Protocol: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__protocol>,
__PublishMode: IntoSet<Option<Box<Option<String>>>, ServiceEndpointSpecPortBuilder__publish_mode>,
__PublishedPort: IntoSet<Option<Box<Option<i32>>>, ServiceEndpointSpecPortBuilder__published_port>,
__TargetPort: IntoSet<Box<i32>, ServiceEndpointSpecPortBuilder__target_port>,
Finishes building and returns the requested object.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Namewhere
__Name: IsUnset,
Same as [Self::r#name
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn name(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Namewhere
__Name: IsUnset,
pub fn name(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Namewhere
__Name: IsUnset,
A random name for the port
sourcepub fn maybe_protocol(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Protocolwhere
__Protocol: IsUnset,
pub fn maybe_protocol(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Protocolwhere
__Protocol: IsUnset,
Same as [Self::r#protocol
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn protocol(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Protocolwhere
__Protocol: IsUnset,
pub fn protocol(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::Protocolwhere
__Protocol: IsUnset,
Rrepresents the protocol of a port: tcp
, udp
or sctp
. Defaults to tcp
.
sourcepub fn maybe_publish_mode(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishModewhere
__PublishMode: IsUnset,
pub fn maybe_publish_mode(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishModewhere
__PublishMode: IsUnset,
Same as [Self::r#publish_mode
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn publish_mode(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishModewhere
__PublishMode: IsUnset,
pub fn publish_mode(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishModewhere
__PublishMode: IsUnset,
Represents the mode in which the port is to be published: ‘ingress’ or ‘host’. Defaults to ingress
.
sourcepub fn maybe_published_port(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishedPortwhere
__PublishedPort: IsUnset,
pub fn maybe_published_port(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishedPortwhere
__PublishedPort: IsUnset,
Same as [Self::r#published_port
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn published_port(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishedPortwhere
__PublishedPort: IsUnset,
pub fn published_port(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::PublishedPortwhere
__PublishedPort: IsUnset,
The port on the swarm hosts
sourcepub fn target_port(
self,
value: impl Into<Box<i32>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::TargetPortwhere
__TargetPort: IsUnset,
pub fn target_port(
self,
value: impl Into<Box<i32>>,
) -> <Self as __ServiceEndpointSpecPortBuilderSetMember>::TargetPortwhere
__TargetPort: IsUnset,
The port inside the container