Struct openstack_sdk::api::load_balancer::v2::l7policy::create::L7policyBuilder
source · pub struct L7policyBuilder<'a> { /* private fields */ }Expand description
Builder for L7policy.
Implementations§
source§impl<'a> L7policyBuilder<'a>
impl<'a> L7policyBuilder<'a>
sourcepub fn action(&mut self, value: Action) -> &mut Self
pub fn action(&mut self, value: Action) -> &mut Self
The L7 policy action. One of REDIRECT_PREFIX, REDIRECT_TO_POOL,
REDIRECT_TO_URL, or REJECT.
sourcepub fn admin_state_up(&mut self, value: bool) -> &mut Self
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.
sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
A human-readable description for the resource.
sourcepub fn listener_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn listener_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the listener.
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Human-readable name of the resource.
sourcepub fn position(&mut self, value: i32) -> &mut Self
pub fn position(&mut self, value: i32) -> &mut Self
The position of this policy on the listener. Positions start at 1.
sourcepub fn project_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn project_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the project owning this resource.
sourcepub fn redirect_http_code(&mut self, value: i32) -> &mut Self
pub fn redirect_http_code(&mut self, value: i32) -> &mut Self
Requests matching this policy will be redirected to the specified URL
or Prefix URL with the HTTP response code. Valid if action is
REDIRECT_TO_URL or REDIRECT_PREFIX. Valid options are: 301, 302,
303, 307, or 308. Default is 302.
New in version 2.9
sourcepub fn redirect_pool_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_pool_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Requests matching this policy will be redirected to the pool with this
ID. Only valid if action is REDIRECT_TO_POOL. The pool has some
restrictions, See
Protocol Combinations (Listener/Pool).
sourcepub fn redirect_prefix<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_prefix<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Requests matching this policy will be redirected to this Prefix URL.
Only valid if action is REDIRECT_PREFIX.
sourcepub fn redirect_url<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn redirect_url<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Requests matching this policy will be redirected to this URL. Only
valid if action is REDIRECT_TO_URL.
pub fn rules<VALUE: Into<Vec<Rules<'a>>>>(&mut self, value: VALUE) -> &mut Self
pub fn tenant_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
source§impl<'a> Clone for L7policyBuilder<'a>
impl<'a> Clone for L7policyBuilder<'a>
source§fn clone(&self) -> L7policyBuilder<'a>
fn clone(&self) -> L7policyBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for L7policyBuilder<'a>
impl<'a> RefUnwindSafe for L7policyBuilder<'a>
impl<'a> Send for L7policyBuilder<'a>
impl<'a> Sync for L7policyBuilder<'a>
impl<'a> Unpin for L7policyBuilder<'a>
impl<'a> UnwindSafe for L7policyBuilder<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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