#[non_exhaustive]pub struct UpdateGrokClassifierRequestBuilder { /* private fields */ }
Expand description
A builder for UpdateGrokClassifierRequest
.
Implementations§
source§impl UpdateGrokClassifierRequestBuilder
impl UpdateGrokClassifierRequestBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the GrokClassifier
.
sourcepub fn classification(self, input: impl Into<String>) -> Self
pub fn classification(self, input: impl Into<String>) -> Self
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
sourcepub fn set_classification(self, input: Option<String>) -> Self
pub fn set_classification(self, input: Option<String>) -> Self
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
sourcepub fn get_classification(&self) -> &Option<String>
pub fn get_classification(&self) -> &Option<String>
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
sourcepub fn grok_pattern(self, input: impl Into<String>) -> Self
pub fn grok_pattern(self, input: impl Into<String>) -> Self
The grok pattern used by this classifier.
sourcepub fn set_grok_pattern(self, input: Option<String>) -> Self
pub fn set_grok_pattern(self, input: Option<String>) -> Self
The grok pattern used by this classifier.
sourcepub fn get_grok_pattern(&self) -> &Option<String>
pub fn get_grok_pattern(&self) -> &Option<String>
The grok pattern used by this classifier.
sourcepub fn custom_patterns(self, input: impl Into<String>) -> Self
pub fn custom_patterns(self, input: impl Into<String>) -> Self
Optional custom grok patterns used by this classifier.
sourcepub fn set_custom_patterns(self, input: Option<String>) -> Self
pub fn set_custom_patterns(self, input: Option<String>) -> Self
Optional custom grok patterns used by this classifier.
sourcepub fn get_custom_patterns(&self) -> &Option<String>
pub fn get_custom_patterns(&self) -> &Option<String>
Optional custom grok patterns used by this classifier.
sourcepub fn build(self) -> Result<UpdateGrokClassifierRequest, BuildError>
pub fn build(self) -> Result<UpdateGrokClassifierRequest, BuildError>
Consumes the builder and constructs a UpdateGrokClassifierRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateGrokClassifierRequestBuilder
impl Clone for UpdateGrokClassifierRequestBuilder
source§fn clone(&self) -> UpdateGrokClassifierRequestBuilder
fn clone(&self) -> UpdateGrokClassifierRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateGrokClassifierRequestBuilder
impl Default for UpdateGrokClassifierRequestBuilder
source§fn default() -> UpdateGrokClassifierRequestBuilder
fn default() -> UpdateGrokClassifierRequestBuilder
source§impl PartialEq for UpdateGrokClassifierRequestBuilder
impl PartialEq for UpdateGrokClassifierRequestBuilder
source§fn eq(&self, other: &UpdateGrokClassifierRequestBuilder) -> bool
fn eq(&self, other: &UpdateGrokClassifierRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateGrokClassifierRequestBuilder
Auto Trait Implementations§
impl Freeze for UpdateGrokClassifierRequestBuilder
impl RefUnwindSafe for UpdateGrokClassifierRequestBuilder
impl Send for UpdateGrokClassifierRequestBuilder
impl Sync for UpdateGrokClassifierRequestBuilder
impl Unpin for UpdateGrokClassifierRequestBuilder
impl UnwindSafe for UpdateGrokClassifierRequestBuilder
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> 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