Struct pulumi_wasm_docker::ContainerPortBuilder
source · pub struct ContainerPortBuilder<___State = __ContainerPortBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__External, __Internal, __Ip, __Protocol> ContainerPortBuilder<(__External, __Internal, __Ip, __Protocol)>
impl<__External, __Internal, __Ip, __Protocol> ContainerPortBuilder<(__External, __Internal, __Ip, __Protocol)>
sourcepub fn build_struct(self) -> ContainerPort
pub fn build_struct(self) -> ContainerPort
Finishes building and returns the requested object.
sourcepub fn maybe_external(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Externalwhere
__External: IsUnset,
pub fn maybe_external(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Externalwhere
__External: IsUnset,
Same as [Self::r#external
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn external(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Externalwhere
__External: IsUnset,
pub fn external(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Externalwhere
__External: IsUnset,
Port exposed out of the container. If not given a free random port >= 32768
will be used.
sourcepub fn internal(
self,
value: impl Into<Box<i32>>,
) -> <Self as __ContainerPortBuilderSetMember>::Internalwhere
__Internal: IsUnset,
pub fn internal(
self,
value: impl Into<Box<i32>>,
) -> <Self as __ContainerPortBuilderSetMember>::Internalwhere
__Internal: IsUnset,
Port within the container.
sourcepub fn maybe_ip(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Ipwhere
__Ip: IsUnset,
pub fn maybe_ip(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Ipwhere
__Ip: IsUnset,
Same as [Self::r#ip
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ip(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Ipwhere
__Ip: IsUnset,
pub fn ip(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerPortBuilderSetMember>::Ipwhere
__Ip: IsUnset,
IP address/mask that can access this port. Defaults to 0.0.0.0
.
Auto Trait Implementations§
impl<___State> Freeze for ContainerPortBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ContainerPortBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ContainerPortBuilder<___State>where
___State: Send,
impl<___State> Sync for ContainerPortBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ContainerPortBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ContainerPortBuilder<___State>where
___State: UnwindSafe,
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
Mutably borrows from an owned value. Read more