#[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.
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 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 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 build(self) -> CreateGrokClassifierRequest
pub fn build(self) -> CreateGrokClassifierRequest
Consumes the builder and constructs a CreateGrokClassifierRequest.
Trait Implementations§
source§impl Clone for CreateGrokClassifierRequestBuilder
impl Clone for CreateGrokClassifierRequestBuilder
source§fn clone(&self) -> CreateGrokClassifierRequestBuilder
fn clone(&self) -> CreateGrokClassifierRequestBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for CreateGrokClassifierRequestBuilder
impl Default for CreateGrokClassifierRequestBuilder
source§fn default() -> CreateGrokClassifierRequestBuilder
fn default() -> CreateGrokClassifierRequestBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateGrokClassifierRequestBuilder> for CreateGrokClassifierRequestBuilder
impl PartialEq<CreateGrokClassifierRequestBuilder> for CreateGrokClassifierRequestBuilder
source§fn eq(&self, other: &CreateGrokClassifierRequestBuilder) -> bool
fn eq(&self, other: &CreateGrokClassifierRequestBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.