#[non_exhaustive]pub struct CreateGrokClassifierRequestBuilder { /* private fields */ }
Expand description
A builder for CreateGrokClassifierRequest
.
Implementations§
source§impl CreateGrokClassifierRequestBuilder
impl CreateGrokClassifierRequestBuilder
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.
This field is required.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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the new classifier.
This field is required.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.
This field is required.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<CreateGrokClassifierRequest, BuildError>
pub fn build(self) -> Result<CreateGrokClassifierRequest, BuildError>
Consumes the builder and constructs a CreateGrokClassifierRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateGrokClassifierRequestBuilder
impl Clone for CreateGrokClassifierRequestBuilder
source§fn clone(&self) -> CreateGrokClassifierRequestBuilder
fn clone(&self) -> CreateGrokClassifierRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateGrokClassifierRequestBuilder
impl Default for CreateGrokClassifierRequestBuilder
source§fn default() -> CreateGrokClassifierRequestBuilder
fn default() -> CreateGrokClassifierRequestBuilder
source§impl PartialEq for CreateGrokClassifierRequestBuilder
impl PartialEq for CreateGrokClassifierRequestBuilder
source§fn eq(&self, other: &CreateGrokClassifierRequestBuilder) -> bool
fn eq(&self, other: &CreateGrokClassifierRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateGrokClassifierRequestBuilder
Auto Trait Implementations§
impl Freeze for CreateGrokClassifierRequestBuilder
impl RefUnwindSafe for CreateGrokClassifierRequestBuilder
impl Send for CreateGrokClassifierRequestBuilder
impl Sync for CreateGrokClassifierRequestBuilder
impl Unpin for CreateGrokClassifierRequestBuilder
impl UnwindSafe for CreateGrokClassifierRequestBuilder
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