Struct aws_sdk_glue::types::builders::GrokClassifierBuilder
source · #[non_exhaustive]pub struct GrokClassifierBuilder { /* private fields */ }Expand description
A builder for GrokClassifier.
Implementations§
source§impl GrokClassifierBuilder
impl GrokClassifierBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the classifier.
This field is required.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, 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, 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, and so on.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that this classifier was registered.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that this classifier was registered.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time that this classifier was registered.
sourcepub fn last_updated(self, input: DateTime) -> Self
pub fn last_updated(self, input: DateTime) -> Self
The time that this classifier was last updated.
sourcepub fn set_last_updated(self, input: Option<DateTime>) -> Self
pub fn set_last_updated(self, input: Option<DateTime>) -> Self
The time that this classifier was last updated.
sourcepub fn get_last_updated(&self) -> &Option<DateTime>
pub fn get_last_updated(&self) -> &Option<DateTime>
The time that this classifier was last updated.
sourcepub fn set_version(self, input: Option<i64>) -> Self
pub fn set_version(self, input: Option<i64>) -> Self
The version of this classifier.
sourcepub fn get_version(&self) -> &Option<i64>
pub fn get_version(&self) -> &Option<i64>
The version of this classifier.
sourcepub fn grok_pattern(self, input: impl Into<String>) -> Self
pub fn grok_pattern(self, input: impl Into<String>) -> Self
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
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 applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
sourcepub fn get_grok_pattern(&self) -> &Option<String>
pub fn get_grok_pattern(&self) -> &Option<String>
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
sourcepub fn custom_patterns(self, input: impl Into<String>) -> Self
pub fn custom_patterns(self, input: impl Into<String>) -> Self
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
sourcepub fn set_custom_patterns(self, input: Option<String>) -> Self
pub fn set_custom_patterns(self, input: Option<String>) -> Self
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
sourcepub fn get_custom_patterns(&self) -> &Option<String>
pub fn get_custom_patterns(&self) -> &Option<String>
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
sourcepub fn build(self) -> Result<GrokClassifier, BuildError>
pub fn build(self) -> Result<GrokClassifier, BuildError>
Consumes the builder and constructs a GrokClassifier.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GrokClassifierBuilder
impl Clone for GrokClassifierBuilder
source§fn clone(&self) -> GrokClassifierBuilder
fn clone(&self) -> GrokClassifierBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GrokClassifierBuilder
impl Debug for GrokClassifierBuilder
source§impl Default for GrokClassifierBuilder
impl Default for GrokClassifierBuilder
source§fn default() -> GrokClassifierBuilder
fn default() -> GrokClassifierBuilder
source§impl PartialEq for GrokClassifierBuilder
impl PartialEq for GrokClassifierBuilder
source§fn eq(&self, other: &GrokClassifierBuilder) -> bool
fn eq(&self, other: &GrokClassifierBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrokClassifierBuilder
Auto Trait Implementations§
impl Freeze for GrokClassifierBuilder
impl RefUnwindSafe for GrokClassifierBuilder
impl Send for GrokClassifierBuilder
impl Sync for GrokClassifierBuilder
impl Unpin for GrokClassifierBuilder
impl UnwindSafe for GrokClassifierBuilder
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