// SetInitiatedEventId sets the InitiatedEventId field's value.
540149
func (s *ChildWorkflowExecutionStartedEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionStartedEventAttributes {
	s.InitiatedEventId = &v
	return s
}
298370
func (s *DecisionTaskCompletedEventAttributes) SetStartedEventId(v int64) *DecisionTaskCompletedEventAttributes {
	s.StartedEventId = &v
	return s
}
240398
func (s *ActivityTaskFailedEventAttributes) SetStartedEventId(v int64) *ActivityTaskFailedEventAttributes {
	s.StartedEventId = &v
	return s
}
1061965
func NewEventID(parent EventID) EventID {
	return EventID{
		Root:   parent.Root,
		ID:     generateID(),
		Parent: parent.ID,
	}
}
949331
func (s *ActivityTaskCanceledEventAttributes) SetScheduledEventId(v int64) *ActivityTaskCanceledEventAttributes {
	s.ScheduledEventId = &v
	return s
}
951428
func (s *UpdateChapCredentialsOutput) SetInitiatorName(v string) *UpdateChapCredentialsOutput {
	s.InitiatorName = &v
	return s
}
228421
func (m *OutgoingMessage) AddEventID(id ...string) *OutgoingMessage {
	m.EventID = append(m.EventID, id...)
	return m
}
1029645
func (s *ActivityTaskCompletedEventAttributes) SetScheduledEventId(v int64) *ActivityTaskCompletedEventAttributes {
	s.ScheduledEventId = &v
	return s
}
686436
func (s *HistoryEvent) SetEventId(v int64) *HistoryEvent {
	s.EventId = &v
	return s
}
1351097
func (s *ActivityTaskCanceledEventAttributes) SetStartedEventId(v int64) *ActivityTaskCanceledEventAttributes {
	s.StartedEventId = &v
	return s
}
783511
func (s *ChildWorkflowExecutionTimedOutEventAttributes) SetInitiatedEventId(v int64) *ChildWorkflowExecutionTimedOutEventAttributes {
	s.InitiatedEventId = &v
	return s
}
1148639
func (s *WorkflowExecutionCancelRequestedEventAttributes) SetExternalInitiatedEventId(v int64) *WorkflowExecutionCancelRequestedEventAttributes {
	s.ExternalInitiatedEventId = &v
	return s
}
1164117
func (s *LambdaFunctionTimedOutEventAttributes) SetStartedEventId(v int64) *LambdaFunctionTimedOutEventAttributes {
	s.StartedEventId = &v
	return s
}
770462
func (s *ActivityTaskTimedOutEventAttributes) SetScheduledEventId(v int64) *ActivityTaskTimedOutEventAttributes {
	s.ScheduledEventId = &v
	return s
}
547003
func (s *StartLambdaFunctionFailedEventAttributes) SetScheduledEventId(v int64) *StartLambdaFunctionFailedEventAttributes {
	s.ScheduledEventId = &v
	return s
}
920860
func (s *ExternalWorkflowExecutionSignaledEventAttributes) SetInitiatedEventId(v int64) *ExternalWorkflowExecutionSignaledEventAttributes {
	s.InitiatedEventId = &v
	return s
}
274964
func (s *WorkflowExecutionSignaledEventAttributes) SetExternalInitiatedEventId(v int64) *WorkflowExecutionSignaledEventAttributes {
	s.ExternalInitiatedEventId = &v
	return s
}