Struct aws_sdk_codecatalyst::types::builders::EventLogEntryBuilder
source · #[non_exhaustive]pub struct EventLogEntryBuilder { /* private fields */ }
Expand description
A builder for EventLogEntry
.
Implementations§
source§impl EventLogEntryBuilder
impl EventLogEntryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The system-generated unique ID of the event.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The system-generated unique ID of the event.
sourcepub fn event_name(self, input: impl Into<String>) -> Self
pub fn event_name(self, input: impl Into<String>) -> Self
The name of the event.
This field is required.sourcepub fn set_event_name(self, input: Option<String>) -> Self
pub fn set_event_name(self, input: Option<String>) -> Self
The name of the event.
sourcepub fn get_event_name(&self) -> &Option<String>
pub fn get_event_name(&self) -> &Option<String>
The name of the event.
sourcepub fn event_type(self, input: impl Into<String>) -> Self
pub fn event_type(self, input: impl Into<String>) -> Self
The type of the event.
This field is required.sourcepub fn set_event_type(self, input: Option<String>) -> Self
pub fn set_event_type(self, input: Option<String>) -> Self
The type of the event.
sourcepub fn get_event_type(&self) -> &Option<String>
pub fn get_event_type(&self) -> &Option<String>
The type of the event.
sourcepub fn event_category(self, input: impl Into<String>) -> Self
pub fn event_category(self, input: impl Into<String>) -> Self
The category for the event.
This field is required.sourcepub fn set_event_category(self, input: Option<String>) -> Self
pub fn set_event_category(self, input: Option<String>) -> Self
The category for the event.
sourcepub fn get_event_category(&self) -> &Option<String>
pub fn get_event_category(&self) -> &Option<String>
The category for the event.
sourcepub fn event_source(self, input: impl Into<String>) -> Self
pub fn event_source(self, input: impl Into<String>) -> Self
The source of the event.
This field is required.sourcepub fn set_event_source(self, input: Option<String>) -> Self
pub fn set_event_source(self, input: Option<String>) -> Self
The source of the event.
sourcepub fn get_event_source(&self) -> &Option<String>
pub fn get_event_source(&self) -> &Option<String>
The source of the event.
sourcepub fn event_time(self, input: DateTime) -> Self
pub fn event_time(self, input: DateTime) -> Self
The time the event took place, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
This field is required.sourcepub fn set_event_time(self, input: Option<DateTime>) -> Self
pub fn set_event_time(self, input: Option<DateTime>) -> Self
The time the event took place, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn get_event_time(&self) -> &Option<DateTime>
pub fn get_event_time(&self) -> &Option<DateTime>
The time the event took place, in coordinated universal time (UTC) timestamp format as specified in RFC 3339.
sourcepub fn operation_type(self, input: OperationType) -> Self
pub fn operation_type(self, input: OperationType) -> Self
The type of the event.
This field is required.sourcepub fn set_operation_type(self, input: Option<OperationType>) -> Self
pub fn set_operation_type(self, input: Option<OperationType>) -> Self
The type of the event.
sourcepub fn get_operation_type(&self) -> &Option<OperationType>
pub fn get_operation_type(&self) -> &Option<OperationType>
The type of the event.
sourcepub fn user_identity(self, input: UserIdentity) -> Self
pub fn user_identity(self, input: UserIdentity) -> Self
The system-generated unique ID of the user whose actions are recorded in the event.
This field is required.sourcepub fn set_user_identity(self, input: Option<UserIdentity>) -> Self
pub fn set_user_identity(self, input: Option<UserIdentity>) -> Self
The system-generated unique ID of the user whose actions are recorded in the event.
sourcepub fn get_user_identity(&self) -> &Option<UserIdentity>
pub fn get_user_identity(&self) -> &Option<UserIdentity>
The system-generated unique ID of the user whose actions are recorded in the event.
sourcepub fn project_information(self, input: ProjectInformation) -> Self
pub fn project_information(self, input: ProjectInformation) -> Self
Information about the project where the event occurred.
sourcepub fn set_project_information(self, input: Option<ProjectInformation>) -> Self
pub fn set_project_information(self, input: Option<ProjectInformation>) -> Self
Information about the project where the event occurred.
sourcepub fn get_project_information(&self) -> &Option<ProjectInformation>
pub fn get_project_information(&self) -> &Option<ProjectInformation>
Information about the project where the event occurred.
sourcepub fn request_id(self, input: impl Into<String>) -> Self
pub fn request_id(self, input: impl Into<String>) -> Self
The system-generated unique ID of the request.
sourcepub fn set_request_id(self, input: Option<String>) -> Self
pub fn set_request_id(self, input: Option<String>) -> Self
The system-generated unique ID of the request.
sourcepub fn get_request_id(&self) -> &Option<String>
pub fn get_request_id(&self) -> &Option<String>
The system-generated unique ID of the request.
sourcepub fn request_payload(self, input: EventPayload) -> Self
pub fn request_payload(self, input: EventPayload) -> Self
Information about the payload of the request.
sourcepub fn set_request_payload(self, input: Option<EventPayload>) -> Self
pub fn set_request_payload(self, input: Option<EventPayload>) -> Self
Information about the payload of the request.
sourcepub fn get_request_payload(&self) -> &Option<EventPayload>
pub fn get_request_payload(&self) -> &Option<EventPayload>
Information about the payload of the request.
sourcepub fn response_payload(self, input: EventPayload) -> Self
pub fn response_payload(self, input: EventPayload) -> Self
Information about the payload of the response, if any.
sourcepub fn set_response_payload(self, input: Option<EventPayload>) -> Self
pub fn set_response_payload(self, input: Option<EventPayload>) -> Self
Information about the payload of the response, if any.
sourcepub fn get_response_payload(&self) -> &Option<EventPayload>
pub fn get_response_payload(&self) -> &Option<EventPayload>
Information about the payload of the response, if any.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The code of the error, if any.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The code of the error, if any.
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
The code of the error, if any.
sourcepub fn source_ip_address(self, input: impl Into<String>) -> Self
pub fn source_ip_address(self, input: impl Into<String>) -> Self
The IP address of the user whose actions are recorded in the event.
sourcepub fn set_source_ip_address(self, input: Option<String>) -> Self
pub fn set_source_ip_address(self, input: Option<String>) -> Self
The IP address of the user whose actions are recorded in the event.
sourcepub fn get_source_ip_address(&self) -> &Option<String>
pub fn get_source_ip_address(&self) -> &Option<String>
The IP address of the user whose actions are recorded in the event.
sourcepub fn user_agent(self, input: impl Into<String>) -> Self
pub fn user_agent(self, input: impl Into<String>) -> Self
The user agent whose actions are recorded in the event.
sourcepub fn set_user_agent(self, input: Option<String>) -> Self
pub fn set_user_agent(self, input: Option<String>) -> Self
The user agent whose actions are recorded in the event.
sourcepub fn get_user_agent(&self) -> &Option<String>
pub fn get_user_agent(&self) -> &Option<String>
The user agent whose actions are recorded in the event.
sourcepub fn build(self) -> Result<EventLogEntry, BuildError>
pub fn build(self) -> Result<EventLogEntry, BuildError>
Consumes the builder and constructs a EventLogEntry
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EventLogEntryBuilder
impl Clone for EventLogEntryBuilder
source§fn clone(&self) -> EventLogEntryBuilder
fn clone(&self) -> EventLogEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventLogEntryBuilder
impl Debug for EventLogEntryBuilder
source§impl Default for EventLogEntryBuilder
impl Default for EventLogEntryBuilder
source§fn default() -> EventLogEntryBuilder
fn default() -> EventLogEntryBuilder
source§impl PartialEq for EventLogEntryBuilder
impl PartialEq for EventLogEntryBuilder
source§fn eq(&self, other: &EventLogEntryBuilder) -> bool
fn eq(&self, other: &EventLogEntryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventLogEntryBuilder
Auto Trait Implementations§
impl Freeze for EventLogEntryBuilder
impl RefUnwindSafe for EventLogEntryBuilder
impl Send for EventLogEntryBuilder
impl Sync for EventLogEntryBuilder
impl Unpin for EventLogEntryBuilder
impl UnwindSafe for EventLogEntryBuilder
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