openstack_sdk::api::load_balancer::v2::pool::set

Struct PoolBuilder

source
pub struct PoolBuilder<'a> { /* private fields */ }
Expand description

Builder for Pool.

Implementations§

source§

impl<'a> PoolBuilder<'a>

source

pub fn admin_state_up(&mut self, value: bool) -> &mut Self

The administrative state of the resource, which is up (true) or down (false). Default is true.

source

pub fn alpn_protocols<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self

A list of ALPN protocols. Available protocols: http/1.0, http/1.1, h2

New in version 2.24

source

pub fn ca_tls_container_ref<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

The reference of the key manager service secret containing a PEM format CA certificate bundle for tls_enabled pools.

New in version 2.8

source

pub fn crl_container_ref<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

The reference of the key manager service secret containing a PEM format CA revocation list file for tls_enabled pools.

source

pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

A human-readable description for the resource.

source

pub fn lb_algorithm(&mut self, value: LbAlgorithm) -> &mut Self

The load balancing algorithm for the pool. One of LEAST_CONNECTIONS, ROUND_ROBIN, or SOURCE_IP.

source

pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self

Human-readable name of the resource.

source

pub fn session_persistence<VALUE: Into<SessionPersistence<'a>>>( &mut self, value: VALUE, ) -> &mut Self

A JSON object specifying the session persistence for the pool or null for no session persistence. See Pool Session Persistence. Default is null.

source

pub fn tags<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self

A list of simple strings assigned to the resource.

New in version 2.5

source

pub fn tls_ciphers<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

List of ciphers in OpenSSL format (colon-separated). See https://www.openssl.org/docs/man1.1.1/man1/ciphers.html

New in version 2.15

source

pub fn tls_container_ref<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

The reference to the key manager service secret containing a PKCS12 format certificate/key bundle for tls_enabled pools for TLS client authentication to the member servers.

New in version 2.8

source

pub fn tls_enabled(&mut self, value: bool) -> &mut Self

When true connections to backend member servers will use TLS encryption. Default is false.

New in version 2.8

source

pub fn tls_versions<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self

A list of TLS protocol versions. Available versions: SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3

New in version 2.17

source

pub fn build(&self) -> Result<Pool<'a>, PoolBuilderError>

Builds a new Pool.

§Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<'a> Clone for PoolBuilder<'a>

source§

fn clone(&self) -> PoolBuilder<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Default for PoolBuilder<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for PoolBuilder<'a>

§

impl<'a> RefUnwindSafe for PoolBuilder<'a>

§

impl<'a> Send for PoolBuilder<'a>

§

impl<'a> Sync for PoolBuilder<'a>

§

impl<'a> Unpin for PoolBuilder<'a>

§

impl<'a> UnwindSafe for PoolBuilder<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more