// Validate inspects the fields of the type to determine if they are valid.
Validate inspects the fields of the type to determine if they are valid.
// Validate inspects the fields of the type to determine if they are valid .
func (s *LambdaEventSource) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "LambdaEventSource"}
	if s.Topic == nil {
		invalidParams.Add(request.NewErrParamRequired("Topic"))
	}
	if s.Type == nil {
		invalidParams.Add(request.NewErrParamRequired("Type"))
	}
	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
func ( s * LambdaEventSource ) Validate ( ) error { invalidParams := request . ErrInvalidParams { Context : " " } if s . Topic == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . Type == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if invalidParams . Len ( ) > 0 { return invalidParams } return nil }
Validate inspects the fields of the type to determine if they are valid.
Validate inspects the fields of the type to determine if they are valid .